Thank you for your suggestions!You have enabled vfio but I don't see that you use it actually. On x86_64 I use some vfio statement on the kernel cmdline so that a VM can use specific PCi-E HW (and not allocated to the host anymore).
Also, on my Pi4 I have multiple VMs running and just the default kernel;On Pi4 only USB3 is on PCI-E but that is my main storage so there is nothing to do for VFIOCode:
cd /bootgrep VFIO config-6.6.51+rpt-rpi-v8 CONFIG_KVM_VFIO=y# CONFIG_VFIO is not set
6.12 for BCM2712 is not really ready I guess.
See also :viewtopic.php?t=374670
Initially, I wanted to use the RPI5 NIC driver, but it does not support VFIO, so I couldn’t attach it to QEMU.
Actually, my main goal is to debug my kernel module, which depends on some NIC drivers, such as E1000 or igb. My RPI5 has a PCIe extension socket, and it seems I can attach a PCIe device like the Intel 82576 (which uses the igb driver) to it. However, since the PCIe extension board is still on its way, I haven’t had the chance to try it yet.
Additionally, I want to debug the driver on the ARM64 platform. Unfortunately, I currently only have a Raspberry Pi available, so I have to use this approach for now.
Statistics: Posted by ruiqurm — Sun Nov 17, 2024 9:08 am