Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmXV8-0005SM-A7 for qemu-devel@nongnu.org; Wed, 25 Mar 2009 14:06:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmXV3-0005SA-OG for qemu-devel@nongnu.org; Wed, 25 Mar 2009 14:06:54 -0400 Received: from [199.232.76.173] (port=40577 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmXV3-0005S7-LQ for qemu-devel@nongnu.org; Wed, 25 Mar 2009 14:06:49 -0400 Received: from g1t0026.austin.hp.com ([15.216.28.33]:14918) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LmXV3-0001JD-8v for qemu-devel@nongnu.org; Wed, 25 Mar 2009 14:06:49 -0400 Date: Wed, 25 Mar 2009 12:02:16 -0600 From: Chris Smith Subject: Re: [Qemu-devel] Kernel core dumps from qemu Message-ID: <20090325180216.GB26017@ldl.fc.hp.com> References: <20090324165401.GA2999@ldl.fc.hp.com> <49C921A6.3070202@redhat.com> <200903250032.34889.paul@codesourcery.com> <49C9F93C.7090803@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49C9F93C.7090803@redhat.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: anderson@redhat.com * Paul Brook: > What you actually want to do is use the the existing snapshot/savevm > mechanism, and postprocess that into whatever format you want. No argument. It's not so hot having two places doing the same thing. But it's slow to write and slow to read, and changes in the layout would be bad, and automatic tools would have a harder time finding a particular dump. * Avi Kivity: > I suggest 'dump -filter ... blah'. I guess for larger cores this is > better than postprocessing, if it can be done without buffering all of RAM. Standard vmcore only alters the header. crash doesn't even need that. Others can use a temp disk file if necessary, essentially the same as haveing the dump command do it. * me: > Maybe it should use XML. XML, not. But I think an ASCII representation of CPUState makes sense. regs[0]=0xffffffffffffffff regs[1]=0xffffffffffffffff ... eip=0xffffffffffffffff eflags=0xffffffffffffffff ... Parseable with scanf, no endian issues, robust against additions and deletions and permutations. strings(1) prints it out.