Re: [Qemu-devel] [RFC PATCH v6 1/4] hw/block: better reporting on pflash backing file mismatch

2019-03-07 Thread Markus Armbruster
Alex Bennée writes: > Markus Armbruster writes: > >> From: Alex Bennée >> >> It looks like there was going to be code to check we had some sort of >> alignment so let's replace it with an actual check. Reject undersized >> images with "device needs N bytes, backing file provides only M >> byte

Re: [Qemu-devel] [RFC PATCH v6 1/4] hw/block: better reporting on pflash backing file mismatch

2019-03-07 Thread Alex Bennée
Markus Armbruster writes: > From: Alex Bennée > > It looks like there was going to be code to check we had some sort of > alignment so let's replace it with an actual check. Reject undersized > images with "device needs N bytes, backing file provides only M > bytes". This is a bit more usefu

[Qemu-devel] [RFC PATCH v6 1/4] hw/block: better reporting on pflash backing file mismatch

2019-03-07 Thread Markus Armbruster
From: Alex Bennée It looks like there was going to be code to check we had some sort of alignment so let's replace it with an actual check. Reject undersized images with "device needs N bytes, backing file provides only M bytes". This is a bit more useful than the enigmatic "failed to read the