mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
Add page mask MACRO
Add 'CPU_PAGE_MASK' used for calculate address, Change IA32E_REF_MASK from 0x7ffffffffffff000 to 0x000ffffffffff000 for MMU/EPT entry, bit62:52(ignore) bit63(VE/XD) if we want to obtain the address from the MMU/EPT entry,need to clear bit63:52 by IA32E_REF_MASK Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
@@ -640,7 +640,7 @@ void obtain_last_page_table_entry(struct map_params *map_params,
|
||||
}
|
||||
|
||||
/* Obtain page table entry from PD table*/
|
||||
table_addr = (void *)(table_entry&IA32E_REF_MASK);
|
||||
table_addr = (void *)(table_entry & IA32E_REF_MASK);
|
||||
table_entry = get_table_entry(map_params, addr,
|
||||
table_addr, IA32E_PD);
|
||||
table_present = check_page_table_present(map_params, table_entry);
|
||||
@@ -667,7 +667,7 @@ void obtain_last_page_table_entry(struct map_params *map_params,
|
||||
}
|
||||
|
||||
/* Obtain page table entry from PT table*/
|
||||
table_addr = (void *)(table_entry&IA32E_REF_MASK);
|
||||
table_addr = (void *)(table_entry & IA32E_REF_MASK);
|
||||
table_entry = get_table_entry(map_params, addr,
|
||||
table_addr, IA32E_PT);
|
||||
table_present = check_page_table_present(map_params, table_entry);
|
||||
|
Reference in New Issue
Block a user