guest kernel fails to start when cpuset is used

From: Nikos Vassiliadis <nvass_at_gmx.com>
Date: Thu, 19 Mar 2026 10:39:44 UTC
Hi,

I was trying to limit a 12-core VM with cpuset. So I limited it to 0-5
cores and the kernel seems to fail to start.


FreeBSD 16.0-CURRENT main-n284539-1d13d938fe6c GENERIC amd64
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git 
llvmorg-19.1.7-0-gcd708029e0b2)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
CPU: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz (2666.77-MHz 
K8-class CPU)
   Origin="GenuineIntel"  Id=0x206c2  Family=0x6  Model=0x2c  Stepping=2
  
Features=0x9f83fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,SS,HTT,PBE>
  
Features2=0x829e6217<SSE3,PCLMULQDQ,DTES64,DS_CPL,SSSE3,CX16,xTPR,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AESNI,HV>
   AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
   AMD Features2=0x1<LAHF>
   TSC: P-state invariant
Hypervisor: Origin = "bhyve bhyve "
real memory  = 5372903424 (5124 MB)
avail memory = 4109144064 (3918 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <BHYVE  BVAPIC >
FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs
FreeBSD/SMP: 12 package(s) x 1 core(s)
random: unblocking device.
ioapic0 <Version 1.1> irqs 0-31
Launching APs: 2 8 6 11 10 9 3 4 7 5 1

And it stays there spinning.

Any ideas?

Thanks,
Nikos