From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Anthony Liguori <aliguori@us.ibm.com>,
Laszlo Ersek <lersek@redhat.com>,
qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] virtio-pci: fix irqfd cleanup argument order
Date: Wed, 16 Jan 2013 17:11:12 +0800 [thread overview]
Message-ID: <50F66EB0.6000207@cn.fujitsu.com> (raw)
In-Reply-To: <20130115174238.GA9798@redhat.com>
On 01/16/2013 01:42 AM, Michael S. Tsirkin wrote:
> Order of arguments of kvm_virtio_pci_irqfd_release
> got mixed up in all calls.
> As a result users see assertions during cleanup.
>
> Reported-by: Laszlo Ersek <lersek@redhat.com>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Thank you, fixed my assertion here:
hw/virtio-pci.c:535: kvm_virtio_pci_irqfd_release: Assertion `ret == 0' failed.
Tested-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> ---
>
> hw/virtio-pci.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
> index 0934246..212acd8 100644
> --- a/hw/virtio-pci.c
> +++ b/hw/virtio-pci.c
> @@ -576,7 +576,7 @@ undo:
> continue;
> }
> if (proxy->vdev->guest_notifier_mask) {
> - kvm_virtio_pci_irqfd_release(proxy, vector, queue_no);
> + kvm_virtio_pci_irqfd_release(proxy, queue_no, vector);
> }
> kvm_virtio_pci_vq_vector_release(proxy, vector);
> }
> @@ -602,7 +602,7 @@ static void kvm_virtio_pci_vector_release(VirtIOPCIProxy *proxy, int nvqs)
> * Otherwise, it was cleaned when masked in the frontend.
> */
> if (proxy->vdev->guest_notifier_mask) {
> - kvm_virtio_pci_irqfd_release(proxy, vector, queue_no);
> + kvm_virtio_pci_irqfd_release(proxy, queue_no, vector);
> }
> kvm_virtio_pci_vq_vector_release(proxy, vector);
> }
> @@ -651,7 +651,7 @@ static void kvm_virtio_pci_vq_vector_mask(VirtIOPCIProxy *proxy,
> if (proxy->vdev->guest_notifier_mask) {
> proxy->vdev->guest_notifier_mask(proxy->vdev, queue_no, true);
> } else {
> - kvm_virtio_pci_irqfd_release(proxy, vector, queue_no);
> + kvm_virtio_pci_irqfd_release(proxy, queue_no, vector);
> }
> }
>
>
next prev parent reply other threads:[~2013-01-16 12:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-15 17:42 [Qemu-devel] [PATCH] virtio-pci: fix irqfd cleanup argument order Michael S. Tsirkin
2013-01-15 19:15 ` Laszlo Ersek
2013-01-16 8:46 ` Stefan Hajnoczi
2013-01-16 9:11 ` Wanlong Gao [this message]
2013-01-20 20:53 ` Anthony Liguori
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=50F66EB0.6000207@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=aliguori@us.ibm.com \
--cc=lersek@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.