Page MenuHomeFreeBSD

bhyve: add cmdline option to enable qemu's fwcfg
ClosedPublic

Authored by corvink on Feb 1 2023, 11:11 AM.
Tags
None
Referenced Files
F163258759: D38337.id118057.diff
Tue, Jul 21, 12:31 PM
Unknown Object (File)
Tue, Jul 21, 1:50 AM
Unknown Object (File)
Mon, Jul 20, 9:08 AM
Unknown Object (File)
Sun, Jul 19, 11:10 PM
Unknown Object (File)
Sat, Jul 18, 2:29 AM
Unknown Object (File)
Sat, Jun 27, 10:04 PM
Unknown Object (File)
Wed, Jun 24, 6:51 PM
Unknown Object (File)
Jun 21 2026, 2:44 PM
Subscribers

Details

Summary

Let the user decide if he wants to use bhyve's fwctl or qemu's fwcfg. He
can set the interface by adding a fwcfg option to bootrom:

-l bootrom,<path/to/rom>,fwcfg=bhyve
-l bootrom,<path/to/rom>,fwcfg=qemu

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 49409
Build 46299: arc lint + arc unit

Event Timeline

  • do not create acpi tables for fwcfg if it's unused
usr.sbin/bhyve/bhyve.8
204

I think some more elaboration is needed. What is a "fwcfg", what are the valid values, why would someone choose one value over the other?

usr.sbin/bhyve/bhyve_config.5
262
usr.sbin/bhyve/bhyverun.c
1472
1561
  • explain usage of fwcfg more detailed
  • fix style issues
usr.sbin/bhyve/bhyve.8
528
529

Same below.

532
534
535
536
usr.sbin/bhyve/bhyve_config.5
534
535

Looks ok aside from the nits.

usr.sbin/bhyve/bhyve.8
542
543
usr.sbin/bhyve/bhyve_config.5
535
This revision is now accepted and ready to land.Mar 8 2023, 4:20 PM