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:
@@ -273,6 +273,10 @@ impl RequestHandler for StubApiRequestHandler {
|
||||
fn vm_send_migration(&mut self, _: VmSendMigrationData) -> Result<(), MigratableError> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn vm_nmi(&mut self) -> Result<(), VmError> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn http_receiver_stub(exit_evt: EventFd, api_evt: EventFd, api_receiver: Receiver<ApiRequest>) {
|
||||
|
||||
Reference in New Issue
Block a user