Skip to content

xen: Fix crash of "-machine xenfv, accel=kvm"

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pc: Require xen when initializing xenfv machinehw/i386/pc_piix.c+5 -01 reply
2/2xen-platform: Ensure xen is enabled when initializinghw/i386/xen/xen_platform.c+3 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchStefano Stabellini
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] xen: Fix crash of "-machine xenfv, accel=kvm"

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(+)
Signature · 1 line
2.1.0