From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfffG-0006s9-8I for qemu-devel@nongnu.org; Sun, 10 Nov 2013 19:47:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vfff5-00050P-Oo for qemu-devel@nongnu.org; Sun, 10 Nov 2013 19:47:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vfff5-0004zO-Gh for qemu-devel@nongnu.org; Sun, 10 Nov 2013 19:47:27 -0500 Message-ID: <528029C1.6040800@redhat.com> Date: Mon, 11 Nov 2013 01:50:09 +0100 From: Laszlo Ersek MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] dump-guest-memory enhancement. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Phi Debian Cc: Dave Anderson , QEMU Developers On 11/10/13 10:10, Phi Debian wrote: > Hi All, > > I implemented guest-dump-memory for arm32, and bumped in something > strange, the PT_LOADs generated from dump.c are not target page > aligned. There are some advantage to get PT_LOAD aligned. > > This mail is to ask advise about patch I could submit later if wanted. > > Would it be desirable to get the PT_LOAD aligned on target page size > always, for all arch ? Can you please explain the problem in more detail? Preferably illustrated by "readelf" output. Is it about the placement of the PT_LOAD entries in the core file (eg. their distance of the beginning of the file, or some such), or about the contents of the PT_LOAD entries? (Ie. the target-phys ranges they describe and where those are located in the core file.) Thanks Laszlo > If so I could fix dump.c, but may be people using dump-guest-memory on > existing current implementation may object, dunno if some of there > tools (debuggers) are dependent of the non aligned current setup (gdb > would nt complain) > > If not wanted for existing arch (s390, ppc, i386), may be I could do > it for arm only. > > Or ultimatly may be this is not wanted at all, in this case I keep my > dumper for myself :) > > Cheers, > Phi >