hv: vcpu: Move offline_vcpu to common vcpu.c and rename to destroy_vcpu

destroy_vcpu: Call arch_deinit_vcpu, and do common deinit.

Tracked-On: #8830
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Reviewed-by: Fei Li <fei1.li@intel.com>
Acked-by: Wang Yu1 <yu1.wang@intel.com>
This commit is contained in:
Yifan Liu
2025-08-27 06:26:35 +00:00
committed by acrnsi-robot
parent 70bcf024da
commit 62d07897e2
8 changed files with 34 additions and 23 deletions

View File

@@ -103,7 +103,7 @@ int32_t hcall_service_vm_offline_cpu(struct acrn_vcpu *vcpu, __unused struct acr
break;
}
zombie_vcpu(target_vcpu, VCPU_ZOMBIE);
offline_vcpu(target_vcpu);
destroy_vcpu(target_vcpu);
}
}