This helper makes it easier to add multiple fwcfg items. You can pass an
index and some data to the helper. The helper adds these information to
the fwcfg emulation so that the guest reads the given data on the
specified index.
Details
Details
- Reviewers
jhb markj - Group Reviewers
bhyve - Commits
- rG1adfb2e834c5: bhyve: add helper to add fwcfg items
rG3ef46195ac37: bhyve: add helper to add fwcfg items
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 49591 Build 46481: arc lint + arc unit
Event Timeline
usr.sbin/bhyve/qemu_fwcfg.c | ||
---|---|---|
150 | Should we validate the indices, if only with assert()? |
usr.sbin/bhyve/qemu_fwcfg.c | ||
---|---|---|
150 | I'm not sure about this. items is defined as struct qemu_fwcfg_item items[QEMU_FWCFG_MAX_ARCHS][QEMU_FWCFG_MAX_ENTRIES];. The value of idx is masked. So, it's impossible for idx to be too large. |