I'm working with imx8qm board and have tried to get ethernet (fec1) device passthrough to work in the NXP provided XEN VM environment.
The ethernet device was not directly setup for passthrough so (in short) i had to change the devices a bit by enabling iommu on fec1 on dom0 and add the fec1 devices to domu tree.
I ended up with a guest in which i was able to see fec1 as an ethernet device and turn the link on & off on command line. However no data was actually coming through to guest. I narrowed down the issue to a problem with interrupts not getting through to guest (or possibly not even to host either).
Would you happen to have example or can you provide some assistance for getting ethernet device passed through to guest in XEN?
For now my team has a temporary solution of using USB ethernet adapter but we would rather use the on board adapter as we have other plans for usb devices.
Hi @jsah ,
I hope you're doing well. Could you let me know your BSP version?
Thanks in advance.
Best regards,
Hector.
For XEN i have tried with imx_4.14.98_2.0.0_ga
My actual goal is to get passthrough working in KVM in which i have tried with lf-5.15.y. With both XEN and QEMU/KVM the results are exactly the same. I'm getting the device visible and mostly operational in guest but there is no interrupts coming through.
More details of the QEMU/KVM work in different ticket:
We have managed to get GPU passthrough to work with imx8qm (both in XEN and QEMU/KVM) with lf-5.15.y so our environment should be okay.
Even though my eventual goal is working with QEMU/KVM I'm happy to do the setup in XEN first to get things working.
Hi @jsah ,
Sorry for the late response. Just to be completely sure, have you checked XEN's documentation on device passthrough? Details and examples can be found there (https://xenbits.xen.org/docs/unstable/misc/arm/passthrough.txt).
If so, are the connections (bridge/NAT mode) for guests and Dom0 set up correctly?
Thanks in advance.
Best regards,
Hector.