hv: pgtable: remove alloc_ept_page

alloc_page/free_page should been called in pagetable module. In order to do this,
we add pgtable_create_root and pgtable_create_trusty_root to create PML4 page table
page for normal world and secure world.

After this done, no one uses alloc_ept_page. So remove it.

Tracked-On: #5830
Signed-off-by: Li Fei1 <fei1.li@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Li Fei1 2021-03-09 11:05:06 +08:00 committed by wenlingz
parent ea701c63c7
commit 36ddd87a09
2 changed files with 0 additions and 15 deletions

View File

@ -446,8 +446,3 @@ void walk_ept_table(struct acrn_vm *vm, pge_handler cb)
}
}
}
struct page *alloc_ept_page(struct acrn_vm *vm)
{
return alloc_page(vm->arch_vm.ept_pgtable.pool);
}

View File

@ -164,16 +164,6 @@ void walk_ept_table(struct acrn_vm *vm, pge_handler cb);
*/
int32_t ept_misconfig_vmexit_handler(__unused struct acrn_vcpu *vcpu);
/**
* @brief allocate a page from the VM's EPT pagetable page pool
*
* @param[in] vm the pointer that points to VM data structure
*
* @retval a page pointer if there's available used pages in the VM's EPT
* pagetable page pool, null otherwise.
*/
struct page *alloc_ept_page(struct acrn_vm *vm);
void init_ept_pgtable(struct pgtable *table, uint16_t vm_id);
void reserve_buffer_for_ept_pages(void);
#endif /* EPT_H */