Page MenuHomeFreeBSD

bhyvectl: Add '--get-debug-cpus' command
ClosedPublic

Authored by gusev.vitaliy_gmail.com on Jun 29 2023, 9:58 PM.
Tags
Referenced Files
Unknown Object (File)
Fri, May 10, 8:35 PM
Unknown Object (File)
Feb 10 2024, 9:10 PM
Unknown Object (File)
Dec 15 2023, 6:20 AM
Unknown Object (File)
Dec 10 2023, 7:26 PM
Unknown Object (File)
Dec 10 2023, 1:08 PM
Unknown Object (File)
Nov 13 2023, 4:56 PM
Unknown Object (File)
Nov 13 2023, 4:55 PM
Unknown Object (File)
Nov 11 2023, 5:04 PM

Details

Summary

vmm and libvmmapi already have handlers for that, but bhyvectl doesn't, by unknown reason.

Sponsored by: vStack

Test Plan

Run VM with 4 vcpus and get it into GRUB menu.

bhyvectl --get-debug-cpus --vm=ubuntu22
debug cpus:	 1, 2, 3
# bhyvectl --get-all --vm=ubuntu22|grep debug
debug cpus:	 1, 2, 3
bhyvectl --get-active-cpus --vm=ubuntu22
active cpus:	 0, 1, 2, 3

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.Jun 30 2023, 5:43 AM
jhb added a subscriber: jhb.

Originally the debug_cpus mask was only used for vCPUs stopped while the debug stub was active and in a stop, so it didn't seem worth adding to bhyvectl at the time. Over time it has been reused for other things (snapshots and now idle APs).

This revision was automatically updated to reflect the committed changes.