Re: [PATCH v6 2/6] block/vdi: Don't assume that blocks are larger than VdiHeader

2021-03-30 Thread Stefan Hajnoczi
On Thu, Mar 25, 2021 at 12:29:37PM +0100, Paolo Bonzini wrote: > From: David Edmondson > > Given that the block size is read from the header of the VDI file, a > wide variety of sizes might be seen. Rather than re-using a block > sized memory region when writing the VDI header, allocate an > appr

[PATCH v6 2/6] block/vdi: Don't assume that blocks are larger than VdiHeader

2021-03-25 Thread Paolo Bonzini
From: David Edmondson Given that the block size is read from the header of the VDI file, a wide variety of sizes might be seen. Rather than re-using a block sized memory region when writing the VDI header, allocate an appropriately sized buffer. Signed-off-by: David Edmondson Message-Id: <20210