hv: vpci: rename pci_bar to pci_vbar

Structure pci_vbar is used to define the virtual BAR rather than physical BAR.
It's better to name as pci_vbar.

Tracked-On: #3475
Signed-off-by: Li Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Li Fei1
2019-12-23 22:52:02 +08:00
committed by wenlingz
parent d2089889d8
commit 58b3a05863
3 changed files with 23 additions and 23 deletions

View File

@@ -34,7 +34,7 @@
#include <pci.h>
struct pci_bar {
struct pci_vbar {
enum pci_bar_type type;
uint64_t size; /* BAR size */
uint64_t base; /* BAR guest physical address */
@@ -94,7 +94,7 @@ struct pci_vdev {
/* The bar info of the virtual PCI device. */
uint32_t nr_bars; /* 6 for normal device, 2 for bridge, 1 for cardbus */
struct pci_bar bar[PCI_BAR_COUNT];
struct pci_vbar vbars[PCI_BAR_COUNT];
struct pci_msi msi;
struct pci_msix msix;