hv: ept: store virtual address of EPT PML4 table

Most of the time, we use the virtual address of EPT PMl4 table,
not physical address.

Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Li, Fei1
2018-07-17 16:23:33 +08:00
committed by lijinxia
parent 23a5c74ac7
commit 1815a1bb01
8 changed files with 58 additions and 57 deletions

View File

@@ -87,13 +87,13 @@ enum vm_state {
struct vm_arch {
uint64_t guest_init_pml4;/* Guest init pml4 */
/* EPT hierarchy for Normal World */
uint64_t nworld_eptp;
void *nworld_eptp;
/* EPT hierarchy for Secure World
* Secure world can access Normal World's memory,
* but Normal World can not access Secure World's memory.
*/
uint64_t sworld_eptp;
uint64_t m2p; /* machine address to guest physical address */
void *sworld_eptp;
void *m2p; /* machine address to guest physical address */
void *tmp_pg_array; /* Page array for tmp guest paging struct */
void *iobitmap[2];/* IO bitmap page array base address for this VM */
void *msr_bitmap; /* MSR bitmap page base address for this VM */