Lines Matching refs:prot
618 uint64_t prot = 0UL, base_paddr; in add_vm_memory_region() local
622 if ((region->prot & MEM_ACCESS_READ) != 0U) { in add_vm_memory_region()
623 prot |= EPT_RD; in add_vm_memory_region()
625 if ((region->prot & MEM_ACCESS_WRITE) != 0U) { in add_vm_memory_region()
626 prot |= EPT_WR; in add_vm_memory_region()
628 if ((region->prot & MEM_ACCESS_EXEC) != 0U) { in add_vm_memory_region()
629 prot |= EPT_EXE; in add_vm_memory_region()
633 if ((region->prot & MEM_TYPE_WB) != 0U) { in add_vm_memory_region()
634 prot |= EPT_WB; in add_vm_memory_region()
635 } else if ((region->prot & MEM_TYPE_WT) != 0U) { in add_vm_memory_region()
636 prot |= EPT_WT; in add_vm_memory_region()
637 } else if ((region->prot & MEM_TYPE_WC) != 0U) { in add_vm_memory_region()
638 prot |= EPT_WC; in add_vm_memory_region()
639 } else if ((region->prot & MEM_TYPE_WP) != 0U) { in add_vm_memory_region()
640 prot |= EPT_WP; in add_vm_memory_region()
642 prot |= EPT_UNCACHED; in add_vm_memory_region()
654 prot |= EPT_WB; in add_vm_memory_region()
659 ept_add_mr(target_vm, pml4_page, hpa, region->gpa, region->size, prot); in add_vm_memory_region()