mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-28 16:27:01 +00:00
hv: remove unused API init_cpu
Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
parent
fb1248e5d9
commit
ebea5e5ae4
@ -258,15 +258,6 @@ void reset_vcpu(struct vcpu *vcpu)
|
|||||||
vlapic_init(vlapic);
|
vlapic_init(vlapic);
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_vcpu(struct vcpu *vcpu)
|
|
||||||
{
|
|
||||||
if (is_vcpu_bsp(vcpu))
|
|
||||||
vcpu->arch_vcpu.cpu_mode = CPU_MODE_64BIT;
|
|
||||||
else
|
|
||||||
vcpu->arch_vcpu.cpu_mode = CPU_MODE_REAL;
|
|
||||||
/* init_vmcs is delayed to vcpu vmcs launch first time */
|
|
||||||
}
|
|
||||||
|
|
||||||
void pause_vcpu(struct vcpu *vcpu, enum vcpu_state new_state)
|
void pause_vcpu(struct vcpu *vcpu, enum vcpu_state new_state)
|
||||||
{
|
{
|
||||||
int pcpu_id = get_cpu_id();
|
int pcpu_id = get_cpu_id();
|
||||||
|
@ -282,7 +282,6 @@ int shutdown_vcpu(struct vcpu *vcpu);
|
|||||||
int destroy_vcpu(struct vcpu *vcpu);
|
int destroy_vcpu(struct vcpu *vcpu);
|
||||||
|
|
||||||
void reset_vcpu(struct vcpu *vcpu);
|
void reset_vcpu(struct vcpu *vcpu);
|
||||||
void init_vcpu(struct vcpu *vcpu);
|
|
||||||
void pause_vcpu(struct vcpu *vcpu, enum vcpu_state new_state);
|
void pause_vcpu(struct vcpu *vcpu, enum vcpu_state new_state);
|
||||||
void resume_vcpu(struct vcpu *vcpu);
|
void resume_vcpu(struct vcpu *vcpu);
|
||||||
void schedule_vcpu(struct vcpu *vcpu);
|
void schedule_vcpu(struct vcpu *vcpu);
|
||||||
|
Loading…
Reference in New Issue
Block a user