MCPcopy Create free account
hub / github.com/F-Stack/f-stack / iommu_create_mapping

Function iommu_create_mapping

freebsd/amd64/vmm/io/iommu.c:287–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287void
288iommu_create_mapping(void *dom, vm_paddr_t gpa, vm_paddr_t hpa, size_t len)
289{
290 uint64_t mapped, remaining;
291
292 remaining = len;
293
294 while (remaining > 0) {
295 mapped = IOMMU_CREATE_MAPPING(dom, gpa, hpa, remaining);
296 gpa += mapped;
297 hpa += mapped;
298 remaining -= mapped;
299 }
300}
301
302void
303iommu_remove_mapping(void *dom, vm_paddr_t gpa, size_t len)

Callers 2

vm_iommu_modifyFunction · 0.85
iommu_initFunction · 0.85

Calls 1

IOMMU_CREATE_MAPPINGFunction · 0.85

Tested by

no test coverage detected