From ea801a1672453afc381d544a7d1eb197f46a7808 Mon Sep 17 00:00:00 2001 From: Shuo Liu Date: Mon, 29 Oct 2018 12:58:44 +0800 Subject: [PATCH] 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 Acked-by: Fengwei Yin Acked-by: Yu Wang --- devicemodel/core/main.c | 6 ------ devicemodel/include/dm.h | 1 - 2 files changed, 7 deletions(-) diff --git a/devicemodel/core/main.c b/devicemodel/core/main.c index 0715da164..ddc75e30e 100644 --- a/devicemodel/core/main.c +++ b/devicemodel/core/main.c @@ -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) { diff --git a/devicemodel/include/dm.h b/devicemodel/include/dm.h index 4869a82f6..83be66072 100644 --- a/devicemodel/include/dm.h +++ b/devicemodel/include/dm.h @@ -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);