]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commitdiff
When xen_platform_pci=0 also disable fixed Xen platform ioports xen-3.4.3-rc3
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 18 Feb 2010 15:36:29 +0000 (15:36 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 1 Mar 2010 16:32:46 +0000 (16:32 +0000)
disable_pf should affect the platform's fixed ioport (used for device
hot unplug etc.)

Contributed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit e5d14857cd67490bf956d97c8888c0be95ed3f78)

hw/pc.c

diff --git a/hw/pc.c b/hw/pc.c
index 9a5637ceee5bb75c2f7e282713d33e75d3ad2684..6c71ad837783bec28923fa049f7df297acc20a50 100644 (file)
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1048,9 +1048,10 @@ vga_bios_error:
 #endif /* !CONFIG_DM */
     if (pci_enabled) {
         disable_pf = xenstore_parse_disable_pf_config();
-        if (disable_pf != 1)
+        if (disable_pf != 1) {
             pci_xen_platform_init(pci_bus);
-        platform_fixed_ioport_init();
+            platform_fixed_ioport_init();
+        }
     }
 
     for(i = 0; i < MAX_SERIAL_PORTS; i++) {