1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
peripherals: 0.992
graphic: 0.990
assembly: 0.989
permissions: 0.988
register: 0.987
kernel: 0.987
semantic: 0.987
socket: 0.986
architecture: 0.985
performance: 0.984
debug: 0.984
hypervisor: 0.984
network: 0.984
device: 0.983
ppc: 0.983
KVM: 0.982
boot: 0.981
virtual: 0.981
arm: 0.980
PID: 0.978
VMM: 0.978
x86: 0.976
user-level: 0.976
vnc: 0.976
risc-v: 0.973
mistranslation: 0.970
TCG: 0.966
i386: 0.962
files: 0.953
vfio bug with all no VGA card
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 \
-smp 4,sockets=1,cores=4,threads=1 \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
-device vfio-pci,host=01:00.0,x-vga=on,addr=0.0,multifunction=on,bus=root.1 \ //AMD HD7770
-device vfio-pci,host=01:00.1,bus=pcie.0 \ //AMD audio HDMI
-device vfio-pci,host=07:00.0,bus=pcie.0 \ //AsMedia 1061 sata3 controler
-device vfio-pci,host=00:19.0,bus=pcie.0 \ //Intel i211 network
-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).
Looking through old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?
[Expired for QEMU because there has been no activity for 60 days.]
|