This series fixes the following crash:

  $ ./x86_64-softmmu/qemu-system-x86_64 -machine xenfv,accel=kvm
  Segmentation fault (core dumped)

The crash happens because xen-platform calls xc_hvm_set_mem_type() with a NULL
xen_xc on reset, at platform_fixed_ioport_writeb().

Crash is replaced by the following error message:

  $ ./x86_64-softmmu/qemu-system-x86_64 -machine xenfv,accel=kvm
  qemu-system-x86_64: xenfv machine requires the xen accelerator

Eduardo Habkost (2):
  pc: Require xen when initializing xenfv machine
  xen-platform: Ensure xen is enabled when initializing

 hw/i386/pc_piix.c          | 5 +++++
 hw/i386/xen/xen_platform.c | 3 +++
 2 files changed, 8 insertions(+)

-- 
2.1.0


Reply via email to