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)
Mar 3 2024, 12:31 PM
Unknown Object (File)
Mar 3 2024, 12:31 PM
Unknown Object (File)
Mar 3 2024, 12:31 PM
Unknown Object (File)
Mar 2 2024, 6:28 PM
Unknown Object (File)
Mar 2 2024, 6:15 PM
Unknown Object (File)
Dec 23 2023, 2:52 AM
Unknown Object (File)
Dec 12 2023, 1:46 AM
Unknown Object (File)
Dec 4 2023, 9:54 AM

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.