diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2013-03-31 15:31:14 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-04-16 01:41:53 +0300 |
commit | 22773d6066a7f01a95f78c270edf9dbd2e755ac3 (patch) | |
tree | 5507eb1b8271147b211e178f4d726f6f35b44616 /include/hw | |
parent | 41cb62c2d9a5a2668165fdd6f195f54ad30e5396 (diff) | |
download | hqemu-22773d6066a7f01a95f78c270edf9dbd2e755ac3.zip hqemu-22773d6066a7f01a95f78c270edf9dbd2e755ac3.tar.gz |
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')
-rw-r--r-- | include/hw/pci/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index 05315c0..7053d5b 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 |