Page MenuHomeFreeBSD

bhyve: add basic qemu fwcfg implementation
ClosedPublic

Authored by corvink on Feb 1 2023, 11:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 4, 12:56 AM
Unknown Object (File)
Tue, Jun 4, 12:56 AM
Unknown Object (File)
Tue, Jun 4, 12:56 AM
Unknown Object (File)
Tue, Jun 4, 12:56 AM
Unknown Object (File)
Tue, Jun 4, 12:42 AM
Unknown Object (File)
Feb 16 2024, 7:26 PM
Unknown Object (File)
Dec 22 2023, 11:03 PM
Unknown Object (File)
Dec 11 2023, 1:02 AM
Subscribers

Details

Summary

qemu's fwcfg and bhyve's fwctl are both used to configure ovmf. qemu's
fwcfg is much more powerfull than bhyve's fwctl. For that reason, add
support for qemu's fwcfg.

Diff Detail

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

Event Timeline

usr.sbin/bhyve/qemu_fwcfg.c
43

Why does the softc need to be packed?

45

Since this is a global, let's give it a more specific name? Perhaps fwcfg_sc.

76
104

Continuing lines should be indented by four spaces, same below.

markj added inline comments.
usr.sbin/bhyve/qemu_fwcfg.c
10

You don't need to add this to new files.

This revision is now accepted and ready to land.Feb 10 2023, 4:51 PM
This revision was automatically updated to reflect the committed changes.