mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: add endpoint api for NMI support
Add http endpoint for trigger nmi. Signed-off-by: Yi Wang <foxywang@tencent.com>
This commit is contained in:
@@ -1840,6 +1840,15 @@ impl RequestHandler for Vmm {
|
||||
}
|
||||
}
|
||||
|
||||
fn vm_nmi(&mut self) -> result::Result<(), VmError> {
|
||||
if let Some(ref mut vm) = self.vm {
|
||||
info!("nmi");
|
||||
vm.power_button()
|
||||
} else {
|
||||
Err(VmError::VmNotRunning)
|
||||
}
|
||||
}
|
||||
|
||||
fn vm_receive_migration(
|
||||
&mut self,
|
||||
receive_data_migration: VmReceiveMigrationData,
|
||||
|
||||
Reference in New Issue
Block a user