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)
Tue, Nov 12, 3:09 PM
Unknown Object (File)
Sun, Oct 20, 5:51 AM
Unknown Object (File)
Oct 1 2024, 7:23 PM
Unknown Object (File)
Sep 30 2024, 2:01 AM
Unknown Object (File)
Sep 27 2024, 3:28 PM
Unknown Object (File)
Sep 26 2024, 10:39 PM
Unknown Object (File)
Sep 25 2024, 11:23 AM
Unknown Object (File)
Sep 23 2024, 8:57 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.