qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qmp problems with --enable-kvm
@ 2012-11-22 12:41 Dietmar Maurer
  2012-11-22 13:20 ` Luiz Capitulino
  0 siblings, 1 reply; 16+ messages in thread
From: Dietmar Maurer @ 2012-11-22 12:41 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

I use the following qmp commands (file cmds.txt) for testing:

--------- cmds.txt start--------
{"execute":"qmp_capabilities", "arguments":{}}
{"execute":"migrate", "arguments":{ "uri":"exec:cat >/dev/null"}}
{"execute":"query-migrate", "arguments":{}}
--------- cmds.txt end--------

and the following command line to start qemu:

#  ./x86_64-softmmu/qemu-system-x86_64 -chardev socket,id=qmp,path=/tmp/test.qmp,server,nowait -mon chardev=qmp,mode=control  --enable-kvm

I then execute the qmp commands with:

# cat cmds.txt | socat - /tmp/test.qmp 
{"QMP": {"version": {"qemu": {"micro": 90, "minor": 2, "major": 1}, "package": ""}, "capabilities": []}}
{"return": {}}
{"return": {}}
{"timestamp": {"seconds": 1353587785, "microseconds": 134907}, "event": "STOP"}
{"return": {"status": "completed", "downtime": 8, "ram": {"total": 143065088, "remaining": 0, "transferred": 772035, "duplicate": 34755, "dirty-pages-rate": 0, "normal-bytes": 737280, "normal": 180}}}

so far so good.

But if I execute that again I get an error:

# cat cmds.txt | socat - /tmp/test.qmp 
{"error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}}
{"return": {}}
{"return": {"expected-downtime": 0, "status": "active", "total-time": 33, "ram": {"total": 143065088, "remaining": 8937472, "transferred": 495481, "duplicate": 67388, "dirty-pages-rate": 0, "normal-bytes": 1200128, "normal": 293}}}


The interesting thing is that it works perfectly without --enable-kvm. 

Can somebody reproduce that?

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-11-23  6:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 12:41 [Qemu-devel] qmp problems with --enable-kvm Dietmar Maurer
2012-11-22 13:20 ` Luiz Capitulino
2012-11-22 13:44   ` Dietmar Maurer
2012-11-22 15:07     ` Luiz Capitulino
2012-11-22 15:35   ` Paolo Bonzini
2012-11-22 15:53     ` Dietmar Maurer
2012-11-22 16:00       ` Paolo Bonzini
2012-11-22 16:04         ` Dietmar Maurer
2012-11-22 16:09           ` Paolo Bonzini
2012-11-22 16:24             ` Luiz Capitulino
2012-11-22 16:33               ` Luiz Capitulino
2012-11-22 16:58                 ` Luiz Capitulino
2012-11-22 17:07                   ` Paolo Bonzini
2012-11-22 17:09                     ` Jan Kiszka
2012-11-22 17:24                       ` Luiz Capitulino
2012-11-23  6:29                       ` Dietmar Maurer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).