]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/pmu: Clear anythread deprecated bit when 0xa leaf is unsupported on the SVM
authorLike Xu <like.xu.linux@gmail.com>
Mon, 28 Jun 2021 07:43:54 +0000 (15:43 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Jul 2021 16:17:56 +0000 (12:17 -0400)
commit64e945461f6e795710c5f0ee4b59fe5fbdd3af0a
tree0f75c65ee13985bdab037ae197fd5ec580d1c5ea
parent22825182cb87491d0a51b1e84cec20cd184d797e
KVM: x86/pmu: Clear anythread deprecated bit when 0xa leaf is unsupported on the SVM

The AMD platform does not support the functions Ah CPUID leaf. The returned
results for this entry should all remain zero just like the native does:

AMD host:
   0x0000000a 0x00: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00000000
(uncanny) AMD guest:
   0x0000000a 0x00: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00008000

Fixes: ed83c4fbeae1 ("perf/x86/intel: Make anythread filter support conditional")
Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20210628074354.33848-1-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c