From fb105f4535c840709fd1adb5d375e5a15dc778e2 Mon Sep 17 00:00:00 2001 From: Joao Martins Date: Fri, 18 Jan 2019 14:38:16 -0500 Subject: [PATCH] pc_piix: allow xenfv machine with XEN_EMULATE This allows -machine xenfv to work with Xen emulated guests. Signed-off-by: Joao Martins --- hw/i386/pc_piix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 43cca0a762..9240c79d03 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -399,8 +399,8 @@ static void pc_xen_hvm_init(MachineState *machine) { PCMachineState *pcms = PC_MACHINE(machine); - if (!xen_enabled()) { - error_report("xenfv machine requires the xen accelerator"); + if (!xen_enabled() && (xen_mode != XEN_EMULATE)) { + error_report("xenfv machine requires the xen or kvm accelerator"); exit(1); } -- 2.50.1