From bd3f34e952dca0f2499328d3ce336021c8ec6d2a Mon Sep 17 00:00:00 2001 From: yliu79 Date: Wed, 22 May 2019 10:42:01 -0700 Subject: [PATCH] DM: remove unused function vm_get_device_fd Change-Id: I9056838bbf150983c8011706d3d0a07aed043917 Tracked-On: #3123 Signed-off-by: Ying Liu Acked-by: Anthony Xu --- devicemodel/core/vmmapi.c | 6 ------ devicemodel/include/vmmapi.h | 1 - 2 files changed, 7 deletions(-) diff --git a/devicemodel/core/vmmapi.c b/devicemodel/core/vmmapi.c index d9686554f..6f37627ad 100644 --- a/devicemodel/core/vmmapi.c +++ b/devicemodel/core/vmmapi.c @@ -584,12 +584,6 @@ vm_set_vcpu_regs(struct vmctx *ctx, struct acrn_set_vcpu_regs *vcpu_regs) return ioctl(ctx->fd, IC_SET_VCPU_REGS, vcpu_regs); } -int -vm_get_device_fd(struct vmctx *ctx) -{ - return ctx->fd; -} - int vm_get_cpu_state(struct vmctx *ctx, void *state_buf) { diff --git a/devicemodel/include/vmmapi.h b/devicemodel/include/vmmapi.h index f6b1271e8..77f8dc8c4 100644 --- a/devicemodel/include/vmmapi.h +++ b/devicemodel/include/vmmapi.h @@ -89,7 +89,6 @@ struct vm_isa_irq { * * Returns a pointer to the memory segment on success and MAP_FAILED otherwise. */ -int vm_get_device_fd(struct vmctx *ctx); struct vmctx *vm_create(const char *name, uint64_t req_buf); void vm_pause(struct vmctx *ctx); void vm_reset(struct vmctx *ctx);