From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1w2L-000376-BB for qemu-devel@nongnu.org; Fri, 19 Dec 2014 06:48:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1w2D-00058I-Oy for qemu-devel@nongnu.org; Fri, 19 Dec 2014 06:48:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1w2D-00058B-HS for qemu-devel@nongnu.org; Fri, 19 Dec 2014 06:47:53 -0500 From: Igor Mammedov Date: Fri, 19 Dec 2014 11:46:58 +0000 Message-Id: <1418989624-12049-3-git-send-email-imammedo@redhat.com> In-Reply-To: <1418989624-12049-1-git-send-email-imammedo@redhat.com> References: <1418989624-12049-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH v3 2/8] pc: acpi: decribe bridge device as not hotpluggable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mst@redhat.com, claudio.fontana@huawei.com, marcel.a@redhat.com when bridge hotplug is disabled, i.e. for machine types less then 2.0, bridge device was created as hotpluggable by mistake since commit 133a2da (2.1). Fix it by just creating it as a present device as it was done in 1.7. Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index a4d0c0c..c151fde 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -919,7 +919,7 @@ static void build_pci_bus_end(PCIBus *bus, void *bus_state) } } - if (!dc->hotpluggable || bridge_in_acpi) { + if (!dc->hotpluggable || pc->is_bridge) { clear_bit(slot, slot_hotplug_enable); } } -- 1.8.3.1