I am trying to test the device driver and related syscalls in arm64 qemu.There are some problems:
1.The kernel cannot run when I set "machine" to "virt" and load my own dtb file.
I added some trace print in the qemu source code, and I can see that qemu has loaded all the images and prepared vcpus and mem, and then it hang up in "main_loop".
Is there a tool I can use to debug the qemu, see if vcpu is running to load kernel and where the error occurs?
2.I compiled the qemu with "enable-kvm",but it seems that the kvm related source codes are not compiled into the executable file.
I doubt which virtualization hypervisor does it used?
3.Can I make a dts file contains my own devices to load in qemu and trigger the device driver?
Thanks