Which system do you use? Android, Ubuntu, OOWOW or others?
Android
Which version of system do you use? Please provide the version of the system here:
khadas-edge2-android14
Please describe your issue below:
I tried to build the Android with PKVM support, but failed in vm creation.
Post a console log of your issue below:
I changed these configurations:
BOARD_AVB_ENABLE ?= true # device/khadas/common/BoardConfig.mk
BOARD_ROCKCHIP_PKVM ?= true # device/khadas/common/BoardConfig.mk
BOARD_KERNEL_CMDLINE += kvm-arm.mode=protected # device/khadas/common/modules/make_boot.mk
Enable Android properties:
kedge2:/ # setprop ro.boot.hypervisor.protected_vm.supported true
kedge2:/ # getprop ro.boot.hypervisor.protected_vm.supported
true
kedge2:/ # setprop ro.boot.hypervisor.vm.supported true
kedge2:/ # getprop ro.boot.hypervisor.vm.supported
true
Failed in creating a vm (`microdroid` is a simple os):
kedge2:/ # /apex/com.android.virt/bin/vm run-microdroid
found path /apex/com.android.virt/app/EmptyPayloadApp@UQ1A.240205.004.B1/EmptyPayloadApp.apk
creating work dir /data/local/tmp/microdroid/1X8wZrlqq1rogHFqD
apk.idsig path: /data/local/tmp/microdroid/1X8wZrlqq1rogHFqD/apk.idsig
instance.img path: /data/local/tmp/microdroid/1X8wZrlqq1rogHFqD/instance.img
Error: Failed to create VM
Caused by:
Status(-8, EX_SERVICE_SPECIFIC): '-1: Too many attempts to create VM context failed.'
I locate this error in /packages/modules/Virtualization/virtualizationmanager/src/aidl.rs
Does anyone know how to solve this error?