mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-11 05:17:57 +03:00
implement vm_human_monitor_command using qmp
This commit is contained in:
parent
26f11676c7
commit
9df5cbcc70
@ -2819,6 +2819,19 @@ sub vm_qmp_command {
|
||||
return $res;
|
||||
}
|
||||
|
||||
sub vm_human_monitor_command {
|
||||
my ($vmid, $cmdline) = @_;
|
||||
|
||||
my $res;
|
||||
|
||||
my $cmd = {
|
||||
execute => 'human-monitor-command',
|
||||
arguments => { 'command-line' => $cmdline},
|
||||
};
|
||||
|
||||
return vm_qmp_command($vmid, $cmd);
|
||||
}
|
||||
|
||||
sub vm_commandline {
|
||||
my ($storecfg, $vmid) = @_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user