From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ82d-0004wr-SR for qemu-devel@nongnu.org; Tue, 02 Oct 2012 15:22:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJ82c-0002EN-SC for qemu-devel@nongnu.org; Tue, 02 Oct 2012 15:22:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ82c-0002Dh-KW for qemu-devel@nongnu.org; Tue, 02 Oct 2012 15:22:02 -0400 From: Alex Williamson Date: Tue, 02 Oct 2012 13:22:01 -0600 Message-ID: <20121002192200.31100.84009.stgit@bling.home> In-Reply-To: <20121002191609.31100.77382.stgit@bling.home> References: <20121002191609.31100.77382.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 4/6] pci-assign: Use pci_intx_route_changed() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com, qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, alex.williamson@redhat.com Replace open coded version Signed-off-by: Alex Williamson --- hw/kvm/pci-assign.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/kvm/pci-assign.c b/hw/kvm/pci-assign.c index 7ce0f37..ddde573 100644 --- a/hw/kvm/pci-assign.c +++ b/hw/kvm/pci-assign.c @@ -894,8 +894,7 @@ static int assign_intx(AssignedDevice *dev) return -ENOTSUP; } - if (dev->intx_route.mode == intx_route.mode && - dev->intx_route.irq == intx_route.irq) { + if (!pci_intx_route_changed(&dev->intx_route, &intx_route)) { return 0; }