mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-21 13:15:19 +00:00
ch-remote: add support for nmi
Adding the wrapping layer to be able to trigger NMI for the guest from the ch-remote tool. Signed-off-by: Yi Wang <foxywang@tencent.com>
This commit is contained in:
parent
c72bf0b32d
commit
1708561c74
@ -297,6 +297,7 @@ fn rest_api_do_command(matches: &ArgMatches, socket: &mut UnixStream) -> ApiResu
|
||||
Some("shutdown") => {
|
||||
simple_api_command(socket, "PUT", "shutdown", None).map_err(Error::HttpApiClient)
|
||||
}
|
||||
Some("nmi") => simple_api_command(socket, "PUT", "nmi", None).map_err(Error::HttpApiClient),
|
||||
Some("resize") => {
|
||||
let resize = resize_config(
|
||||
matches
|
||||
@ -1089,7 +1090,8 @@ fn main() {
|
||||
.arg(Arg::new("path").index(1).default_value("-")),
|
||||
)
|
||||
.subcommand(Command::new("ping").about("Ping the VMM to check for API server availability"))
|
||||
.subcommand(Command::new("shutdown-vmm").about("Shutdown the VMM"));
|
||||
.subcommand(Command::new("shutdown-vmm").about("Shutdown the VMM"))
|
||||
.subcommand(Command::new("nmi").about("Trigger NMI"));
|
||||
|
||||
let matches = app.get_matches();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user