vfio bug with all no VGA card
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| QEMU |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
Hello,
I whant to report to you a realy big bug.
vfio passthrough work only with VGA card ! When i try to use vfio with any other PCI or PCI-E card it does not work.
When i use vfio for VGA i can reboot (or shutdown and start again) my VM with out problem, but for any other PCI card the VM refuse to reboot.
In dmesg i have this error :
dmar: DRHD: handling fault status reg 2
dmar: DMAR:[DMA Read] Request device [xx:xx.x] fault addr 2affde000
DMAR:[fault reason 06] PTE Read access is not set
and some time the same but for Write and not Read.
I found a kind of work around but it's ugly. Just detach your devices from vfio, re-atach to his normal driver and bind again to vfio.
For information i use an Asrock Z87 Extrem 6 with a CoreI5 4570S
My kernel is 3.12 and Qemu is 1.7-rc0

Some adjustment,
It's seem this not appear with my Intel network card i211.
But i can confirme this bug appear with AsMedia 1061 sata3 controler.
the complete dmesg :
[ 404.206866] dmar: DRHD: handling fault status reg 2
[ 404.206870] dmar: DMAR:[DMA Write] Request device [07:00.0] fault addr 2affdf000
[ 404.206870] DMAR:[fault reason 05] PTE Write access is not set
[ 404.206877] dmar: DRHD: handling fault status reg 2
[ 404.206879] dmar: DMAR:[DMA Read] Request device [07:00.0] fault addr 2affda000
[ 404.206879] DMAR:[fault reason 06] PTE Read access is not set
I start my VM with :
sudo qemu-system-x86_64 -M q35 -m 8G -enable-kvm -cpu Haswell -vga none -nographic -parallel none -boot menu=on \ 1,cores= 4,threads= 1 \ bus=pcie. 0,addr= 1c.0,multifunct ion=on, port=1, chassis= 1,id=root. 1 \ host=01: 00.0,x- vga=on, addr=0. 0,multifunction =on,bus= root.1 \ //AMD HD7770 host=01: 00.1,bus= pcie.0 \ //AMD audio HDMI host=07: 00.0,bus= pcie.0 \ //AsMedia 1061 sata3 controler host=00: 19.0,bus= pcie.0 \ //Intel i211 network
-smp 4,sockets=
-device ioh3420,
-device vfio-pci,
-device vfio-pci,
-device vfio-pci,
-device vfio-pci,
-net none \
-usb -usbdevice host:05e3:0607 -usbdevice host:1532:002f -usbdevice host:046d:c229 -usbdevice host:046d:c228 //Logiteck G19s and razer mouse
It's appear with linux kernel 3.12.0 and 3.13-rc2
Qemu version is 1.7 (no rc).