mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
ept: change eptp to PA
eptp should be record as PA. this patch changed nworld_eptp, sworld_eptp and m2p eptp to PA type, necessary HPA2HVA/HVA2HPA transition is used for them after the change. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -115,13 +115,13 @@ struct vm_state_info {
|
||||
struct vm_arch {
|
||||
void *guest_pml4; /* Guest pml4 */
|
||||
/* EPT hierarchy for Normal World */
|
||||
void *nworld_eptp;
|
||||
uint64_t 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.
|
||||
*/
|
||||
void *sworld_eptp;
|
||||
void *m2p; /* machine address to guest physical address */
|
||||
uint64_t sworld_eptp;
|
||||
uint64_t 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 */
|
||||
|
@@ -242,7 +242,7 @@ int unassign_iommu_device(struct iommu_domain *domain,
|
||||
|
||||
/* Create a iommu domain for a VM specified by vm_id */
|
||||
struct iommu_domain *create_iommu_domain(int vm_id,
|
||||
void *translation_table, int addr_width);
|
||||
uint64_t translation_table, int addr_width);
|
||||
|
||||
/* Destroy the iommu domain */
|
||||
int destroy_iommu_domain(struct iommu_domain *domain);
|
||||
|
Reference in New Issue
Block a user