From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8VrP-0004wx-Lc for qemu-devel@nongnu.org; Wed, 29 Jan 2014 09:11:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8VrL-0003CU-2b for qemu-devel@nongnu.org; Wed, 29 Jan 2014 09:11:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8VrK-0003CQ-Qd for qemu-devel@nongnu.org; Wed, 29 Jan 2014 09:11:18 -0500 Message-ID: <52E90BF8.8030907@redhat.com> Date: Wed, 29 Jan 2014 15:11:04 +0100 From: Laszlo Ersek MIME-Version: 1.0 References: <1390890126-17377-1-git-send-email-qiaonuohan@cn.fujitsu.com> <1390890126-17377-8-git-send-email-qiaonuohan@cn.fujitsu.com> In-Reply-To: <1390890126-17377-8-git-send-email-qiaonuohan@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v8 07/13] dump: add members to DumpState and init some of them List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qiaonuohan Cc: stefanha@gmail.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, anderson@redhat.com, kumagai-atsushi@mxc.nes.nec.co.jp, afaerber@suse.de On 01/28/14 07:22, qiaonuohan wrote: > add some members to DumpState that will be used in writing vmcore in > kdump-compressed format. some of them, like page_size, will be initialized > in the patch. > > Signed-off-by: Qiao Nuohan > --- > dump.c | 28 ++++++++++++++++++++++++++++ > include/sysemu/dump.h | 7 +++++++ > 2 files changed, 35 insertions(+), 0 deletions(-) > > +static void get_max_mapnr(DumpState *s) > +{ > + GuestPhysBlock *last_block; > + > + last_block = QTAILQ_LAST(&s->guest_phys_blocks.head, GuestPhysBlockHead); > + s->max_mapnr = paddr_to_pfn(last_block->target_end, s->page_shift); > +} > + Reviewed-by: Laszlo Ersek