From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrlHs-000521-Vz for qemu-devel@nongnu.org; Thu, 19 Jul 2012 03:36:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrlHr-0006Ze-Nl for qemu-devel@nongnu.org; Thu, 19 Jul 2012 03:36:40 -0400 Received: from [222.73.24.84] (port=17834 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrlHr-0006Yd-Am for qemu-devel@nongnu.org; Thu, 19 Jul 2012 03:36:39 -0400 Message-ID: <5007BA22.10605@cn.fujitsu.com> Date: Thu, 19 Jul 2012 15:41:22 +0800 From: Wen Congyang MIME-Version: 1.0 References: <5006E8A2.4050009@linux.vnet.ibm.com> <50079E29.2090101@cn.fujitsu.com> <5007B765.9000306@linux.vnet.ibm.com> In-Reply-To: <5007B765.9000306@linux.vnet.ibm.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [help]: how to use HMP command dump-guest-memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sheldon Cc: qemu-devel@nongnu.org At 07/19/2012 03:29 PM, Sheldon Wrote: > thank you. > can you tell me what's the difference between memsave and > dump-guest-memory without -p option? IIRC, memsave only contains memory. The core generated by dump-guest-memory contains registers' value, and you can use crash to deal with it. > and what's the difference between *kernel coredump *and > dump-guest-memory with -p option? kernel coredump? Do you mean kdump? They are almost the same. The core generated by dump-guest-memory contains some registers' value which is not included in the core generated by kdump. The kdump runs in the guest, while dump-guest-memory runs in the host. If you forget to start kdump, you can use dump-guest-memory to get the core. Thanks Wen Congyang > > On 07/19/2012 01:42 PM, Wen Congyang wrote: >> At 07/19/2012 12:47 AM, Sheldon Wrote: >>> I want to dump all guest's memory to file ./guestcore >>> I execute this command as follow: >>> (qemu) dump-guest-memory -p protocol file:./guestcore >>> invalid char in expression >> Please try this command: >> dump-guest-memory -p file:./guestcore >> >> Thanks >> Wen Congyang >> >>> >>> >>> >>> >>> > > >