search for: vhost_set_vring_en

Displaying 2 results from an estimated 2 matches for "vhost_set_vring_en".

Did you mean: vhost_set_vring_err
2020 Sep 24
0
[PATCH 2/8] vhost: add helper to check if a vq has been setup
...&& vhost_vq_access_ok(vq)) >>> +??????? return true; >>> +??? else >>> +??????? return false; >>> +} >>> +EXPORT_SYMBOL_GPL(vhost_vq_is_setup); >> >> This is probably ok but I wonder maybe we should have something like what vDPA did (VHOST_SET_VRING_ENABLE) to match virtio 1.0 device definition. > It looks like I can make that work. Some questions: > > 1. Do you mean a generic VHOST_SET_VRING_ENABLE or a SCSI specific one VHOST_SCSI_SET_VRING_ENABLE? It would be better if we can make it generic. > > 2. I can see the VHOST_VDPA_...
2020 Sep 22
0
[PATCH 2/8] vhost: add helper to check if a vq has been setup
...> + if (vq->avail && vq->desc && vq->used && vhost_vq_access_ok(vq)) > + return true; > + else > + return false; > +} > +EXPORT_SYMBOL_GPL(vhost_vq_is_setup); This is probably ok but I wonder maybe we should have something like what vDPA did (VHOST_SET_VRING_ENABLE) to match virtio 1.0 device definition. Thanks > + > static void vhost_vq_reset(struct vhost_dev *dev, > struct vhost_virtqueue *vq) > { > diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h > index 9032d3c..3d30b3d 100644 > --- a/drivers/vhost/vhost....