mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
hv: move out pause_vm from shutdown_vm
now it will call pause_vm in shutdown_vm, move it out from shutdown_vm to reduce coupling. Tracked-On: #4320 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -39,6 +39,7 @@ void triple_fault_shutdown_vm(struct acrn_vcpu *vcpu)
|
||||
struct acrn_vm *pl_vm = get_vm_from_vmid(vm_id);
|
||||
|
||||
if (!is_poweroff_vm(pl_vm) && is_postlaunched_vm(pl_vm) && !is_rt_vm(pl_vm)) {
|
||||
pause_vm(pl_vm);
|
||||
(void)shutdown_vm(pl_vm);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user