diff options
author | Chen Fan <fan.chen@easystack.cn> | 2016-09-29 12:04:40 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2016-10-08 11:25:29 +0300 |
commit | 7a25126d8a4155536a8a3d350e0ab185607bc819 (patch) | |
tree | 970236cd095d46992180e550cb46bbb44fe1b0cf /hw/display/virtio-vga.c | |
parent | 0839f11cda08039d15b3e7621390de3e512b24e7 (diff) | |
download | qemu-7a25126d8a4155536a8a3d350e0ab185607bc819.zip qemu-7a25126d8a4155536a8a3d350e0ab185607bc819.tar.gz qemu-7a25126d8a4155536a8a3d350e0ab185607bc819.tar.bz2 |
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/display/virtio-vga.c')
-rw-r--r-- | hw/display/virtio-vga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c index f77b401..f9b017d 100644 --- a/hw/display/virtio-vga.c +++ b/hw/display/virtio-vga.c @@ -120,8 +120,8 @@ static void virtio_vga_realize(VirtIOPCIProxy *vpci_dev, Error **errp) * virtio regions are moved to the end of bar #2, to make room for * the stdvga mmio registers at the start of bar #2. */ - vpci_dev->modern_mem_bar = 2; - vpci_dev->msix_bar = 4; + vpci_dev->modern_mem_bar_idx = 2; + vpci_dev->msix_bar_idx = 4; if (!(vpci_dev->flags & VIRTIO_PCI_FLAG_PAGE_PER_VQ)) { /* |