Xilinx / qemu

Xilinx's fork of Quick EMUlator (QEMU) with improved support and modelling for the Xilinx platforms.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821395464/QEMU+User+Documentation
Other
231 stars 150 forks source link

aarch64 is not support kvm? #63

Open heixi opened 2 years ago

heixi commented 2 years ago

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.

ddompe commented 2 years ago

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.