From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: tools to dump guest memory and generate core file Date: Mon, 17 Mar 2008 10:59:27 +0200 Message-ID: <47DE32EF.5090903@qumranet.com> References: <47DDDF43.9020008@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: david ahern Return-path: In-Reply-To: <47DDDF43.9020008@cisco.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org david ahern wrote: > Does anyone know of tools that can dump memory for a qemu guest with addresses > as seen by the guest and generate a core file? For instance, say you know the > guest is running a 32-bit linux kernel with a 1G/3G split. Then you would want > to dump 1G of memory starting 0xc0000000 and create an ELF core file. The core > file could then be analyzed using tools like crash (or gdb for the truly > adventurous). > > I know VMware can take a snapshot and generate such a core file. Does a similar > tool exist for qemu? I see that the qemu console supports a raw memory dump, so > it should be possible. (Note I am not talking about a core file of the qemu > process, but rather a core file based on guest memory addressing.) > > You might try connecting with gdb and using the generate-core-file command. -- Any sufficiently difficult bug is indistinguishable from a feature. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/