mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-14 14:25:14 +00:00
HV: VPCI: Fix too much of pci_vdev_update_vbar_base log
Should call vpci_init_vdevs() after mmio window resource has been initialized Tracked-On: #6011 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
This commit is contained in:
parent
da288a670b
commit
847affb30a
@ -221,8 +221,6 @@ void init_vpci(struct acrn_vm *vm)
|
|||||||
struct pci_mmcfg_region *pci_mmcfg;
|
struct pci_mmcfg_region *pci_mmcfg;
|
||||||
|
|
||||||
vm->iommu = create_iommu_domain(vm->vm_id, hva2hpa(vm->arch_vm.nworld_eptp), 48U);
|
vm->iommu = create_iommu_domain(vm->vm_id, hva2hpa(vm->arch_vm.nworld_eptp), 48U);
|
||||||
/* Build up vdev list for vm */
|
|
||||||
vpci_init_vdevs(vm);
|
|
||||||
|
|
||||||
vm_config = get_vm_config(vm->vm_id);
|
vm_config = get_vm_config(vm->vm_id);
|
||||||
/* virtual PCI MMCONFIG for SOS is same with the physical value */
|
/* virtual PCI MMCONFIG for SOS is same with the physical value */
|
||||||
@ -243,6 +241,9 @@ void init_vpci(struct acrn_vm *vm)
|
|||||||
vm->vpci.res64.end = UOS_VIRT_PCI_MEMLIMIT64;
|
vm->vpci.res64.end = UOS_VIRT_PCI_MEMLIMIT64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Build up vdev list for vm */
|
||||||
|
vpci_init_vdevs(vm);
|
||||||
|
|
||||||
register_mmio_emulation_handler(vm, vpci_mmio_cfg_access, vm->vpci.pci_mmcfg.address,
|
register_mmio_emulation_handler(vm, vpci_mmio_cfg_access, vm->vpci.pci_mmcfg.address,
|
||||||
vm->vpci.pci_mmcfg.address + get_pci_mmcfg_size(&vm->vpci.pci_mmcfg), &vm->vpci, false);
|
vm->vpci.pci_mmcfg.address + get_pci_mmcfg_size(&vm->vpci.pci_mmcfg), &vm->vpci, false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user