mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Fix pc migration from qemu <= 1.5
The following commit introduced a migration incompatibility:
commit 568f0690fd
Author: David Gibson <david@gibson.dropbear.id.au>
Date: Thu Jun 6 18:48:49 2013 +1000
pci: Replace pci_find_domain() with more general pci_root_bus_path()
The issue is that i440fx savevm idstr went from 0000:00:00.0/I440FX to
0000:00.0/I440FX. Unfortunately we are stuck with the breakage for
1.6 machine types.
Add a compat property to maintain the busted idstr for the 1.6 machine
types, but revert to the old style format for 1.7+, and <= 1.5.
Tested with migration from qemu 1.5, qemu 1.6, and qemu.git.
Cc: qemu-stable@nongnu.org
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
c2d3066776
commit
04c7d8b8de
4 changed files with 33 additions and 3 deletions
|
@ -260,6 +260,14 @@ int e820_add_entry(uint64_t, uint64_t, uint32_t);
|
|||
.driver = "qemu32-" TYPE_X86_CPU,\
|
||||
.property = "model",\
|
||||
.value = stringify(3),\
|
||||
},{\
|
||||
.driver = "i440FX-pcihost",\
|
||||
.property = "short_root_bus",\
|
||||
.value = stringify(1),\
|
||||
},{\
|
||||
.driver = "q35-pcihost",\
|
||||
.property = "short_root_bus",\
|
||||
.value = stringify(1),\
|
||||
}
|
||||
|
||||
#define PC_COMPAT_1_5 \
|
||||
|
@ -296,6 +304,14 @@ 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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue