5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-02-02 09:47:13 +03:00

28 Commits

Author SHA1 Message Date
Dietmar Maurer
5cb6fe54d8 qmpclient: use guest-sync-delimited 2014-12-02 13:09:53 +01:00
Dietmar Maurer
edb52f14a5 qmpclient: fix mux_input regex 2014-12-01 09:50:12 +01:00
Dietmar Maurer
c8125172c7 qmpclient: improve error handling 2014-12-01 09:50:12 +01:00
Dietmar Maurer
7a6c215042 qmpclient: code cleanup, execute qga and qmp in parallel 2014-12-01 09:50:12 +01:00
Wolfgang Link
1c0c1c17b0 shutdown by Qemu Guest Agent if the agent flag in the config is set
Important: "guest-shutdown" returns only by error a message.

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
2014-12-01 09:50:12 +01:00
Wolfgang Link
c5a07de5af qmpclient: now if the QMP command starts with guest-+ , it will bind dynamicly to the VMID.qga socket
Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
2014-12-01 09:50:12 +01:00
Alexandre Derumier
bcfbc40b39 qmpclient-qga : mux_input : parse qga result
result sample:

first json is guest-sync result, second json is command result

{ "return": 123456}\n{"return": {}}

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2014-12-01 09:50:12 +01:00
Alexandre Derumier
a45a14fcf7 qmpclient-qga : build qga command
example of command:

first json is guest-sync to sync and flush the client, second json is the command

{ "execute": "guest-sync", "arguments": { "id": 123456 } }{"execute":"guest-ping"}

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-12-01 09:50:12 +01:00
Alexandre Derumier
c6fb6a6978 qmpclient-qga : do not sent qmp_capabilities for qga
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-12-01 09:50:12 +01:00
Alexandre Derumier
b1d8a6d44b qmpclient-qga : cmdid : use integer instead string
qga client use only integer as id

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-12-01 09:50:12 +01:00
Alexandre Derumier
f1f36aca43 qmpclient-qga : add qga param to qmp_socket
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-12-01 09:50:12 +01:00
Alexandre Derumier
d64ee87e73 qmpclient-qga : add qga option at object creation
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-12-01 09:50:11 +01:00
Dietmar Maurer
990fc5e22e use warnings instead of global -w flag 2013-10-01 13:14:49 +02:00
Dietmar Maurer
4fca015325 set long timeout for query-block-jobs
Like we do for other block job query commands. Seems those commands
can hangs for some time.
2013-05-06 09:25:39 +02:00
Dietmar Maurer
b006e70b68 avoid endless loop in QMPClient 2013-04-18 10:34:44 +02:00
Dietmar Maurer
f4fde4d376 do not delete unmatched content from $$input 2013-04-18 08:26:23 +02:00
Dietmar Maurer
fc97ae2788 fix backup-cancel timeout 2013-03-01 10:59:19 +01:00
Dietmar Maurer
a0e7a5d00d also support getfd 2012-12-06 09:01:56 +01:00
Dietmar Maurer
558f16446e add support for add-fd command
We can now pass open file descriptors to qemu.
2012-12-06 08:39:03 +01:00
Dietmar Maurer
b3ea07f71e fix memory leak in QMP Client (many thanks to Stefan!) 2012-10-29 12:15:43 +01:00
Dietmar Maurer
6d04217600 pass timeout to qmp open_connection 2012-09-25 09:27:24 +02:00
Dietmar Maurer
9dcf4909f0 updates for async shapshot patch 2012-09-24 10:43:19 +02:00
Dietmar Maurer
9d6890772d use long timeouts for snapshot monitor command
Internal snapshots should be fast, but there is not guarantee.
2012-09-12 13:32:12 +02:00
Dietmar Maurer
2ae10d4e22 fix bug 247: retry qmp open 2012-08-27 13:43:30 +02:00
Dietmar Maurer
14db53662a set default qmp timout to 3 seconds
And allow to pass timeout paramater to vm_qmp_command().
2012-08-27 13:13:36 +02:00
Dietmar Maurer
f0002f62f1 fix command timeout 2012-07-13 12:36:40 +02:00
Dietmar Maurer
26f11676c7 use new QMPClient code 2012-07-13 07:21:34 +02:00
Dietmar Maurer
30a3378acd add PVE::QMPClient.pm
This is experimental code, not used currently.
2012-07-12 12:28:27 +02:00