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
Unknown Object (File)
Tue, Oct 22, 12:54 PM
Unknown Object (File)
Tue, Oct 22, 1:41 AM
Unknown Object (File)
Sat, Oct 19, 9:42 AM
Unknown Object (File)
Oct 7 2024, 4:56 PM
Unknown Object (File)
Sep 30 2024, 6:32 AM
Unknown Object (File)
Sep 30 2024, 6:28 AM
Unknown Object (File)
Sep 27 2024, 5:05 PM
Unknown Object (File)
Sep 27 2024, 2:05 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50673
Build 47564: arc lint + arc unit

Event Timeline

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

not suggesting for this review

but this could probably return EEXIST?

235

inverted error?

240–242

()'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
183
usr.sbin/bhyve/qemu_fwcfg.c
238

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.