]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/power turbostat: Validate APERF access for VMWARE
authorLen Brown <len.brown@intel.com>
Tue, 2 Dec 2025 16:29:27 +0000 (11:29 -0500)
committerLen Brown <len.brown@intel.com>
Tue, 2 Dec 2025 21:11:14 +0000 (16:11 -0500)
commit951845d51d1dd27ecd28a3743af3a8b22bc930ac
tree9601c89f5aec12331eb1e0438eb1f7059935cc81
parent68769a0b5ada367d6911a8dfe50fc1e480c89fd1
tools/power turbostat: Validate APERF access for VMWARE

VMWARE correctly enumerates lack of APERF and MPERF in CPUID,
but turbostat didn't consult that before attempting to access them.

Since VMWARE allows access, but always returns 0, turbostat
got confusd into an infinite reset loop.

Head this off by listening to CPUID.6.APERF_MPERF
(and rename the existing variable to make this more clear)

Reported-by: David Arcari <darcari@redhat.com>
Tested-by: David Arcari <darcari@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c