[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] qemu vhost scsi: add VHOST_SET_VRING_ENABLE support
|
From: |
Stefan Hajnoczi |
|
Subject: |
Re: [PATCH 1/1] qemu vhost scsi: add VHOST_SET_VRING_ENABLE support |
|
Date: |
Tue, 17 Nov 2020 11:53:05 +0000 |
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;
> +
> + ret = vhost_kernel_call(dev, VHOST_SET_VRING_ENABLE, &s);
> + /* Ignore kernels that do not support the cmd */
> + if (ret == -EPERM)
> + return 0;
> + if (ret)
> + goto disable_vrings;
> + }
The 'enable' argument is ignored and this function acts on all
virtqueues, while the ioctl acts on a single virtqueue only.
This function's behavior is actually "vhost_kernel_enable_vrings()"
(plural), not "vhost_kernel_set_vring_enable()" (singular).
Please rename this function and drop the enable argument.
signature.asc
Description: PGP signature
- Re: [PATCH 07/10] vhost, vhost-scsi: flush IO vqs then send TMF rsp, (continued)
- [PATCH 02/10] vhost scsi: remove extra flushes, Mike Christie, 2020/11/12
- [PATCH 01/10] vhost: remove work arg from vhost_work_flush, Mike Christie, 2020/11/12
- [PATCH 04/10] vhost: support multiple worker threads, Mike Christie, 2020/11/12
- [PATCH 10/10] vhost-scsi: create a woker per IO vq, Mike Christie, 2020/11/12
- [PATCH 06/10] vhost scsi: make SCSI cmd completion per vq, Mike Christie, 2020/11/12
- [PATCH 1/1] qemu vhost scsi: add VHOST_SET_VRING_ENABLE support, Mike Christie, 2020/11/12
- Re: [PATCH 1/1] qemu vhost scsi: add VHOST_SET_VRING_ENABLE support,
Stefan Hajnoczi <=
- Re: [PATCH 00/10] vhost/qemu: thread per IO SCSI vq, Stefan Hajnoczi, 2020/11/17
- Re: [PATCH 00/10] vhost/qemu: thread per IO SCSI vq, Mike Christie, 2020/11/17
- Re: [PATCH 00/10] vhost/qemu: thread per IO SCSI vq, Stefan Hajnoczi, 2020/11/18
- Re: [PATCH 00/10] vhost/qemu: thread per IO SCSI vq, Michael S. Tsirkin, 2020/11/19
- Re: [PATCH 00/10] vhost/qemu: thread per IO SCSI vq, Mike Christie, 2020/11/19
- Re: [PATCH 00/10] vhost/qemu: thread per IO SCSI vq, Stefan Hajnoczi, 2020/11/19
- Re: [PATCH 00/10] vhost/qemu: thread per IO SCSI vq, Mike Christie, 2020/11/19
- Re: [PATCH 00/10] vhost/qemu: thread per IO SCSI vq, Stefan Hajnoczi, 2020/11/19