mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user