[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through s
From: |
Eugenio Perez Martin |
Subject: |
Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue |
Date: |
Thu, 14 Oct 2021 17:58:18 +0200 |
On Wed, Oct 13, 2021 at 5:49 AM Jason Wang <jasowang@redhat.com> wrote:
>
>
> 在 2021/10/1 下午3:05, Eugenio Pérez 写道:
> > This will make qemu aware of the device used buffers, allowing it to
> > write the guest memory with its contents if needed.
> >
> > Since the use of vhost_virtqueue_start can unmasks and discard call
> > events, vhost_virtqueue_start should be modified in one of these ways:
> > * Split in two: One of them uses all logic to start a queue with no
> > side effects for the guest, and another one tha actually assumes that
> > the guest has just started the device. Vdpa should use just the
> > former.
> > * Actually store and check if the guest notifier is masked, and do it
> > conditionally.
> > * Left as it is, and duplicate all the logic in vhost-vdpa.
>
>
> Btw, the log looks not clear. I guess this patch goes for method 3. If
> yes, we need explain it and why.
>
> Thanks
>
Sorry about being unclear. This commit log (and code) just exposes the
problem and the solutions I came up with but does nothing to solve it.
I'm actually going for method 3 for the next series but I'm open to
doing it differently.
>
> >
> > Signed-off-by: Eugenio Pérez<eperezma@redhat.com>
>
- Re: [RFC PATCH v4 10/20] vhost-vdpa: Take into account SVQ in vhost_vdpa_set_vring_call, (continued)
- [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue, Eugenio Pérez, 2021/10/01
- Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue, Jason Wang, 2021/10/12
- Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue, Eugenio Perez Martin, 2021/10/14
- Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue, Jason Wang, 2021/10/15
- Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue, Eugenio Perez Martin, 2021/10/19
- Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue, Jason Wang, 2021/10/19
- Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue, Eugenio Perez Martin, 2021/10/20
Re: [RFC PATCH v4 11/20] vhost: Route host->guest notification through shadow virtqueue, Jason Wang, 2021/10/12
[RFC PATCH v4 12/20] virtio: Add vhost_shadow_vq_get_vring_addr, Eugenio Pérez, 2021/10/01
[RFC PATCH v4 13/20] vdpa: Save host and guest features, Eugenio Pérez, 2021/10/01
[RFC PATCH v4 14/20] vhost: Add vhost_svq_valid_device_features to shadow vq, Eugenio Pérez, 2021/10/01
[RFC PATCH v4 15/20] vhost: Shadow virtqueue buffers forwarding, Eugenio Pérez, 2021/10/01