hv: pgtable: add pgtable_create_root

Add pgtable_create_root to allocate a page for PMl4 page table page.

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 10:59:42 +08:00
committed by wenlingz
parent eb52e2193a
commit 596c349600
4 changed files with 8 additions and 2 deletions

View File

@@ -304,6 +304,7 @@ static inline uint64_t pdpte_large(uint64_t pdpte)
return pdpte & PAGE_PSE;
}
void *pgtable_create_root(const struct pgtable *table);
/**
*@pre (pml4_page != NULL) && (pg_size != NULL)
*/