mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
hv:removed assert in free_ept_mem
Removed assert since the caller has checked the parameter. Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
parent
a5121e95e9
commit
7109ab45a6
@ -43,6 +43,9 @@ static uint64_t find_next_table(uint32_t table_offset, void *table_base)
|
||||
return sub_table_addr;
|
||||
}
|
||||
|
||||
/**
|
||||
* @pre pml4_addr != NULL
|
||||
*/
|
||||
static void free_ept_mem(void *pml4_addr)
|
||||
{
|
||||
void *pdpt_addr;
|
||||
@ -52,11 +55,6 @@ static void free_ept_mem(void *pml4_addr)
|
||||
uint32_t pdpt_index;
|
||||
uint32_t pde_idx;
|
||||
|
||||
if (pml4_addr == NULL) {
|
||||
ASSERT(false, "EPTP is NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
for (pml4_index = 0U; pml4_index < IA32E_NUM_ENTRIES; pml4_index++) {
|
||||
/* Walk from the PML4 table to the PDPT table */
|
||||
pdpt_addr = HPA2HVA(find_next_table(pml4_index, pml4_addr));
|
||||
|
Loading…
Reference in New Issue
Block a user