Skip to content

Commit ea801a1

Browse files
Shuo Liudbkinder
authored andcommitted
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>
1 parent 4e540e5 commit ea801a1

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

devicemodel/core/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,6 @@ paddr_guest2host(struct vmctx *ctx, uintptr_t gaddr, size_t len)
215215
return vm_map_gpa(ctx, gaddr, len);
216216
}
217217

218-
void *
219-
dm_gpa2hva(uint64_t gpa, size_t size)
220-
{
221-
return vm_map_gpa(_ctx, gpa, size);
222-
}
223-
224218
int
225219
virtio_uses_msix(void)
226220
{

devicemodel/include/dm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ extern bool stdio_in_use;
4646
int vmexit_task_switch(struct vmctx *ctx, struct vhm_request *vhm_req,
4747
int *vcpu);
4848
void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len);
49-
void *dm_gpa2hva(uint64_t gpa, size_t size);
5049
int virtio_uses_msix(void);
5150
void ptdev_no_reset(bool enable);
5251
void init_debugexit(void);

0 commit comments

Comments
 (0)