From patchwork Tue Nov 24 10:17:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 62410 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAOAIDZw028367 for ; Tue, 24 Nov 2009 10:18:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932588AbZKXKSE (ORCPT ); Tue, 24 Nov 2009 05:18:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932574AbZKXKSD (ORCPT ); Tue, 24 Nov 2009 05:18:03 -0500 Received: from mga02.intel.com ([134.134.136.20]:43326 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932571AbZKXKSC (ORCPT ); Tue, 24 Nov 2009 05:18:02 -0500 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 24 Nov 2009 02:17:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,277,1257148800"; d="scan'208";a="470083921" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.36.163]) by orsmga002.jf.intel.com with ESMTP; 24 Nov 2009 02:34:46 -0800 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1NCsT1-0007QO-4z; Tue, 24 Nov 2009 18:17:51 +0800 From: Sheng Yang To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org, Sheng Yang , Gerd Hoffmann Subject: [PATCH] qemu-kvm: Fix INTx assigned device can't work bug Date: Tue, 24 Nov 2009 18:17:42 +0800 Message-Id: <1259057862-28514-1-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.6.3.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/hw/device-assignment.c b/hw/device-assignment.c index 516cf14..64f3dc2 100644 --- a/hw/device-assignment.c +++ b/hw/device-assignment.c @@ -1180,6 +1180,7 @@ static int assigned_initfn(struct PCIDevice *pci_dev) goto assigned_out; assigned_dev_load_option_rom(dev); + QLIST_INSERT_HEAD(&devs, dev, next); return 0; assigned_out: