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
在 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
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