[Bug 300480] bhyve: guest sees unmasked AMD QoS CPUID leaf 0x80000020 while Intel RDT leaves are masked; Linux guests boot-loop (resctrl divide-by-zero in PID 1)
Date: Mon, 23 Nov 2026 18:52:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300480
--- Comment #2 from Janeri Filho, Osvaldo <Osvaldo.JaneriFilho@amd.com> ---
Posted a fix based on your patch: https://reviews.freebsd.org/D61716
It also hides 0x8000001F (SME/SEV) and reports at most 0x80000022 in
leaf 0x80000000, as KVM does. 0x80000026 was passed through as well,
and Linux reads its topology from it before 0x8000001E. In a FreeBSD
guest on an EPYC 9654 (Zen 4):
before: max extended leaf 0x80000028, 0x80000020.0 ebx 0x1e,
0x80000026.0 edx 0xa0 (a host APIC ID)
after: max extended leaf 0x80000022; 0x8000001F, 0x80000020 and
0x80000023-0x80000028 read as zero
The divide error needs the ABMC bit, which Zen 4 does not report, so I
could not reproduce the panic here. Could you try it on your 9700X
without initcall_blacklist?
--
You are receiving this mail because:
You are the assignee for the bug.