diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2016-11-08 14:07:22 +0000 |
---|---|---|
committer | Stefano Stabellini <sstabellini@kernel.org> | 2016-11-08 11:17:30 -0800 |
commit | 804ba7c10bbc66bb8a8aa73ecc60f620da7423d5 (patch) | |
tree | 2258272459dec9243cbb45c28e39787c51f444aa /xen-hvm.c | |
parent | 207faf24c58859f5240f66bf6decc33b87a1776e (diff) | |
download | qemu-804ba7c10bbc66bb8a8aa73ecc60f620da7423d5.tar.gz qemu-804ba7c10bbc66bb8a8aa73ecc60f620da7423d5.tar.bz2 qemu-804ba7c10bbc66bb8a8aa73ecc60f620da7423d5.zip |
xen: Fix xenpv machine initialisation
When using QEMU for Xen PV guest, QEMU abort with:
xen-common.c:118:xen_init: Object 0x7f2b8325dcb0 is not an instance of type generic-pc-machine
This is because the machine 'xenpv' also use accel=xen. Moving the code
to xen_hvm_init() fix the issue.
This fix 021746c131cdfeab9d82ff918795a9f18d20d7ae.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'xen-hvm.c')
-rw-r--r-- | xen-hvm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1316,6 +1316,10 @@ void xen_hvm_init(PCMachineState *pcms, MemoryRegion **ram_memory) } xen_be_register_common(); xen_read_physmap(state); + + /* Disable ACPI build because Xen handles it */ + pcms->acpi_build_enabled = false; + return; err: |