vmm: Automatically pause VM for coredump

If the VMM is not already paused then pause the VM prior to executing
the coredump and then resume it after. If the VM is already paused then
the original state is maintained.

Signed-off-by: Yi Wang <foxywang@tencent.com>
This commit is contained in:
Yi Wang
2023-07-17 20:42:10 +08:00
committed by Rob Bradford
parent c03f3b54b6
commit 3225c0c7c8
2 changed files with 22 additions and 6 deletions
+2
View File
@@ -36,6 +36,8 @@ pub struct DumpState {
pub enum GuestDebuggableError {
Coredump(anyhow::Error),
CoredumpFile(std::io::Error),
Pause(vm_migration::MigratableError),
Resume(vm_migration::MigratableError),
}
pub trait GuestDebuggable: vm_migration::Pausable {