From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srmzd-0005od-FE for qemu-devel@nongnu.org; Thu, 19 Jul 2012 05:26:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrmzZ-0001Yo-AZ for qemu-devel@nongnu.org; Thu, 19 Jul 2012 05:25:57 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:43863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrmzY-0001Yk-P7 for qemu-devel@nongnu.org; Thu, 19 Jul 2012 05:25:53 -0400 Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 19 Jul 2012 09:05:35 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6J9HXb53998172 for ; Thu, 19 Jul 2012 19:17:36 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6J9PhH3027305 for ; Thu, 19 Jul 2012 19:25:43 +1000 Message-ID: <5007D296.5000005@linux.vnet.ibm.com> Date: Thu, 19 Jul 2012 17:25:42 +0800 From: Sheldon MIME-Version: 1.0 References: <5006E8A2.4050009@linux.vnet.ibm.com> <50079E29.2090101@cn.fujitsu.com> <5007B765.9000306@linux.vnet.ibm.com> <5007BA22.10605@cn.fujitsu.com> In-Reply-To: <5007BA22.10605@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Wen Congyang Cc: qemu-devel@nongnu.org On 07/19/2012 03:41 PM, Wen Congyang wrote: > 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. got it. So if I want to get kdump, I can use dump-guest-memory command. And if I want to get a process coredump on guest OS , I should login the guest OS, and get the process coredump file. > > 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 >>> >>>> >>>> >>>> >>>> >> >>