OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [virtio-comment] [PATCH v1 1/8] admin: Add theory of operation for device migration


> From: Michael S. Tsirkin <mst@redhat.com>
> Sent: Friday, November 17, 2023 4:41 PM
> 
> On Fri, Nov 17, 2023 at 10:20:45AM +0000, Parav Pandit wrote:
> >
> >
> > > From: Michael S. Tsirkin <mst@redhat.com>
> > > Sent: Friday, November 17, 2023 3:38 PM
> > >
> > > On Wed, Nov 15, 2023 at 05:39:43PM +0000, Parav Pandit wrote:
> > > > > >
> > > > > > Additionally, if hypervisor has put the trap on virtio config,
> > > > > > and because the memory device already has the interface for
> > > > > > virtio config,
> > > > > >
> > > > > > Hypervisor can directly write/read from the virtual config to
> > > > > > the member's
> > > > > config space, without going through the device context, right?
> > > > >
> > > > > If it can do it or it can choose to not. I don't see how it is
> > > > > related to the discussion here.
> > > > >
> > > > It is. I donât see a point of hypervisor not using the native
> > > > interface provided
> > > by the member device.
> > >
> > > So for example, it seems reasonable to a member supporting both
> > > existing pci register interface for compatibility and the future DMA
> > > based one for scale. In such a case, it seems possible that DMA will
> > > expose more features than pci. And then a hypervisor might decide to use
> that in preference to pci registers.
> >
> > We donât find it right to involve owner device for mediating at
> > current scale
> 
> In this model, device will be its own owner. Should not be a problem.
>
I didnât understand above comment.
 
> > and to not break TDISP efforts in upcoming time by such design.
> 
> Look you either stop mentioning TDISP as motivation or actually try to address
> it. Safe migration with TDISP is really hard.
But that is not an excuse to say that TDISP migration is not present, hence involve the owner device for config space access.
This is another hurdle added that further blocks us away from TDISP.
Hence, we donât want to take the route of involving owner device for any config access.

> For example, your current patches are clearly broken for TDISP:
> owner can control queue state at any time making device modify memory in
> any way it wants.
>
When TDISP migration is needed, the admin device can be another TVM outside the HV scope.
Or an alternative would have device context encrypted not visible to HV at all.
Such encryption is not possible, with the trap+emulation method, where HV will have to decrypt the data coming over MMIO writes.
 
> > And for future scale, having new SIOV interface makes more sense which has
> its own direct interface to device.
> >
> > I finally captured all past discussions in form of a FAQ at [1].
> >
> > [1]
> > https://docs.google.com/document/d/1Iyn-l3Nm0yls3pZaul4lZiVj8x1s73Ed6r
> > Osmn6LfXc/edit?usp=sharing
> 
> Yea skimmed that, "Cons: None". Are you 100% sure? Anyway, discussion will
> take place on the mailing list please.

We cannot keep discussing the register interface every week.
I remember we have discussed this many times already in following series.

1. legacy series
2. tvq v4 series
3. dynamic vq creation series
4. again during suspend series under tvq head
5. right now
6. May be more that I forgot.

I captured all the direction and options in the doc. One can refer when those questions arise there.
If we donât work cohesively same reasoning repetition does not help.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]