Based on searching the internet, the Cortex-A76 should support HW virtualization (VHE extension).
Is there a possibility to enable it on Cubie A7A? If the CPU there really supports it, it might be just matter of the firmware, I guess.
Based on searching the internet, the Cortex-A76 should support HW virtualization (VHE extension).
Is there a possibility to enable it on Cubie A7A? If the CPU there really supports it, it might be just matter of the firmware, I guess.
A standard distro kernel for Aarch64 simply supports KVM out-of-the-box. So the question to you is: What kernel is this about?
KVM should be supported on all Radxa kernels, as it is part of our common kernel config.
hello, I have a follow-up questuon
but KVM didn’t work on radxa official image
it’s that normal situation? or need to wait for bootloader update?
What exactly did you do that make you think KVM is not working? Have you checked if there is /dev/kvm device and if the permission allows you to access as a normal user?
thanks for your reply, I flash this image
radxa-a733_bullseye_cli_t2.output_512.img
login with radxa/radxa and elevate the privileges
root@radxa-cubie-a7a:/home/radxa# dmesg | grep -i kvm
[ 0.187391] kvm [1]: HYP mode not available
root@radxa-cubie-a7a:/home/radxa# ls -l /dev/kvm
ls: cannot access ‘/dev/kvm’: No such file or directory
root@radxa-cubie-a7a:/home/radxa# kvm-ok
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm
modprobe: FATAL: Module msr not found in directory /lib/modules/5.15.147-12-a733
root@radxa-cubie-a7a:/home/radxa# dmesg | grep -i CPU:
[ 0.000000] percpu: Embedded 20 pages/cpu s41496 r8192 d32232 u81920
[ 0.009541] CPU: All CPU(s) started at EL1
[ 0.223511] ledtrig-cpu: registered to indicate activity on CPUs
because I don’t understand about lower-class develop
so I ask AI too and check the kernel config
root@radxa-cubie-a7a:/home/radxa# zcat /proc/config.gz | grep KVM
CONFIG_KVM=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQFD=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_EVENTFD=y
CONFIG_KVM_MMIO=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_KVM_VFIO=y
CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_HAVE_KVM_IRQ_BYPASS=y
CONFIG_HAVE_KVM_VCPU_RUN_PID_CHANGE=y
CONFIG_KVM_XFER_TO_GUEST_WORK=y
it said, the kernel include the kvm setting, but miss this
CONFIG_KVM_ARM_HOST
I don’t know that is necessary
and this is the pure offical image, I didn’t install any other or changing settings yet
@ChenJaly can you check this?
Got it
![]()
Hello I conform I can not get the kvm running either, the same situation as wolfyportal. The A733 has so good housepower, with kvm it can be the smallest vm host. ![]()
There is a related discussion on armbian forum, people is saying because the cpu can not run at EL2…
I personally upgrade the ram to 8gb and usf to 256gb, mainly for the kvm usage…
感谢!
hello~ how is working?
not rush for me, but if we can have the official conform will be great
I also trying to build u-boot by myself and change setting(hope can fix it)
but project u-boot-aw2501 seems not buildable
so we might need to wait for offical…
Hello kind ask if there is any plan to fix this? Thank you!
@ChenJaly is working on a upstream based U-Boot for an upcoming A733 product and I recall he got EL2 booted and KVM probed, though there is other issues.
Yes, KVM works normally when based on the upstream uboot, and the new image is expected to be released in February, but only with quite basic features
Happy Chinese New Year!
Just a kind reminder for the fix of kvm ![]()
Thank you for your attention, we are working hard to bring the mainline u-boot+bsp 6.6 kernel to a release state.