mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +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:
@@ -584,8 +584,6 @@ int32_t shutdown_vm(struct acrn_vm *vm)
|
||||
struct acrn_vm_config *vm_config = NULL;
|
||||
int32_t ret = 0;
|
||||
|
||||
pause_vm(vm);
|
||||
|
||||
/* Only allow shutdown paused vm */
|
||||
if (vm->state == VM_PAUSED) {
|
||||
vm->state = VM_POWERED_OFF;
|
||||
|
Reference in New Issue
Block a user