mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
hv: vpci: rename ptdev_config to pci_dev_config
pci_dev_config in VM configure stores all the PCI devices for a VM. Besides PT devices, there're other type devices, like virtual host bridge. So rename ptdev to pci_dev for these configure. 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:
committed by
ACRN System Integration
parent
83e887dbb3
commit
adbaaaf6cb
@@ -498,7 +498,7 @@ void init_vdev_pt(struct pci_vdev *vdev)
|
||||
vbar_base = get_pbar_base(vdev->pdev, idx);
|
||||
} else if (idx > 0U) {
|
||||
/* For pre-launched VMs: vbar base is predefined in vm_config */
|
||||
vbar_base = vdev->ptdev_config->vbar_base[idx - 1U];
|
||||
vbar_base = vdev->pci_dev_config->vbar_base[idx - 1U];
|
||||
} else {
|
||||
vbar_base = 0UL;
|
||||
}
|
||||
@@ -522,7 +522,7 @@ void init_vdev_pt(struct pci_vdev *vdev)
|
||||
vbar_base = get_pbar_base(vdev->pdev, idx);
|
||||
} else {
|
||||
/* For pre-launched VMs: vbar base is predefined in vm_config */
|
||||
vbar_base = vdev->ptdev_config->vbar_base[idx];
|
||||
vbar_base = vdev->pci_dev_config->vbar_base[idx];
|
||||
}
|
||||
vdev_pt_write_vbar(vdev, pci_bar_offset(idx), (uint32_t)vbar_base);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user