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 <qiaonuo...@cn.fujitsu.com> > --- > 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 <ler...@redhat.com>