qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running qemu-system-aarch64 with KVM support on a dual-booting android d


From: Jonas Noll
Subject: Running qemu-system-aarch64 with KVM support on a dual-booting android device
Date: Thu, 25 Jul 2024 16:13:30 -0400

Hello.

I'm running into the following issue:
$ ./run_vm_kvm.sh
qemu-system-aarch64: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Invalid argument
but sometimes this issue:
$ ./run_vm_kvm.sh
qemu-system-aarch64: error creating in-kernel ITS: No such device

I'm currently trying to run a windows 11 for arm VM on a Cosmo Communicator (an android phone that allows dual booting Debian Linux)
It runs a helios p70 with cortex-a53 small cores and cortex-a73 big cores and from what I can see KVM and GIC-V3 are both supported by the kernel:
KVM:
$ zcat /proc/config.gz | grep KVM
CONFIG_HAVE_KVM_IRQFD=y
CONFIG_HAVE_KVM_EVENTFD=y
CONFIG_KVM_MMIO=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_KVM_COMPAT=y
CONFIG_KVM_ARM_VGIC_V3=y
CONFIG_KVM=y
CONFIG_KVM_ARM_HOST=y
GIC:
$ zcat /proc/config.gz | grep GIC
CONFIG_MTK_GIC_EXT=y
CONFIG_MTK_GIC_V3_EXT=y
# CONFIG_SERIAL_CONEXANT_DIGICOLOR is not set
# CONFIG_HID_UCLOGIC is not set
CONFIG_HID_MAGICMOUSE=y
CONFIG_ARM_GIC=y
CONFIG_ARM_GIC_V3=y
CONFIG_KVM_ARM_VGIC_V3=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
That being said my Kernel version is pretty old because from my understanding it's shared with the android installation:
$ uname -r
4.4.146

I've compiled Qemu 9.0.2 for my system in the hope it would give me better luck and it's definitely functioning better without KVM but KVM is still not working. This is my Qemu command:
cat run_vm_kvm.sh
~/qemu/qemu-9.0.2/build/qemu-system-aarch64 \
    -machine type=virt,accel=kvm,gic-version=host \
    -cpu host \
    -m 2G \
    -smp 2 \
    -bios /home/cosmo/qemu/qemu-9.0.2/build/pc-bios/edk2-aarch64-code.fd \
    -device ramfb \
    -device qemu-xhci \
    -device usb-kbd \
    -device usb-tablet \
    -drive file=/home/cosmo/Downloads/Win11Arm.VHDX,format=vhdx,if=none,id=boot \
    -device usb-storage,drive=boot,serial=boot \
    -drive file=/home/cosmo/Downloads/virtio-win.iso,media=cdrom,if=none,id=iso \
    -device usb-storage,drive=iso \
    -nic user,model=virtio-net-pci,mac=**:**:**:**:**:** \
    -vnc :0 \
    -d int,cpu_reset,strace

Does anyone have any ideas?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]