Page MenuHomeFreeBSD

bhyve/fwcfg: add QEMU_FWCFG_INDEX_MAX_CPUS item
ClosedPublic

Authored by corvink on Mar 29 2023, 12:44 PM.
Tags
None
Referenced Files
F164010899: D39315.id120134.diff
Mon, Jul 27, 9:26 PM
Unknown Object (File)
Fri, Jul 24, 11:20 PM
Unknown Object (File)
Wed, Jul 22, 10:33 PM
Unknown Object (File)
Wed, Jul 22, 7:04 PM
Unknown Object (File)
Sun, Jul 19, 6:12 PM
Unknown Object (File)
Jun 24 2026, 8:39 PM
Unknown Object (File)
Jun 24 2026, 3:22 PM
Unknown Object (File)
Jun 24 2026, 9:07 AM

Diff Detail

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

Event Timeline

rew added inline comments.
usr.sbin/bhyve/qemu_fwcfg.c
184

not suggesting for this review

but this could probably return EEXIST?

236

inverted error?

241–243

()'s on return

also, why the uint8_t cast on fwcfg_max_cpus?

  • fix suggested style issues
corvink added inline comments.
usr.sbin/bhyve/qemu_fwcfg.c
184
usr.sbin/bhyve/qemu_fwcfg.c
239

Since this looks a bit odd, I'd add a comment noting that we don't support CPU hotplug (assuming that that's the reason for setting it equal to guest_ncpus and not maxcpus.

corvink marked an inline comment as done.
  • add comment to explain that we don't support cpu hotplug
This revision is now accepted and ready to land.Apr 11 2023, 2:16 PM
This revision was automatically updated to reflect the committed changes.