projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54d6899
)
vfio/pci-quirks: Exclude non-ioport BAR from NVIDIA quirk
author
Alex Williamson
<alex.williamson@redhat.com>
Thu, 6 Apr 2017 22:03:26 +0000
(16:03 -0600)
committer
Alex Williamson
<alex.williamson@redhat.com>
Thu, 6 Apr 2017 22:03:26 +0000
(16:03 -0600)
The NVIDIA BAR5 quirk is targeting an ioport BAR. Some older devices
have a BAR5 which is not ioport and can induce a segfault here. Test
the BAR type to skip these devices.
Link:
https://bugs.launchpad.net/qemu/+bug/1678466
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci-quirks.c
patch
|
blob
|
history
diff --git
a/hw/vfio/pci-quirks.c
b/hw/vfio/pci-quirks.c
index e9b493b939dbdfaeebe0385e7c660bd2d98ece6a..349085ea12bc3c9591c666acea1b41e19c73e9d0 100644
(file)
--- a/
hw/vfio/pci-quirks.c
+++ b/
hw/vfio/pci-quirks.c
@@
-660,7
+660,7
@@
static void vfio_probe_nvidia_bar5_quirk(VFIOPCIDevice *vdev, int nr)
VFIOConfigWindowQuirk *window;
if (!vfio_pci_is(vdev, PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID) ||
- !vdev->vga || nr != 5) {
+ !vdev->vga || nr != 5
|| !vdev->bars[5].ioport
) {
return;
}