diff options
| author | Stefan Hajnoczi | 2019-10-23 12:04:23 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2019-10-25 13:46:22 +0200 |
| commit | f17429e545dae46fbe85eebd89fec4e720a1e241 (patch) | |
| tree | a7a0205403e5785b83eee1925c319f2a789b7d70 /tests/libqos/virtio-pci.h | |
| parent | libqos: expose common virtqueue setup/cleanup functions (diff) | |
| download | qemu-f17429e545dae46fbe85eebd89fec4e720a1e241.tar.gz qemu-f17429e545dae46fbe85eebd89fec4e720a1e241.tar.xz qemu-f17429e545dae46fbe85eebd89fec4e720a1e241.zip | |
libqos: make the virtio-pci BAR index configurable
The Legacy virtio-pci interface always uses BAR 0. VIRTIO 1.0 may need
to use a different BAR index, so make it configurable.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191023100425.12168-15-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/libqos/virtio-pci.h')
| -rw-r--r-- | tests/libqos/virtio-pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libqos/virtio-pci.h b/tests/libqos/virtio-pci.h index 0e4a8b7b00..78a1c15c2a 100644 --- a/tests/libqos/virtio-pci.h +++ b/tests/libqos/virtio-pci.h @@ -25,6 +25,8 @@ typedef struct QVirtioPCIDevice { uint16_t config_msix_entry; uint64_t config_msix_addr; uint32_t config_msix_data; + + int bar_idx; } QVirtioPCIDevice; struct QVirtioPCIMSIXOps { |
