mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
hv: mmu: rename PTT_HOST to PTT_PRIMARY
Tracked-On: #1124 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -215,7 +215,7 @@
|
||||
#define ROUND_PAGE_DOWN(addr) ((addr) & CPU_PAGE_MASK)
|
||||
|
||||
enum _page_table_type {
|
||||
PTT_HOST = 0, /* Mapping for hypervisor */
|
||||
PTT_PRIMARY = 0, /* Mapping for hypervisor */
|
||||
PTT_EPT = 1,
|
||||
PAGETABLE_TYPE_UNKNOWN,
|
||||
};
|
||||
|
||||
@@ -96,7 +96,7 @@ static inline uint64_t pdpte_large(uint64_t pdpte)
|
||||
|
||||
static inline uint64_t pgentry_present(enum _page_table_type ptt, uint64_t pte)
|
||||
{
|
||||
return (ptt == PTT_HOST) ? (pte & PAGE_PRESENT) : (pte & EPT_RWX);
|
||||
return (ptt == PTT_PRIMARY) ? (pte & PAGE_PRESENT) : (pte & EPT_RWX);
|
||||
}
|
||||
|
||||
#endif /* PGTABLE_H */
|
||||
|
||||
Reference in New Issue
Block a user