qemu-system-riscv64 Property 'virt-machine.aclint' not found
Host environment
- Operating system: NA
- OS/kernel version: NA
- Architecture: x86_64
- QEMU flavor: qemu-system-riscv64
- QEMU version: v8.1.0-rc2
- QEMU command line:
./qemu-system-riscv64 -M virt,aclint=on
Emulated/Virtualized environment
- Operating system: NA
- OS/kernel version: NA
- Architecture: riscv64
Description of problem
Steps to reproduce
- run ./qemu-system-riscv64 -M virt,aclint=on
- command output:
qemu-system-riscv64: Property 'virt-machine.aclint' not found
Additional information
The aclint property is registered in the virt_machine_class_init function and depends on the condition tcg_enabled(), but the initialization of tcg_enabled() is later than the call of virt_machine_class_init. This caused the aclint property to never be registered.