hv:move 2 APIs from hypervisor.h to guest_memory.c

move gva2hva() & hva2gpa() to guest_memory.c,
we will remove hypervisor.h in the future.

Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Mingqiang Chi
2019-02-15 09:28:24 +08:00
committed by wenlingz
parent 07656a9cc6
commit 04c30fb380
3 changed files with 16 additions and 14 deletions

View File

@@ -31,6 +31,11 @@ int32_t gva2gpa(struct acrn_vcpu *vcpu, uint64_t gva, uint64_t *gpa, uint32_t *e
enum vm_paging_mode get_vcpu_paging_mode(struct acrn_vcpu *vcpu);
/* gpa --> hpa -->hva */
void *gpa2hva(struct acrn_vm *vm, uint64_t x);
uint64_t hva2gpa(struct acrn_vm *vm, void *x);
/**
* @brief Data transfering between hypervisor and VM
*