I re-run the above, full PCI passthrough still attaches/detaches fine.
VFs attach fine
VFs break on detach
I've thrown qemu into GDB and this is the backtrace
Thread 4 "CPU 0/KVM" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f82f0e31700 (LWP 3998)]
0x55d2f322d45d in no
I got VFs enabled now, attach works fine as well.
But I can confirm that detach breaks it.
XML used for the device:
$ virsh detach-device focal-pttest VF-pass-through.xml
error: Failed to detach device from VF-pass-through.xml
error: internal error: End of file
For the time being I only found a system with a full device to passthrough not
a VF.
That worked fine for me, the guest gets the dev and can load its drivers.
[ 297.340525] mlx5_core :00:08.0: Port module event: module 0, Cable
unplugged
[ 297.36] mlx5_core :00:08.0: MLX5E: StrdRq(0
Hi Mohammad,
I'll to recreate your issue, but while that goes on I already would want to ask
if you could report the following tracked while you try to detach the device:
1. host dmesg -w
2. journalctl -f
3. /var/log/libvirt/qemu/.log
Please report all these in case there is something that helps