amd64/vmm: Don't advertise support for performance counters

vmm doesn't implement them, and after commit 2272fac218
("hwpmc: Add support for AMD-only IRPERF in hwpmc PERF class"), FreeBSD
guests fail to boot since they access the unimplemented IRPERF MSR.

MFC after:	1 week
This commit is contained in:
Mark Johnston committed 2026-10-14 15:55:51 +00:00
1 parent 29449b3e46
commit c83e075d72
1 file changed
+1 -2
+1 -2
View File
@@ -137,8 +137,7 @@ x86_emulate_cpuid(struct vcpu *vcpu, uint64_t *rax, uint64_t *rbx,
* unsupported or unsafe AMD extended features
* (8000_0008 EBX).
*/
regs[1] &= (AMDFEID_CLZERO | AMDFEID_IRPERF |
AMDFEID_XSAVEERPTR);
regs[1] &= AMDFEID_CLZERO | AMDFEID_XSAVEERPTR;
vm_get_topology(vm, &sockets, &cores, &threads,
&maxcpus);