summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-pci.h
diff options
context:
space:
mode:
authorChen Fan2016-09-29 06:04:40 +0200
committerMichael Tokarev2016-10-08 10:25:29 +0200
commit7a25126d8a4155536a8a3d350e0ab185607bc819 (patch)
tree970236cd095d46992180e550cb46bbb44fe1b0cf /hw/virtio/virtio-pci.h
parentlinux-user: include <poll.h> instead of <sys/poll.h> (diff)
downloadqemu-7a25126d8a4155536a8a3d350e0ab185607bc819.tar.gz
qemu-7a25126d8a4155536a8a3d350e0ab185607bc819.tar.xz
qemu-7a25126d8a4155536a8a3d350e0ab185607bc819.zip
virtio: rename the bar index field name in VirtIOPCIProxy
the bar index names are much similar to the bar memory regions, distinguish them to improve the code readability. Signed-off-by: Chen Fan <fan.chen@easystack.cn> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/virtio/virtio-pci.h')
-rw-r--r--hw/virtio/virtio-pci.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 541cbdbc2b..b4edea6987 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -143,10 +143,10 @@ struct VirtIOPCIProxy {
MemoryRegion io_bar;
MemoryRegion modern_cfg;
AddressSpace modern_as;
- uint32_t legacy_io_bar;
- uint32_t msix_bar;
- uint32_t modern_io_bar;
- uint32_t modern_mem_bar;
+ uint32_t legacy_io_bar_idx;
+ uint32_t msix_bar_idx;
+ uint32_t modern_io_bar_idx;
+ uint32_t modern_mem_bar_idx;
int config_cap;
uint32_t flags;
bool disable_modern;