[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] virtio-pci: fix irqfd cleanup argument order
From: |
Laszlo Ersek |
Subject: |
Re: [Qemu-devel] [PATCH] virtio-pci: fix irqfd cleanup argument order |
Date: |
Tue, 15 Jan 2013 20:15:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121116 Thunderbird/10.0.11 |
On 01/15/13 18:42, 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 <address@hidden>
> Signed-off-by: Michael S. Tsirkin <address@hidden>
> ---
>
> 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);
> }
> }
>
Heh, even I can review this patch!
Reviewed-by: Laszlo Ersek <address@hidden>
Tested-by: Laszlo Ersek <address@hidden>
Thanks for the fix!
Laszlo