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:
Tao Yuhong 2021-06-02 09:15:27 -04:00 committed by wenlingz
parent da288a670b
commit 847affb30a

View File

@ -221,8 +221,6 @@ void init_vpci(struct acrn_vm *vm)
struct pci_mmcfg_region *pci_mmcfg;
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);
/* 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;
}
/* Build up vdev list for vm */
vpci_init_vdevs(vm);
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);