Skip to content

QEMU system emulators immediately crash on AMD hosts when KVM is used

Host environment

  • Operating system: Red Hat Enterprise Linux release 8.6 Beta (Ootpa)
  • OS/kernel version: 4.18.0-360.el8.x86_64
  • Architecture: x86_64
  • QEMU flavor: qemu-system-x86-64
  • QEMU version: QEMU emulator version 6.2.90 (v7.0.0-rc0-8-g1d60bb4b)
  • QEMU command line:
qemu-system-x86_64 -qmp stdio -display none -accel kvm

Description of problem

$ qemu-system-x86_64  -accel kvm
qemu-system-x86_64: ../target/i386/kvm/kvm-cpu.c:105: kvm_cpu_xsave_init: Assertion `esa->size == eax' failed.
Aborted (core dumped)

This is a regression introduced in

https://lists.gnu.org/archive/html/qemu-devel/2022-03/msg04312.html

Edited by Daniel P. Berrangé
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information