Re: [PATCH v5 06/18] dump: Rework dump_calculate_size function

2022-09-01 Thread Janis Schoetterl-Glausch
On Thu, 2022-08-11 at 12:10 +, 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

[PATCH v5 06/18] dump: Rework dump_calculate_size function

2022-08-11 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.