Hi!

Qemu system-mode emulation, when used with a NIC, loads a ROM file
for network booting (and fails to start if such file is not provided).
ROMs shipped in the source tarball are x86-only, so such loading does
nothing on non-x86, where we just wasting guest memory, - since the
ROM code can not be executed on the target architecture anyway.

These days, ipxe provides (UEFI) ROM files for architectures other than
x86.  And these ROMs actually works, making it possible to network-boot
qemu guests in UEFI mode.

Would it be possible to make ROMs target-arch-specific, and drop the
ROM dependency/loading on non-x86 if there's no arch-specific ROM found?
This probably requires machine version dependency, to make the machine
migratable.  Currently, romfile is a static property of a device,
independent of the architecture.

A similar question exists about seabios and vgabios - for example,
virtio-vga device always tries to load vgabios.rom on all architectures,
while on non-x86 it is useless.

Thanks,

/mjt

Reply via email to