mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +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:
@@ -160,7 +160,7 @@ static inline void enter_s5(struct acrn_vm *vm, uint32_t pm1a_cnt_val, uint32_t
|
||||
if (is_sos_vm(vm)) {
|
||||
save_s5_reg_val(pm1a_cnt_val, pm1b_cnt_val);
|
||||
}
|
||||
|
||||
pause_vm(vm);
|
||||
(void)shutdown_vm(vm);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user