vmm: save guest memory for coredump

Guest memory is needed for analysis in crash tool, so save it
for coredump.

Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Yi Wang
2022-05-23 10:26:02 +08:00
committed by Sebastien Boeuf
parent 7e280b6f70
commit 0e65ca4a6c
2 changed files with 46 additions and 2 deletions

View File

@@ -3052,7 +3052,10 @@ impl GuestDebuggable for Vm {
self.write_note(&coredump_state)?;
self.write_loads(&coredump_state)?;
Ok(())
self.memory_manager
.lock()
.unwrap()
.coredump_iterate_save_mem(&coredump_state)
}
}