The selector port is used to select the desired fwcfg item.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
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. |