]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commitdiff
Revert "Fix pc migration from qemu <= 1.5"
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 24 Jan 2014 19:26:12 +0000 (19:26 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 24 Jan 2014 19:26:12 +0000 (19:26 +0000)
This reverts commit 53e8cf93b3ecdb32ca4aa93d04b0a959988456fa.

hw/pci-host/piix.c
hw/pci-host/q35.c
include/hw/i386/pc.h
include/hw/pci-host/q35.h

index 181774297cbe40e0933cffb1c927e32546cdf816..221d82b637e25f3cf93d9d0c9ab7e84aae52c5b3 100644 (file)
@@ -48,7 +48,6 @@ typedef struct I440FXState {
     PCIHostState parent_obj;
     PcPciInfo pci_info;
     uint64_t pci_hole64_size;
-    uint32_t short_root_bus;
 } I440FXState;
 
 #define PIIX_NUM_PIC_IRQS       16      /* i8259 * 2 */
@@ -707,19 +706,13 @@ static const TypeInfo i440fx_info = {
 static const char *i440fx_pcihost_root_bus_path(PCIHostState *host_bridge,
                                                 PCIBus *rootbus)
 {
-    I440FXState *s = I440FX_PCI_HOST_BRIDGE(host_bridge);
-
     /* For backwards compat with old device paths */
-    if (s->short_root_bus) {
-        return "0000";
-    }
-    return "0000:00";
+    return "0000";
 }
 
 static Property i440fx_props[] = {
     DEFINE_PROP_SIZE(PCI_HOST_PROP_PCI_HOLE64_SIZE, I440FXState,
                      pci_hole64_size, DEFAULT_PCI_HOLE64_SIZE),
-    DEFINE_PROP_UINT32("short_root_bus", I440FXState, short_root_bus, 1),
     DEFINE_PROP_END_OF_LIST(),
 };
 
index e7724d5b36640986e0574fbb58c7faf5689c377c..4febd24f1266039c075ec64368945583b8e11b5a 100644 (file)
@@ -61,13 +61,8 @@ static void q35_host_realize(DeviceState *dev, Error **errp)
 static const char *q35_host_root_bus_path(PCIHostState *host_bridge,
                                           PCIBus *rootbus)
 {
-    Q35PCIHost *s = Q35_HOST_DEVICE(host_bridge);
-
-     /* For backwards compat with old device paths */
-    if (s->mch.short_root_bus) {
-        return "0000";
-    }
-    return "0000:00";
+    /* For backwards compat with old device paths */
+    return "0000";
 }
 
 static void q35_host_get_pci_hole_start(Object *obj, Visitor *v,
@@ -113,7 +108,6 @@ static Property mch_props[] = {
                         MCH_HOST_BRIDGE_PCIEXBAR_DEFAULT),
     DEFINE_PROP_SIZE(PCI_HOST_PROP_PCI_HOLE64_SIZE, Q35PCIHost,
                      mch.pci_hole64_size, DEFAULT_PCI_HOLE64_SIZE),
-    DEFINE_PROP_UINT32("short_root_bus", Q35PCIHost, mch.short_root_bus, 1),
     DEFINE_PROP_END_OF_LIST(),
 };
 
index dc7e3f57364fd027c1970ede9d0d5e3245341e39..475ba9ee2ddfcf8cd23a3ad0dc12a495f049664e 100644 (file)
@@ -258,14 +258,6 @@ int e820_add_entry(uint64_t, uint64_t, uint32_t);
             .driver = TYPE_X86_CPU,\
             .property = "pmu",\
             .value = "on",\
-        },{\
-            .driver   = "i440FX-pcihost",\
-            .property = "short_root_bus",\
-            .value    = stringify(0),\
-        },{\
-            .driver   = "q35-pcihost",\
-            .property = "short_root_bus",\
-            .value    = stringify(0),\
         }
 
 #define PC_COMPAT_1_4 \
index 95a3cc225987d15d4c0af261ddf2e8b803efebe1..6eb7ab676faa9f00914478b2f0cd83a76f11bc59 100644 (file)
@@ -61,7 +61,6 @@ typedef struct MCHPCIState {
     ram_addr_t above_4g_mem_size;
     uint64_t pci_hole64_size;
     PcGuestInfo *guest_info;
-    uint32_t short_root_bus;
 } MCHPCIState;
 
 typedef struct Q35PCIHost {