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)
Sun, Nov 10, 7:21 PM
Unknown Object (File)
Mon, Oct 21, 11:43 AM
Unknown Object (File)
Mon, Oct 21, 11:42 AM
Unknown Object (File)
Mon, Oct 21, 11:42 AM
Unknown Object (File)
Mon, Oct 21, 11:42 AM
Unknown Object (File)
Oct 8 2024, 9:00 AM
Unknown Object (File)
Sep 21 2024, 1:47 PM
Unknown Object (File)
Sep 18 2024, 9:30 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.