以qemu自带的edu设备为基础,实现一个直通PCIe设备。 下载qemu源代码: git clone https://gitlab.com/qemu-project/qemu.git QEMU设备仿真代码流程 type_init 430 static void pci_edu_register_types(void) 431 { 432 static InterfaceInfo interfaces[] =