hv: mmu: add static paging table allocation for EPT

Add static paging table allocation API for EPT.
Note: must configure SOS/UOS_REAM_SIZE exactly as the platform.

Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1
2018-11-02 02:25:15 +08:00
committed by lijinxia
parent dc9d18a868
commit 9c7c0de08f
5 changed files with 141 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
#define VM_H_
#include <bsp_extern.h>
#include <vpci.h>
#include <page.h>
#ifdef CONFIG_PARTITION_MODE
#include <mptable.h>
@@ -97,6 +98,8 @@ struct vm_arch {
* but Normal World can not access Secure World's memory.
*/
void *sworld_eptp;
struct memory_ops ept_mem_ops;
void *tmp_pg_array; /* Page array for tmp guest paging struct */
struct acrn_vioapic vioapic; /* Virtual IOAPIC base address */
struct acrn_vpic vpic; /* Virtual PIC */