hv: pgatble: move the MMU page table related APIs to mmu.c

Move the MMU page table related APIs to mmu.c. page module only provides APIs to
allocate/free page for page table page. pagetabl module only provides APIs to
add/modify/delete/lookup page table entry. The page pool and the page table
related APIs for MMU should defined in MMU module.

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-10 13:43:12 +08:00
committed by wenlingz
parent 15d68675e9
commit 5c71ca456a
3 changed files with 58 additions and 59 deletions

View File

@@ -77,7 +77,6 @@ struct pgtable {
void (*recover_exe_right)(uint64_t *entry);
};
extern const struct pgtable ppt_pgtable;
void init_ept_pgtable(struct pgtable *table, uint16_t vm_id);
struct page *alloc_page(struct page_pool *pool);
void free_page(struct page_pool *pool, struct page *page);