aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bxe/(public-mirror)
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2026-09-20 14:41:55 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2026-09-21 16:54:45 +0000
commitb27a221ef79d6d77d6173897f12118e1126453d8 (patch)
treef69afe6b8a646e904d72ee61e26d2cb562706036 /sys/dev/bxe/(public-mirror)
parent00d693e47efd305cfc011ffe85972483f4fe12f8 (diff)
bhyve: fix boot device orderingHEADmain
EDK2's QemuBootOrderLib inspects the bootorder file provided via fw_cfg and requires it to be NUL-terminated. Otherwise, it rejects the supplied bootorder and falls back to its default boot order. Currently, bhyve registers bootorder with qemu_fwcfg_add_file() using bootorder_len returned by open_memstream(), which excludes the trailing NUL byte. Fix that by passing bootorder_len + 1 to qemu_fwcfg_add_file() so the fw_cfg payload is properly NUL-terminated. PR: 279720 Reviewed by: markj Found with: codex (gpt-5.6-sol) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59859
Diffstat (limited to 'sys/dev/bxe/(public-mirror)')
0 files changed, 0 insertions, 0 deletions