Re: [PATCH 1/1] qemu vhost scsi: add VHOST_SET_VRING_ENABLE support

2020-12-02 Thread Michael Christie
> On Dec 2, 2020, at 3:59 AM, Michael S. Tsirkin wrote: > > On Thu, Nov 12, 2020 at 05:19:00PM -0600, Mike Christie wrote: >> diff --git a/linux-headers/linux/vhost.h b/linux-headers/linux/vhost.h >> index 7523218..98dd919 100644 >> --- a/linux-headers/linux/vhost.h >> +++

Re: [PATCH 1/1] qemu vhost scsi: add VHOST_SET_VRING_ENABLE support

2020-12-02 Thread Michael S. Tsirkin
On Thu, Nov 12, 2020 at 05:19:00PM -0600, Mike Christie wrote: > diff --git a/linux-headers/linux/vhost.h b/linux-headers/linux/vhost.h > index 7523218..98dd919 100644 > --- a/linux-headers/linux/vhost.h > +++ b/linux-headers/linux/vhost.h > @@ -70,6 +70,7 @@ > #define VHOST_VRING_BIG_ENDIAN 1 >

Re: [PATCH 1/1] qemu vhost scsi: add VHOST_SET_VRING_ENABLE support

2020-11-17 Thread Stefan Hajnoczi
On Thu, Nov 12, 2020 at 05:19:00PM -0600, Mike Christie wrote: > +static int vhost_kernel_set_vring_enable(struct vhost_dev *dev, int enable) > +{ > +struct vhost_vring_state s; > +int i, ret; > + > +s.num = 1; > +for (i = 0; i < dev->nvqs; ++i) { > +s.index = i; > + > +

[PATCH 1/1] qemu vhost scsi: add VHOST_SET_VRING_ENABLE support

2020-11-12 Thread Mike Christie
This patch made over the master branch allows the vhost-scsi driver to call into the kernel and tell it to enable/disable a virtqueue. The kernel patches included with this set, will create a worker per IO vq when multiple IO queues have been setup. Signed-off-by: Mike Christie ---