Go to file
Alexandre Derumier c971c4f221 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>
2012-05-30 11:51:16 +02:00
PVE add basic qmp support 2012-05-30 11:51:16 +02:00
.gitignore use better name for build dir 2011-08-24 11:08:33 +02:00
changelog.Debian fix pool permission checks on create 2012-05-30 10:13:51 +02:00
control.in add basic qmp support 2012-05-30 11:51:16 +02:00
copyright change license to AGPL3 2011-08-24 10:07:52 +02:00
gen-vmconf-pod.pl imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
Makefile fix pool permission checks on create 2012-05-30 10:13:51 +02:00
pcitest.pl imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
postinst Fix startup order 2011-08-30 15:11:54 +02:00
postrm imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
pve-bridge use new network setup code from PVE::Network (libpve-common-perl) 2012-03-28 10:42:02 +02:00
pve-usb.cfg imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
qemu.init.d removed startall/stopall commands 2012-04-20 09:30:42 +02:00
qm removed startall/stopall commands 2012-04-20 09:30:42 +02:00
qmextract use check() instead of check_storage_perm() 2012-02-06 12:19:35 +01:00
qmrestore start adding permission checks 2012-02-02 06:57:47 +01:00
qmupdate use Digest::SHA instead of Digest::SHA1 2012-03-20 12:25:08 +01:00
sparsecp.c use correct format to print time_t (%zd) 2012-02-13 11:22:03 +01:00
TODO imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
utils.c imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
vmtar.c move test for block device to vmtar.c 2012-02-10 07:47:46 +01:00