mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-05 18:25:05 +00:00
dm: add vm_pause before vm_destroy
now VM state transition only allows VM_PAUSED to VM_POWERED_OFF, this patch call vm_pause before vm_destroy in some vm failure cases. Tracked-On: #4320 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
parent
2b648476cc
commit
2d3c60ccd3
@ -1068,6 +1068,7 @@ dev_fail:
|
||||
mevent_fail:
|
||||
vm_unsetup_memory(ctx);
|
||||
fail:
|
||||
vm_pause(ctx);
|
||||
vm_destroy(ctx);
|
||||
create_fail:
|
||||
uninit_hugetlb();
|
||||
|
Loading…
Reference in New Issue
Block a user