CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2023/02/06 13:33:34

Modified files:
        usr.sbin/vmd   : fw_cfg.c pci.c pci.h vm.c 

Log message:
vmd(8): scan pci bus to determine bootorder strings.

vmd's SeaBIOS bootorder strings had hardcoded pci device ids, so
if a user added a network interface the bootorder strings didn't
line up with reality. Using vmctl(8) to boot from a cdrom (-B cdrom)
would fail, for instance, if attaching both a nic and a disk as
well.

This change scans the pci devices and finds the first of each type
to construct viable bootorder strings.

ok jan@

Reply via email to