hv: vtd: use EPT as translation table for PTDev in SOS

In current code, the address translation type for passthrough devices
in SOS is passthrough type, which means the device in SOS can access
the whole physcial memory.
This patch uses SOS EPT to translate address for passthrough
devices. So that the memory of VMM or trusty can be protected from
SOS PTDev.

Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Reviewed-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Binbin Wu
2018-08-20 18:14:04 +08:00
committed by wenlingz
parent 4579e57e7b
commit f95d07dc43
3 changed files with 21 additions and 24 deletions

View File

@@ -496,4 +496,6 @@ void resume_iommu(void);
/* iommu initialization */
void init_iommu(void);
void init_iommu_vm0_domain(struct vm *vm0);
#endif