From bb8584dd4afd2caae302906e27dbf3b15e500eb7 Mon Sep 17 00:00:00 2001 From: yliu79 Date: Wed, 22 May 2019 10:40:27 -0700 Subject: [PATCH] DM: remove unused function vm_apicid2vcpu Change-Id: I3bb503058df8e0048370f6c1ab77f63aadf1eb57 Tracked-On: #3123 Signed-off-by: Ying Liu Acked-by: Anthony Xu --- devicemodel/core/vmmapi.c | 10 ---------- devicemodel/include/vmmapi.h | 1 - 2 files changed, 11 deletions(-) diff --git a/devicemodel/core/vmmapi.c b/devicemodel/core/vmmapi.c index 643f0fbe1..8a62c8d8a 100644 --- a/devicemodel/core/vmmapi.c +++ b/devicemodel/core/vmmapi.c @@ -430,16 +430,6 @@ vm_suspend(struct vmctx *ctx, enum vm_suspend_how how) return 0; } -int -vm_apicid2vcpu(struct vmctx *ctx, int apicid) -{ - /* - * The apic id associated with the 'vcpu' has the same numerical value - * as the 'vcpu' itself. - */ - return apicid; -} - int vm_lapic_msi(struct vmctx *ctx, uint64_t addr, uint64_t msg) { diff --git a/devicemodel/include/vmmapi.h b/devicemodel/include/vmmapi.h index a5087eb63..2b0655ad5 100644 --- a/devicemodel/include/vmmapi.h +++ b/devicemodel/include/vmmapi.h @@ -118,7 +118,6 @@ size_t vm_get_lowmem_size(struct vmctx *ctx); size_t vm_get_highmem_size(struct vmctx *ctx); int vm_run(struct vmctx *ctx); int vm_suspend(struct vmctx *ctx, enum vm_suspend_how how); -int vm_apicid2vcpu(struct vmctx *ctx, int apicid); int vm_lapic_msi(struct vmctx *ctx, uint64_t addr, uint64_t msg); int vm_set_gsi_irq(struct vmctx *ctx, int gsi, uint32_t operation); int vm_assign_ptdev(struct vmctx *ctx, int bus, int slot, int func);