518a82d80b
The init page tables installed in either cpu_primary.S or trampoline.S are 1:1 mapping and won't be changed in the future. The 'actual' hypervisor page table installed in enable_paging() is 1:1 mapping currently but it could be changed in the future. Both hva2hpa() and hpa2hva() are implemented based on these page tables and can't be used when the init page tables take effect. This patch does the following cleanup: - remove all hva2hpa()/hpa2hva() before calling enable_paging() - get_hv_image_base() returns HVA, not HPA. So add hva2hpa() for all cases that are called afte enable_paging(). Tracked-On: #2700 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Eddie Dong <Eddie.dong@intel.com> |
||
---|---|---|
.. | ||
hv_main.c | ||
hypercall.c | ||
io_req.c | ||
ptdev.c | ||
schedule.c | ||
softirq.c | ||
stack_protector.c | ||
static_checks.c | ||
trusty_hypercall.c | ||
vm_load.c |