From patchwork Wed Jun 25 18:52:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 364119 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 E2B201400AA for ; Thu, 26 Jun 2014 04:53:05 +1000 (EST) Received: from localhost ([::1]:40467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzsJc-0007e0-6u for incoming@patchwork.ozlabs.org; Wed, 25 Jun 2014 14:53:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzsIr-0006R8-NR for qemu-devel@nongnu.org; Wed, 25 Jun 2014 14:52:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzsIk-0002Xn-8J for qemu-devel@nongnu.org; Wed, 25 Jun 2014 14:52:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzsIk-0002Xf-0E for qemu-devel@nongnu.org; Wed, 25 Jun 2014 14:52:10 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5PIq8hf007805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Jun 2014 14:52:09 -0400 Received: from gimli.home ([10.3.113.3]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5PIq8oe003384; Wed, 25 Jun 2014 14:52:08 -0400 From: Alex Williamson To: qemu-devel@nongnu.org Date: Wed, 25 Jun 2014 12:52:08 -0600 Message-ID: <20140625185207.22072.36789.stgit@gimli.home> In-Reply-To: <20140625184845.22072.97349.stgit@gimli.home> References: <20140625184845.22072.97349.stgit@gimli.home> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: kvm@vger.kernel.org Subject: [Qemu-devel] [PATCH 1/2] 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 7437c2e..6fbd47e 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -641,9 +641,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(); }