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:
Mingqiang Chi
2020-01-02 14:07:23 +08:00
committed by wenlingz
parent fc5292e354
commit fe929d0a10
3 changed files with 2 additions and 3 deletions

View File

@@ -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;