vcpus could be restarted by the guest by sending an INIT SIPI SIPI
sequence to a vcpu. That's not supported by bhyve yet but it will be
supported in a future commit. So, create the vcpu threads only once on
startup to make restarting a vcpu easier.
Details
Details
- Reviewers
markj jhb manu - Group Reviewers
bhyve - Commits
- rG5f7fc790c64f: bhyve: create all vcpus on startup
rG9cc9abf409cc: bhyve: create all vcpus on startup
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I think the general idea is ok, just some nits
usr.sbin/bhyve/bhyverun.c | ||
---|---|---|
551 | s/int suspend/bool suspend/ | |
689 | Looks like pvcpu isn't used anymore? | |
1139 | bool here as well. | |
1594 | I would maybe write this as: bool suspend = (vcpu != BSP); #ifdef BHYVE_SNAPSHOT; if (restore_file != NULL) suspend = false; #endif |
usr.sbin/bhyve/bhyverun.c | ||
---|---|---|
689 | Yes, it's unused. Should we mark it as unused? |
Comment Actions
@jhb seems all comments have been resolved, will commit later today unless you have objections.