29.09.2016 07:04, Chen Fan wrote:
the bar index names are much similar to the bar memory regions,
distinguish them to improve the code readability.
-vpci_dev->modern_mem_bar = 2;
-vpci_dev->msix_bar = 4;
+vpci_dev->modern_mem_bar_idx = 2;
+vpci_dev->msix_bar_idx = 4;
...
Ap
the bar index names are much similar to the bar memory regions,
distinguish them to improve the code readability.
Signed-off-by: Chen Fan
---
hw/display/virtio-vga.c | 4 ++--
hw/virtio/virtio-pci.c | 20 ++--
hw/virtio/virtio-pci.h | 8
3 files changed, 16 insertion