qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/1] VFIO pull request
@ 2014-08-25 19:39 Alex Williamson
  2014-08-25 19:39 ` [Qemu-devel] [PULL 1/1] vfio: Enable NVIDIA 88000 region quirk regardless of VGA Alex Williamson
  2014-08-26 11:30 ` [Qemu-devel] [PULL 0/1] VFIO pull request Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Williamson @ 2014-08-25 19:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: 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

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PULL 1/1] vfio: Enable NVIDIA 88000 region quirk regardless of VGA
  2014-08-25 19:39 [Qemu-devel] [PULL 0/1] VFIO pull request Alex Williamson
@ 2014-08-25 19:39 ` Alex Williamson
  2014-08-26 11:30 ` [Qemu-devel] [PULL 0/1] VFIO pull request Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Williamson @ 2014-08-25 19:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: alex.williamson

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.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---
 hw/misc/vfio.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
index 0617b70..40dcaa6 100644
--- a/hw/misc/vfio.c
+++ b/hw/misc/vfio.c
@@ -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;
     }
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PULL 0/1] VFIO pull request
  2014-08-25 19:39 [Qemu-devel] [PULL 0/1] VFIO pull request Alex Williamson
  2014-08-25 19:39 ` [Qemu-devel] [PULL 1/1] vfio: Enable NVIDIA 88000 region quirk regardless of VGA Alex Williamson
@ 2014-08-26 11:30 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2014-08-26 11:30 UTC (permalink / raw)
  To: Alex Williamson; +Cc: QEMU Developers

On 25 August 2014 20:39, Alex Williamson <alex.williamson@redhat.com> wrote:
> 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(-)

Applied, thanks.

-- PMM

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-26 11:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-25 19:39 [Qemu-devel] [PULL 0/1] VFIO pull request Alex Williamson
2014-08-25 19:39 ` [Qemu-devel] [PULL 1/1] vfio: Enable NVIDIA 88000 region quirk regardless of VGA Alex Williamson
2014-08-26 11:30 ` [Qemu-devel] [PULL 0/1] VFIO pull request Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).