opnsense-src/sys/amd64
Konstantin Belousov 0698ce429f bhyve: fix CPUID L3 Cache Size reporting for AMD/SVM
Adjust leaf 0x8000_001D %ecx 3 on AMD (L3 cache params).
- Report cache as 1-way associative.  Glibc does not believe that there
  are fully associative L3 caches, ignoring the leaf and falling back to
  legacy way of reading cache params.
- Do not report 4095 logical CPUs per L3 cache, report the true total
  number of emulated CPUs.  The insanely large value tricked some
  version of glibc to overflow 32bit calculation of the L3 cache size,
  as reported in the PR.

Also, for leaf 0x8000_0008, do not clip ApicIdSize to zero if less than
4.  This effectively falls back to legacy.

PR:	279901
With the help from:	Florian Weimer <fweimer@redhat.com>
Reviewed by:	kevans, meta, mp
Tested by:	meta, mp
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D48187
2025-03-05 14:27:58 +02:00
..
acpica Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
amd64 sys: Add cpu_update_pcb hook 2025-01-31 15:40:29 -05:00
conf Revert "nvme: Separate total failures from I/O failures" 2024-08-15 21:29:53 -06:00
ia32 freebsd32: struct siginfo32 -> struct __siginfo32 2024-03-19 23:13:26 +00:00
include vmm: Consolidate code which manages guest memory regions 2025-02-18 16:00:07 +00:00
linux sysent: regen for typo fix 2024-10-22 19:21:26 +01:00
linux32 sysent: regen for typo fix 2024-10-22 19:21:26 +01:00
pci Remove stray whitespaces from sys/amd64/ 2024-09-21 07:05:46 -06:00
sgx Remove stray whitespaces from sys/amd64/ 2024-09-21 07:05:46 -06:00
vmm bhyve: fix CPUID L3 Cache Size reporting for AMD/SVM 2025-03-05 14:27:58 +02:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00