Re: [Qemu-devel] [PATCH v5 6/9] dump: Add API to write dump_bitmap

2013-07-15 Thread Stefan Hajnoczi
On Tue, Jul 09, 2013 at 03:30:11PM +0800, Qiao Nuohan wrote: > +/* set dump_bitmap sequencely */ > +static int set_dump_bitmap(int64_t last_pfn, int64_t pfn, uint32_t value, > + void *buf, DumpState *s) > +{ > +off_t old_offset, new_offset; > +off_t offset_bitmap1,

[Qemu-devel] [PATCH v5 6/9] dump: Add API to write dump_bitmap

2013-07-09 Thread Qiao Nuohan
functions are used to write 1st and 2nd dump_bitmap of kdump-compressed format, which is used to indicate whether the corresponded page is existed in vmcore. Dump level 1 is chosen, so 1st and 2nd dump_bitmap are same. Signed-off-by: Qiao Nuohan Reviewed-by: Zhang Xiaohe --- dump.c