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

Method vm_power_button

vmm/src/lib.rs:2486–2492  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

2484 }
2485
2486 fn vm_power_button(&mut self) -> result::Result<(), VmError> {
2487 if let Some(ref mut vm) = self.vm {
2488 vm.power_button()
2489 } else {
2490 Err(VmError::VmNotRunning)
2491 }
2492 }
2493
2494 fn vm_nmi(&mut self) -> result::Result<(), VmError> {
2495 if let Some(ref mut vm) = self.vm {

Callers 1

api_vm_power_buttonMethod · 0.45

Calls 1

power_buttonMethod · 0.80

Tested by

no test coverage detected