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 9 2024, 8:52 PM
Unknown Object (File)
Nov 28 2024, 9:51 PM
Unknown Object (File)
Nov 23 2024, 2:27 AM
Unknown Object (File)
Nov 14 2024, 9:13 AM
Unknown Object (File)
Nov 14 2024, 6:17 AM
Unknown Object (File)
Oct 8 2024, 6:45 AM
Unknown Object (File)
Sep 30 2024, 4:16 PM
Unknown Object (File)
Sep 28 2024, 11:24 AM

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.