mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-11 21:59:26 +00:00
hv: pgtable: fix 'Use of function like macro'
Convert HPA2HVA, HVA2HPA, GPA2HVA and HVA2GPA to inline functions. v1 -> v2: * Modify the following statement. rsdp = biosacpi_search_rsdp((char *)hpa2hva((uint64_t)(*addr << 4)), 0x400); Instead of "(uint64_t)(*addr << 4)", "(uint64_t)(*addr) << 4U" would be clearer. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -145,7 +145,7 @@ static int vdev_pt_init(struct pci_vdev *vdev)
|
||||
vm->arch_vm.nworld_eptp = alloc_paging_struct();
|
||||
}
|
||||
vm->iommu = create_iommu_domain(vm->vm_id,
|
||||
HVA2HPA(vm->arch_vm.nworld_eptp), 48U);
|
||||
hva2hpa(vm->arch_vm.nworld_eptp), 48U);
|
||||
}
|
||||
|
||||
ret = assign_iommu_device(vm->iommu, vdev->pdev.bdf.bits.b,
|
||||
|
Reference in New Issue
Block a user