mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: support injecting NMI
Inject NMI interrupt when needed, by call ioctl KVM_NMI. Signed-off-by: Yi Wang <foxywang@tencent.com>
This commit is contained in:
@@ -1842,8 +1842,7 @@ 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()
|
||||
vm.nmi()
|
||||
} else {
|
||||
Err(VmError::VmNotRunning)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user