On 02/03/21 14:18, Paolo Bonzini wrote: > This property can be useful for distros to set up known-good ROM sizes for > migration purposes. The VM will fail to start if the ROM is too large, > and migration compatibility will not be broken if the ROM is too small. > > Note that even though romsize is a uint32_t, it has to be between 1 > (because empty ROM files are not accepted, and romsize must be greater > than the file) and 2^31 (because values above are not powers of two and > are rejected). > > Signed-off-by: Paolo Bonzini <[email protected]> > Reviewed-by: Dr. David Alan Gilbert <[email protected]> > Reviewed-by: Peter Xu <[email protected]> > Message-Id: <[email protected]> > Signed-off-by: Paolo Bonzini <[email protected]> > --- > hw/pci/pci.c | 19 +++++++++++++++++-- > hw/xen/xen_pt_load_rom.c | 14 ++++++++++++-- > include/hw/pci/pci.h | 1 + > 3 files changed, 30 insertions(+), 4 deletions(-)
Acked-by: Laszlo Ersek <[email protected]>
