Hi all! That's a substitution for my first attempt: [PATCH] pci: make ROM memory resizable <20230424203647.94614-1-vsement...@yandex-team.ru>
Here I suggest another way to solve a problem, when we have existing running QEMU with old option ROM of small size and want to migrate to new environment where we don't have this ROM file. All the details are in patch 03; 01-02 are simple code style improvements. Vladimir Sementsov-Ogievskiy (3): pci: pci_add_option_rom(): improve style pci: pci_add_option_rom(): refactor: use g_autofree for path variable pci: ROM preallocation for incoming migration hw/pci/pci.c | 98 ++++++++++++++++++++++++++++------------------------ 1 file changed, 52 insertions(+), 46 deletions(-) -- 2.34.1