Page MenuHomeFreeBSD

bhyve: add bootindex option for several devices
ClosedPublic

Authored by corvink on Mar 27 2023, 10:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 23, 8:57 PM
Unknown Object (File)
Mon, Sep 23, 5:32 PM
Unknown Object (File)
Mon, Sep 23, 4:28 AM
Unknown Object (File)
Sun, Sep 22, 5:14 AM
Unknown Object (File)
Wed, Sep 18, 11:36 AM
Unknown Object (File)
Wed, Sep 18, 9:34 AM
Unknown Object (File)
Sun, Sep 8, 3:01 PM
Unknown Object (File)
Sat, Sep 7, 3:08 PM

Details

Summary

The bootindex option is used to specify the boot order. If no device
uses the bootindex option, the boot order will be determined by the
firmware. If one or more devices specify a bootindex, the first bootable
device with the lowest bootindex will be booted. It's not garanteed
that devices without a bootindex will be recognized as bootable from the
firmware in that case.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

usr.sbin/bhyve/block_if.c
477

()'s around return value

usr.sbin/bhyve/pci_ahci.c
2479

Trailing whitespace?

This revision is now accepted and ready to land.Jun 19 2023, 5:24 PM

The documentation should explain that "bootorder" is just a qemu_fwcfg variable, and it's up to the guest firmware to do something with it.

usr.sbin/bhyve/block_if.c
69

Redundant include.

usr.sbin/bhyve/pci_virtio_scsi.c
716

sc is leaked here.