]> git.proxmox.com Git - qemu-server.git/commit
add basic qmp support
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 29 May 2012 12:01:50 +0000 (14:01 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 30 May 2012 09:51:16 +0000 (11:51 +0200)
commitc971c4f2213524f27125f558978a428b53628f34
tree8d464c5b9e8a2f7731c0c8bd07ff9c9a6965b5eb
parent4fc524240663a809ecc3418e1da2b4cfd467c200
add basic qmp support

this add qmp socket to kvm process
and anew sub copied from vm_monitor_command:

vm_qmp_command ($vmid, $cmdstr, $nocheck)

$cmdstr could be a simple command to be executed, without argument

vm_qmp_command($vmid,"stop");

or a complex hash with arguments

$cmdstr->{execute}="eject";
$cmdstr->{arguments}->{device}="ide1-cd0";
vm_qmp_command($vmid,$cmdstr);

documentation about qmp commands is here
http://git.qemu.org/?p=qemu.git;a=blob;f=qmp-commands.hx;h=db980fa811325aeca8ad43472ba468702d4a25a2;hb=HEAD

Code must be polish a little more, but it's a start.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm
control.in