Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/vmmon-only/linux/iommu.c b/vmmon-only/linux/iommu.c
- index a279a26..9de467b 100644
- --- a/vmmon-only/linux/iommu.c
- +++ b/vmmon-only/linux/iommu.c
- @@ -153,7 +153,7 @@ IOMMU_SetupMMU(VMLinux *vmLinux, // IN: virtual machine descriptor
- map_to = PPN_2_PA(mpn);
- map_prot = IOMMU_READ | IOMMU_WRITE;
- }
- - if ((status = iommu_map_range(vmLinux->iommuDomain,
- + if ((status = iommu_map(vmLinux->iommuDomain,
- PPN_2_PA(ppn),
- map_to, PAGE_SIZE, map_prot))) {
- printk(KERN_ERR "%s: IOMMU Mapping of PPN 0x%x -> MPN 0x%x "
- @@ -400,7 +400,7 @@ IOMMU_VMCleanup(VMLinux *vmLinux) // IN: virtual machine descriptor
- /* Relinquish the IOMMU domain used by this VM. */
- for (ppn = 0; ppn < vmLinux->numPages; ppn++) {
- - iommu_unmap_range(vmLinux->iommuDomain, PPN_2_PA(ppn), PAGE_SIZE);
- + iommu_unmap(vmLinux->iommuDomain, PPN_2_PA(ppn), PAGE_SIZE);
- }
- if (vmLinux->iommuDomain) {
- iommu_domain_free(vmLinux->iommuDomain);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement