From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1fN3-00071t-0e for qemu-devel@nongnu.org; Mon, 30 Jun 2014 13:28:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1fMw-0000YV-23 for qemu-devel@nongnu.org; Mon, 30 Jun 2014 13:28:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1fMv-0000XJ-PT for qemu-devel@nongnu.org; Mon, 30 Jun 2014 13:27:53 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5UHRrN8002141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 30 Jun 2014 13:27:53 -0400 From: Alex Williamson Date: Mon, 30 Jun 2014 11:27:52 -0600 Message-ID: <20140630172752.24172.2064.stgit@bling.home> In-Reply-To: <20140630172611.24172.93339.stgit@bling.home> References: <20140630172611.24172.93339.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PULL 1/4] vfio-pci: Fix MSI/X debug code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: alex.williamson@redhat.com Use the correct MSI message function for debug info. Signed-off-by: Alex Williamson --- hw/misc/vfio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 7b279c4..4975ccf 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -642,9 +642,9 @@ static void vfio_msi_interrupt(void *opaque) MSIMessage msg; if (vdev->interrupt == VFIO_INT_MSIX) { - msg = msi_get_message(&vdev->pdev, nr); - } else if (vdev->interrupt == VFIO_INT_MSI) { msg = msix_get_message(&vdev->pdev, nr); + } else if (vdev->interrupt == VFIO_INT_MSI) { + msg = msi_get_message(&vdev->pdev, nr); } else { abort(); }