summary refs log tree commit diff stats
path: root/include/hw/pci/pci.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-03-31 15:31:14 +0300
committerMichael S. Tsirkin <mst@redhat.com>2013-04-16 01:41:53 +0300
commit22773d6066a7f01a95f78c270edf9dbd2e755ac3 (patch)
tree5507eb1b8271147b211e178f4d726f6f35b44616 /include/hw/pci/pci.h
parent41cb62c2d9a5a2668165fdd6f195f54ad30e5396 (diff)
downloadfocaccia-qemu-22773d6066a7f01a95f78c270edf9dbd2e755ac3.tar.gz
focaccia-qemu-22773d6066a7f01a95f78c270edf9dbd2e755ac3.zip
pci: add pci test device
This device is used for kvm unit tests,
currently it supports testing performance of ioeventfd.
Using updated kvm unittest, here's an example output:
        mmio-no-eventfd:pci-mem 8796
        mmio-wildcard-eventfd:pci-mem 3609
        mmio-datamatch-eventfd:pci-mem 3685
        portio-no-eventfd:pci-io 5287
        portio-wildcard-eventfd:pci-io 1762
        portio-datamatch-eventfd:pci-io 1777

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/pci/pci.h')
-rw-r--r--include/hw/pci/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index 05315c0475..7053d5bb4b 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -85,6 +85,7 @@
 #define PCI_DEVICE_ID_REDHAT_SERIAL      0x0002
 #define PCI_DEVICE_ID_REDHAT_SERIAL2     0x0003
 #define PCI_DEVICE_ID_REDHAT_SERIAL4     0x0004
+#define PCI_DEVICE_ID_REDHAT_TEST        0x0005
 #define PCI_DEVICE_ID_REDHAT_QXL         0x0100
 
 #define FMT_PCIBUS                      PRIx64