From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbYoS-0002Wx-DH for qemu-devel@nongnu.org; Thu, 22 Nov 2012 10:35:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbYoR-00059v-8g for qemu-devel@nongnu.org; Thu, 22 Nov 2012 10:35:36 -0500 Received: from mail-ia0-f173.google.com ([209.85.210.173]:39879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbYoR-00059h-4N for qemu-devel@nongnu.org; Thu, 22 Nov 2012 10:35:35 -0500 Received: by mail-ia0-f173.google.com with SMTP id w21so4445890iac.4 for ; Thu, 22 Nov 2012 07:35:34 -0800 (PST) Sender: Paolo Bonzini Message-ID: <50AE4640.3000604@redhat.com> Date: Thu, 22 Nov 2012 16:35:28 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <24E144B8C0207547AD09C467A8259F755782E999@lisa.maurer-it.com> <20121122112026.405709d8@doriath.home> In-Reply-To: <20121122112026.405709d8@doriath.home> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qmp problems with --enable-kvm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Dietmar Maurer , "qemu-devel@nongnu.org" Il 22/11/2012 14:20, Luiz Capitulino ha scritto: >> > --------- 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 you please try the following patch? > > https://lists.gnu.org/archive/html/qemu-devel/2012-11/msg00174.html I don't think that's related. The only problem I see here, is that "qmp_capabilities" can only be executed once. That's by design, as I understand it. What do you get without --enable-kvm? Paolo