mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
libqos: drop duplicated virtio_pci.h definitions
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1462798061-30382-9-git-send-email-stefanha@redhat.com
This commit is contained in:
parent
74f079a7ee
commit
c75f4c061b
4 changed files with 30 additions and 43 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "standard-headers/linux/virtio_config.h"
|
||||
#include "standard-headers/linux/virtio_ring.h"
|
||||
#include "standard-headers/linux/virtio_blk.h"
|
||||
#include "standard-headers/linux/virtio_pci.h"
|
||||
|
||||
#define TEST_IMAGE_SIZE (64 * 1024 * 1024)
|
||||
#define QVIRTIO_BLK_TIMEOUT_US (30 * 1000 * 1000)
|
||||
|
@ -291,7 +292,7 @@ static void pci_basic(void)
|
|||
alloc, 0);
|
||||
|
||||
/* MSI-X is not enabled */
|
||||
addr = dev->addr + QVIRTIO_PCI_DEVICE_SPECIFIC_NO_MSIX;
|
||||
addr = dev->addr + VIRTIO_PCI_CONFIG_OFF(false);
|
||||
|
||||
test_basic(&qvirtio_pci, &dev->vdev, alloc, &vqpci->vq,
|
||||
(uint64_t)(uintptr_t)addr);
|
||||
|
@ -326,7 +327,7 @@ static void pci_indirect(void)
|
|||
dev = virtio_blk_pci_init(bus, PCI_SLOT);
|
||||
|
||||
/* MSI-X is not enabled */
|
||||
addr = dev->addr + QVIRTIO_PCI_DEVICE_SPECIFIC_NO_MSIX;
|
||||
addr = dev->addr + VIRTIO_PCI_CONFIG_OFF(false);
|
||||
|
||||
capacity = qvirtio_config_readq(&qvirtio_pci, &dev->vdev,
|
||||
(uint64_t)(uintptr_t)addr);
|
||||
|
@ -421,7 +422,7 @@ static void pci_config(void)
|
|||
dev = virtio_blk_pci_init(bus, PCI_SLOT);
|
||||
|
||||
/* MSI-X is not enabled */
|
||||
addr = dev->addr + QVIRTIO_PCI_DEVICE_SPECIFIC_NO_MSIX;
|
||||
addr = dev->addr + VIRTIO_PCI_CONFIG_OFF(false);
|
||||
|
||||
capacity = qvirtio_config_readq(&qvirtio_pci, &dev->vdev,
|
||||
(uint64_t)(uintptr_t)addr);
|
||||
|
@ -468,7 +469,7 @@ static void pci_msix(void)
|
|||
qvirtio_pci_set_msix_configuration_vector(dev, alloc, 0);
|
||||
|
||||
/* MSI-X is enabled */
|
||||
addr = dev->addr + QVIRTIO_PCI_DEVICE_SPECIFIC_MSIX;
|
||||
addr = dev->addr + VIRTIO_PCI_CONFIG_OFF(true);
|
||||
|
||||
capacity = qvirtio_config_readq(&qvirtio_pci, &dev->vdev,
|
||||
(uint64_t)(uintptr_t)addr);
|
||||
|
@ -584,7 +585,7 @@ static void pci_idx(void)
|
|||
qvirtio_pci_set_msix_configuration_vector(dev, alloc, 0);
|
||||
|
||||
/* MSI-X is enabled */
|
||||
addr = dev->addr + QVIRTIO_PCI_DEVICE_SPECIFIC_MSIX;
|
||||
addr = dev->addr + VIRTIO_PCI_CONFIG_OFF(true);
|
||||
|
||||
capacity = qvirtio_config_readq(&qvirtio_pci, &dev->vdev,
|
||||
(uint64_t)(uintptr_t)addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue