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)
Wed, Nov 6, 12:18 PM
Unknown Object (File)
Fri, Nov 1, 5:40 AM
Unknown Object (File)
Oct 8 2024, 6:42 AM
Unknown Object (File)
Oct 5 2024, 11:51 PM
Unknown Object (File)
Oct 4 2024, 2:58 PM
Unknown Object (File)
Oct 3 2024, 8:27 PM
Unknown Object (File)
Oct 2 2024, 1:48 PM
Unknown Object (File)
Sep 28 2024, 11:28 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.