qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Yuri Benditovich <yuri.benditovich@daynix.com>,
	qemu-devel@nongnu.org, mst@redhat.com
Cc: yan@daynix.com
Subject: Re: [PATCH] virtio-pci: fix wrong index in virtio_pci_queue_enabled
Date: Tue, 28 Jul 2020 11:56:03 +0800	[thread overview]
Message-ID: <fc011d82-0482-bea9-433b-76772b78980f@redhat.com> (raw)
In-Reply-To: <20200727143807.19230-1-yuri.benditovich@daynix.com>


On 2020/7/27 下午10:38, Yuri Benditovich wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=1702608
>
> Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>


Queued for rc2.

Thanks


> ---
>   hw/virtio/virtio-pci.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
> index ada1101d07..2b1f9cc67b 100644
> --- a/hw/virtio/virtio-pci.c
> +++ b/hw/virtio/virtio-pci.c
> @@ -1113,7 +1113,7 @@ static bool virtio_pci_queue_enabled(DeviceState *d, int n)
>       VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
>   
>       if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) {
> -        return proxy->vqs[vdev->queue_sel].enabled;
> +        return proxy->vqs[n].enabled;
>       }
>   
>       return virtio_queue_enabled(vdev, n);



      reply	other threads:[~2020-07-28  3:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-27 14:38 [PATCH] virtio-pci: fix wrong index in virtio_pci_queue_enabled Yuri Benditovich
2020-07-28  3:56 ` Jason Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc011d82-0482-bea9-433b-76772b78980f@redhat.com \
    --to=jasowang@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yan@daynix.com \
    --cc=yuri.benditovich@daynix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).