diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-09-28 17:01:23 -0300 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2015-10-19 10:16:01 +0000 |
commit | a88ae0d44b6b5830b752641b2198735272f13eaf (patch) | |
tree | 2a2cec585e226d733debd1ff25df5dc7d080c064 /hw/i386/pc_piix.c | |
parent | aedc8806172dd1ae904f04169ee3b19fce1d7893 (diff) | |
download | qemu-a88ae0d44b6b5830b752641b2198735272f13eaf.zip qemu-a88ae0d44b6b5830b752641b2198735272f13eaf.tar.gz qemu-a88ae0d44b6b5830b752641b2198735272f13eaf.tar.bz2 |
pc: Require xen when initializing xenfv machine
Without this check, the xen-platform device will crash on reset
if using the accel option with anything other than xen (e.g.
"-machine xenfv,accel=kvm").
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'hw/i386/pc_piix.c')
-rw-r--r-- | hw/i386/pc_piix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index ae7bbeb..a91cc3d 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -434,6 +434,11 @@ static void pc_xen_hvm_init(MachineState *machine) { PCIBus *bus; + if (!xen_enabled()) { + error_report("xenfv machine requires the xen accelerator"); + exit(1); + } + pc_xen_hvm_init_pci(machine); bus = pci_find_primary_bus(); |