Skip to contentSkip to conversation

VFIO pull request

GIT PULL Applied Alex Williamson 2 participants 3 messages Aug 25, 2014 – Aug 26, 2014

lore
Share & tools
lore
#0 lore raw

The following changes since commit 3dd359c2d34c6abf385d58da863f337b39702585:

Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-08-24' into staging (2014-08-25 17:34:30 +0100)

are available in the git repository at:

git://github.com/awilliam/qemu-vfio.git tags/vfio-pci-for-qemu-20140825.0

for you to fetch changes up to fe08275db9b88ecf3a30c7540b894c25aec150c2:

vfio: Enable NVIDIA 88000 region quirk regardless of VGA (2014-08-25 12:10:15 -0600)

----------------------------------------------------------------
VFIO: Enable primary NVIDIA quirk regardless of VGA support

----------------------------------------------------------------
Alex Williamson (1):
vfio: Enable NVIDIA 88000 region quirk regardless of VGA

 hw/misc/vfio.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 1/1] vfio: Enable NVIDIA 88000 region quirk regardless of VGA

If we make use of OVMF for the BIOS then we can use GPUs without VGA space access, but we still need this quirk. Disassociate it from the x-vga option and enable it on all NVIDIA VGA display class devices.

---
 hw/misc/vfio.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
hw/misc/vfio.c +6 -2
index 0617b70..40dcaa6 100644
@@ -2194,9 +2194,13 @@ static void vfio_probe_nvidia_bar0_88000_quirk(VFIODevice *vdev, int nr)
 {
     PCIDevice *pdev = &vdev->pdev;
     VFIOQuirk *quirk;
+    uint16_t vendor, class;
 
-    if (!vdev->has_vga || nr != 0 ||
-        pci_get_word(pdev->config + PCI_VENDOR_ID) != PCI_VENDOR_ID_NVIDIA) {
+    vendor = pci_get_word(pdev->config + PCI_VENDOR_ID);
+    class = pci_get_word(pdev->config + PCI_CLASS_DEVICE);
+
+    if (nr != 0 || vendor != PCI_VENDOR_ID_NVIDIA ||
+        class != PCI_CLASS_DISPLAY_VGA) {
         return;
     }
 
#2 lore raw
In reply to Alex Williamson
Quoted 16 lines · Alex Williamson

The following changes since commit 3dd359c2d34c6abf385d58da863f337b39702585:

Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-08-24' into staging (2014-08-25 17:34:30 +0100)

are available in the git repository at:

git://github.com/awilliam/qemu-vfio.git tags/vfio-pci-for-qemu-20140825.0

for you to fetch changes up to fe08275db9b88ecf3a30c7540b894c25aec150c2:

vfio: Enable NVIDIA 88000 region quirk regardless of VGA (2014-08-25 12:10:15 -0600)

----------------------------------------------------------------
VFIO: Enable primary NVIDIA quirk regardless of VGA support

Quoted 6 lines

----------------------------------------------------------------
Alex Williamson (1):
vfio: Enable NVIDIA 88000 region quirk regardless of VGA

 hw/misc/vfio.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Applied, thanks.

-- PMM