hv:Remove deadcode 'vm_lapic_from_pcpuid'

This api is not used, remove it.

Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi 2018-10-23 11:31:22 +08:00 committed by wenlingz
parent 46d198244f
commit 1568a4c095
2 changed files with 0 additions and 11 deletions

View File

@ -112,16 +112,6 @@ vm_lapic_from_vcpu_id(struct vm *vm, uint16_t vcpu_id)
return vcpu_vlapic(vcpu);
}
struct acrn_vlapic *
vm_lapic_from_pcpuid(struct vm *vm, uint16_t pcpu_id)
{
struct vcpu *vcpu;
vcpu = vcpu_from_pid(vm, pcpu_id);
return vcpu_vlapic(vcpu);
}
static uint16_t vm_apicid2vcpu_id(struct vm *vm, uint8_t lapicid)
{
uint16_t i;

View File

@ -125,7 +125,6 @@ void vlapic_intr_accepted(struct acrn_vlapic *vlapic, uint32_t vector);
void vlapic_post_intr(uint16_t dest_pcpu_id);
uint64_t apicv_get_pir_desc_paddr(struct vcpu *vcpu);
struct acrn_vlapic *vm_lapic_from_pcpuid(struct vm *vm, uint16_t pcpu_id);
int vlapic_rdmsr(struct vcpu *vcpu, uint32_t msr, uint64_t *rval);
int vlapic_wrmsr(struct vcpu *vcpu, uint32_t msr, uint64_t wval);