qemu icon indicating copy to clipboard operation
qemu copied to clipboard

aarch64 is not support kvm?

Open heixi opened this issue 3 years ago • 1 comments

i want using kvm in qemu-system-aarch64. when i set enable-kvm, a problem is raise:

qemu-system-aarch64: /qemu/exec.c:936: cpu_address_space_init: Assertion `asidx == 0 || !kvm_enabled()' failed

i do not understand this assert() condition? why.

heixi avatar Aug 06 '21 10:08 heixi

I hit the same issue and applied some extra patches from mainstream QEMU that clarified the source of the error. You cannot use KVM when you have EL3 enabled (aka, the ARM Trusted Firmware), and at least for the MPSoC targets, the Xilinx tools are providing EL3. At this point I think the emulated performance is acceptable for my use cases so I'm not going down the path of trying to run without EL3.

ddompe avatar Nov 09 '21 17:11 ddompe