mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
hv: vtd: remove dynamic page allocation for root&ctx table
Preserve pages for each vtd root table and ctx table Tracked-On: #861 Signed-off-by: Tw <wei.tan@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -71,6 +71,10 @@ enum _page_table_level {
|
||||
#define PAGE_SIZE_2M MEM_2M
|
||||
#define PAGE_SIZE_1G MEM_1G
|
||||
|
||||
struct cpu_page {
|
||||
uint8_t contents[CPU_PAGE_SIZE];
|
||||
};
|
||||
|
||||
uint64_t get_paging_pml4(void);
|
||||
void *alloc_paging_struct(void);
|
||||
void free_paging_struct(void *ptr);
|
||||
|
||||
Reference in New Issue
Block a user