This series adds a shortcut for network boot, similar to what is present on bare-metal machines. F11 will prioritize BCV/BEV entries for network devices over all the other items of the boot list.
After testing with a more recent QEMU I found that it deploys a BCV ROM that breaks network boot. So this series has two extra patches that track the PCI class for boot entries; this is then used to filter boot entries for network boot. A better choice of priorities for BCV and BEV is also implemented (patch 3).
After Peter Stuge's prod, I reorganized interactive_bootmenu to use a switch statement, and split the reindentation away in a separate patch.
Paolo
Paolo Bonzini (6): boot: change definition of IPL_TYPE_* constants boot: track the PCI class of BCV/BEV boot entries boot: bump priority of storage-device option ROMs boot: reorganize interactive_bootmenu boot: wait for key release before continuing boot boot: add F11 shortcut for network boot
src/boot.c | 134 ++++++++++++++++++++++++++++++++++++------------------- src/boot.h | 4 +- src/optionroms.c | 8 ++-- 3 file modificati, 94 inserzioni(+), 52 rimozioni(-)