Page MenuHomeFreeBSD

bhyve: add emulation for the qemu fwcfg selector port
ClosedPublic

Authored by corvink on Feb 1 2023, 11:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 6:31 AM
Unknown Object (File)
Dec 11 2023, 12:53 AM
Unknown Object (File)
Nov 14 2023, 4:26 PM
Unknown Object (File)
Nov 4 2023, 8:07 PM
Unknown Object (File)
Nov 3 2023, 2:54 PM
Unknown Object (File)
Nov 3 2023, 2:49 PM
Unknown Object (File)
Nov 3 2023, 2:38 PM
Unknown Object (File)
Oct 10 2023, 8:30 PM

Details

Summary

The selector port is used to select the desired fwcfg item.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Feb 2 2023, 2:20 PM
rew added inline comments.
usr.sbin/bhyve/qemu_fwcfg.c
38–54

maybe it'd make sense to comment the macro definition or rename the macro such that it doesn't need a comment.

usr.sbin/bhyve/qemu_fwcfg.c
38–54

Your suggestion makes no sense. architecture is a single bit. You can assign a value of QEMU_FWCFG_ARCHITECTURE_GENERIC or QEMU_FWCFG_ARCHITECTURE_SPECIFIC to it. So, the bit width should be 1 and not QEMU_FWCFG_ARCHITECTURE_SPECIFIC.

The comment is added to clarify the meaning of different values for architecture.

usr.sbin/bhyve/qemu_fwcfg.c
38–54

right, I misread it - still not sure the comment is necessary if the macro names make the meaning apparent...either way, it doesn't really matter.