MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / vm_coredump

Method vm_coredump

vmm/src/lib.rs:1983–1989  ·  view source on GitHub ↗
(&mut self, destination_url: &str)

Source from the content-addressed store, hash-verified

1981
1982 #[cfg(all(target_arch = "x86_64", feature = "guest_debug"))]
1983 fn vm_coredump(&mut self, destination_url: &str) -> result::Result<(), VmError> {
1984 if let Some(ref mut vm) = self.vm {
1985 vm.coredump(destination_url).map_err(VmError::Coredump)
1986 } else {
1987 Err(VmError::VmNotRunning)
1988 }
1989 }
1990
1991 fn vm_shutdown(&mut self) -> result::Result<(), VmError> {
1992 let r = if let Some(ref mut vm) = self.vm.take() {

Callers 1

api_vm_coredumpMethod · 0.45

Calls 1

coredumpMethod · 0.45

Tested by

no test coverage detected