From patchwork Wed May 12 09:12:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 99063 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4CHDhUB031533 for ; Wed, 12 May 2010 17:13:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756677Ab0ELRNk (ORCPT ); Wed, 12 May 2010 13:13:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12602 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756470Ab0ELRNj (ORCPT ); Wed, 12 May 2010 13:13:39 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4CHDcTA029990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 12 May 2010 13:13:38 -0400 Received: from virtlab9.virt.bos.redhat.com (virtlab9.virt.bos.redhat.com [10.16.72.29]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4CHDb7Y018055; Wed, 12 May 2010 13:13:37 -0400 From: Alex Williamson Subject: [PATCH] device-assignment: fix failure to exit on shared IRQ To: kvm@vger.kernel.org Cc: alex.williamson@redhat.com Date: Wed, 12 May 2010 05:12:10 -0400 Message-ID: <20100512091210.3097.57000.stgit@virtlab9.virt.bos.redhat.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 12 May 2010 17:13:43 +0000 (UTC) diff --git a/hw/device-assignment.c b/hw/device-assignment.c index b9cc06f..eb31c78 100644 --- a/hw/device-assignment.c +++ b/hw/device-assignment.c @@ -1346,7 +1346,7 @@ static int assigned_initfn(struct PCIDevice *pci_dev) e_intx = dev->dev.config[0x3d] - 1; dev->intpin = e_intx; dev->run = 0; - dev->girq = 0; + dev->girq = -1; dev->h_segnr = dev->host.seg; dev->h_busnr = dev->host.bus; dev->h_devfn = PCI_DEVFN(dev->host.dev, dev->host.func);