forked from cloud-hypervisor/cloud-hypervisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmm: Cleanup VM being created when VM restore fails
When VM restore fails, the VMM state is left with some side-effects, such as a VM being created. It would prevent the VMM from creating and booting a new VM or restoring from a VM snapshot. To fix this issue, this patch explicitly handles the side effects to the VMM state when VM restore fails, e.g. clear the VmConfig and shutdown the VM being created. Fixes: cloud-hypervisor#6869 Signed-off-by: Bo Chen <[email protected]>
- Loading branch information
1 parent
cff0d8b
commit 4c06bd8
Showing
1 changed file
with
79 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters