Re: [PATCH v4 06/17] dump: Rework dump_calculate_size function

2022-07-26 Thread Marc-André Lureau
On Tue, Jul 26, 2022 at 1:23 PM Janosch Frank wrote: > > dump_calculate_size() sums up all the sizes of the guest memory > blocks. Since we already have a function that calculates the size of a > single memory block (dump_get_memblock_size()) we can simply iterate > over the blocks and use the fun

[PATCH v4 06/17] dump: Rework dump_calculate_size function

2022-07-26 Thread Janosch Frank
dump_calculate_size() sums up all the sizes of the guest memory blocks. Since we already have a function that calculates the size of a single memory block (dump_get_memblock_size()) we can simply iterate over the blocks and use the function instead of calculating the size ourselves. Signed-off-by: