acrn-hypervisor/hypervisor/boot
Zide Chen 518a82d80b hv: cleanup some hva/hpa conversion code
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>
2019-03-15 09:03:14 +08:00
..
include hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
sbl hv: refactor seed management 2019-03-14 10:38:17 +08:00
uefi HV: Modularize boot folder 2019-03-14 09:05:53 +08:00
acpi.c hv: merge SBL and UEFI related stuff under boot 2019-03-13 10:26:55 +08:00
dmar_parse.c HV: Modularize boot folder 2019-03-14 09:05:53 +08:00
reloc.c hv: cleanup some hva/hpa conversion code 2019-03-15 09:03:14 +08:00