acrn-hypervisor/hypervisor/common
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
..
hv_main.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
hypercall.c hv: cleanup some hva/hpa conversion code 2019-03-15 09:03:14 +08:00
io_req.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
ptdev.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
schedule.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
softirq.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
stack_protector.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
static_checks.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
trusty_hypercall.c HV: cleanup header files under hypervisor/common 2019-02-28 14:59:22 +08:00
vm_load.c hv: simplify `get_primary_vcpu` and `vcpu_from_vid` 2019-03-04 13:45:02 +08:00