From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIc1A-0007sQ-AF for qemu-devel@nongnu.org; Tue, 25 Oct 2011 04:05:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIc14-00023b-LX for qemu-devel@nongnu.org; Tue, 25 Oct 2011 04:05:52 -0400 Received: from [222.73.24.84] (port=53379 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIc11-00020V-UU for qemu-devel@nongnu.org; Tue, 25 Oct 2011 04:05:46 -0400 Message-ID: <4EA66E1E.90502@cn.fujitsu.com> Date: Tue, 25 Oct 2011 16:06:54 +0800 From: Wen Congyang MIME-Version: 1.0 References: <54c9dc1d-3104-4f42-9a20-d7f4da516bdc@zmail05.collab.prod.int.phx2.redhat.com> <4EA58488.50306@redhat.com> In-Reply-To: <4EA58488.50306@redhat.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Jan Kiszka , "Richard W.M. Jones" , qemu-devel , Dave Anderson , Luiz Capitulino , KAMEZAWA Hiroyuki At 10/24/2011 11:30 PM, Avi Kivity Write: > On 10/24/2011 05:25 PM, Dave Anderson wrote: >> >> ----- Original Message ----- >>> On 10/24/2011 04:25 PM, Dave Anderson wrote: >>>>> The question is that: 'virsh dump' can not be used when host pci device >>>>> is used by guest. We are discussing how to fix the problem. We have determined >>>>> that introduce a new monitor command dump. Jan suggested that the core file's >>>>> format is gdb standard core format. Does crash support such format? If no, >>>>> is it possible to support such format? >>>> >>>> If you are talking about an ELF core dump of the user-space qemu-kvm process >>>> running on the host, then it's certainly not supported. >>> >>> No, an ELF image of the guest's physical memory. >> >> Well then that should be pretty straight forward to support. Depending upon >> how similar it would be to the "standard" kdump ELF format, the only other >> issue is how to determine the physical base address at which the kernel is >> loaded, in order to be able to translate the mapped kernel-text/static-data >> virtual region of the x86_64 arch (the __START_KERNEL_map region). >> > > I guess an elf note would work for that? Hi, Avi Kivity, Dave Anderson I have two questions about it: 1. How to know the guest's physical base address in qemu? 2. Does kdump format(not ELF) include such information in its head? Thanks Wen Congyang