Skip to content

Commit bb8584d

Browse files
ying2liuacrnsi
authored andcommitted
DM: remove unused function vm_apicid2vcpu
Change-Id: I3bb503058df8e0048370f6c1ab77f63aadf1eb57 Tracked-On: #3123 Signed-off-by: Ying Liu <ying2.liu@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
1 parent ec92438 commit bb8584d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

devicemodel/core/vmmapi.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -430,16 +430,6 @@ vm_suspend(struct vmctx *ctx, enum vm_suspend_how how)
430430
return 0;
431431
}
432432

433-
int
434-
vm_apicid2vcpu(struct vmctx *ctx, int apicid)
435-
{
436-
/*
437-
* The apic id associated with the 'vcpu' has the same numerical value
438-
* as the 'vcpu' itself.
439-
*/
440-
return apicid;
441-
}
442-
443433
int
444434
vm_lapic_msi(struct vmctx *ctx, uint64_t addr, uint64_t msg)
445435
{

devicemodel/include/vmmapi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ size_t vm_get_lowmem_size(struct vmctx *ctx);
118118
size_t vm_get_highmem_size(struct vmctx *ctx);
119119
int vm_run(struct vmctx *ctx);
120120
int vm_suspend(struct vmctx *ctx, enum vm_suspend_how how);
121-
int vm_apicid2vcpu(struct vmctx *ctx, int apicid);
122121
int vm_lapic_msi(struct vmctx *ctx, uint64_t addr, uint64_t msg);
123122
int vm_set_gsi_irq(struct vmctx *ctx, int gsi, uint32_t operation);
124123
int vm_assign_ptdev(struct vmctx *ctx, int bus, int slot, int func);

0 commit comments

Comments
 (0)