dm: Remove unused duplicated API dm_gpa2hva

paddr_guest2host has same function with dm_gpa2hva. And There is no
usage of dm_gpa2hva. Remove it.

Tracked-On: #1595
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Acked-by: Fengwei Yin <fengwei.yin@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Shuo Liu 2018-10-29 12:58:44 +08:00 committed by David Kinder
parent 4e540e5494
commit ea801a1672
2 changed files with 0 additions and 7 deletions

View File

@ -215,12 +215,6 @@ paddr_guest2host(struct vmctx *ctx, uintptr_t gaddr, size_t len)
return vm_map_gpa(ctx, gaddr, len);
}
void *
dm_gpa2hva(uint64_t gpa, size_t size)
{
return vm_map_gpa(_ctx, gpa, size);
}
int
virtio_uses_msix(void)
{

View File

@ -46,7 +46,6 @@ extern bool stdio_in_use;
int vmexit_task_switch(struct vmctx *ctx, struct vhm_request *vhm_req,
int *vcpu);
void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len);
void *dm_gpa2hva(uint64_t gpa, size_t size);
int virtio_uses_msix(void);
void ptdev_no_reset(bool enable);
void init_debugexit(void);