allocate pci id for mdpy
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 24 Apr 2018 06:38:57 +0000 (08:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 23 May 2018 00:14:40 +0000 (03:14 +0300)
mdpy is a sample pci device for vfio-mdev.  Not (yet) merged upstream,
patch available here:

https://www.kraxel.org/cgit/linux/commit/?h=vfio-sample-display&id=6fd86cff3d7df38ab89625b16fdd6434b1c18749

Cc: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/specs/pci-ids.txt
include/hw/pci/pci.h

index bb99a0257eb968c35a7b1f1e1e4b1f715710a184..4d53e5c7d9d527df0369ec02265ce84382be3b86 100644 (file)
@@ -62,6 +62,7 @@ PCI devices (other than virtio):
 1b36:000a  PCI-PCI bridge (multiseat)
 1b36:000b  PCIe Expander Bridge (-device pxb-pcie)
 1b36:000d  PCI xhci usb host adapter
+1b36:000f  mdpy (mdev sample device), linux/samples/vfio-mdev/mdpy.c
 
 All these devices are documented in docs/specs.
 
index a9c3ee5aa2824cca6be0cc1570f66fee53ede049..990d6fcbdeee04d7741f5466ec194dfddd03703d 100644 (file)
@@ -101,6 +101,7 @@ extern bool pci_available;
 #define PCI_DEVICE_ID_REDHAT_PCIE_RP     0x000c
 #define PCI_DEVICE_ID_REDHAT_XHCI        0x000d
 #define PCI_DEVICE_ID_REDHAT_PCIE_BRIDGE 0x000e
+#define PCI_DEVICE_ID_REDHAT_MDPY        0x000f
 #define PCI_DEVICE_ID_REDHAT_QXL         0x0100
 
 #define FMT_PCIBUS                      PRIx64