From patchwork Mon Jun 30 17:27:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 365707 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B918F14007B for ; Tue, 1 Jul 2014 03:28:43 +1000 (EST) Received: from localhost ([::1]:35845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1fNh-00085c-Ci for incoming@patchwork.ozlabs.org; Mon, 30 Jun 2014 13:28:41 -0400 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 Received: from bling.home (ovpn-113-147.phx2.redhat.com [10.3.113.147]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5UHRqVU016390; Mon, 30 Jun 2014 13:27:52 -0400 From: Alex Williamson To: qemu-devel@nongnu.org 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> User-Agent: StGit/0.17-dirty MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: alex.williamson@redhat.com Subject: [Qemu-devel] [PULL 1/4] vfio-pci: Fix MSI/X debug code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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(); }