Re: [PATCH 1/2] hw/arm: allow flash images being smaller than the available space

2022-12-16 Thread Peter Maydell
On Fri, 16 Dec 2022 at 10:12, Gerd Hoffmann wrote: > > Query block device backing flash for size and use that instead of > requiring the block device being exactly 64M in size. This allows > to use edk2 firmware builds without padding, i.e. use QEMU_EFI.fd > (which is /way/ smaller than 64M) as-i

[PATCH 1/2] hw/arm: allow flash images being smaller than the available space

2022-12-16 Thread Gerd Hoffmann
Query block device backing flash for size and use that instead of requiring the block device being exactly 64M in size. This allows to use edk2 firmware builds without padding, i.e. use QEMU_EFI.fd (which is /way/ smaller than 64M) as-is. -rw-r--r--. 1 root root 67108864 Dec 12 23:45 QEMU_EFI-pfl