Re: [RFC PATCH v5 12/26] vhost: Route guest->host notification through shadow virtqueue

2021-11-02 Thread Eugenio Perez Martin
On Tue, Nov 2, 2021 at 6:36 AM Jason Wang wrote: > > > 在 2021/10/30 上午2:35, Eugenio Pérez 写道: > > +/** > > + * Enable or disable shadow virtqueue in a vhost vdpa device. > > + * > > + * This function is idempotent, to call it many times with the same value > > for > > + * enable_svq will simply r

Re: [RFC PATCH v5 12/26] vhost: Route guest->host notification through shadow virtqueue

2021-11-01 Thread Jason Wang
在 2021/10/30 上午2:35, Eugenio Pérez 写道: +/** + * Enable or disable shadow virtqueue in a vhost vdpa device. + * + * This function is idempotent, to call it many times with the same value for + * enable_svq will simply return success. + * + * @v Vhost vdpa device + * @enable True to set SV

[RFC PATCH v5 12/26] vhost: Route guest->host notification through shadow virtqueue

2021-10-29 Thread Eugenio Pérez
At this mode no buffer forwarding will be performed in SVQ mode: Qemu just forward the guest's kicks to the device. Shadow virtqueue notifications forwarding is disabled when vhost_dev stops, so code flow follows usual cleanup. Also, host notifiers must be disabled at SVQ start, and they will not