]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/cpuid: Refactor host/guest CPU model consistency check
authorLike Xu <like.xu@linux.intel.com>
Mon, 11 Apr 2022 10:19:45 +0000 (18:19 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:19 +0000 (04:48 -0400)
commit6c4f978f8de0b64a7e9db54a263c874cb153a05d
tree4869914fd5728a6575077a5abaa5b2709b0dc69c
parent29ab5a8e1e3ef746c7b9cb86145029cad60b2e06
KVM: x86/cpuid: Refactor host/guest CPU model consistency check

For the same purpose, the leagcy intel_pmu_lbr_is_compatible() can be
renamed for reuse by more callers, and remove the comment about LBR
use case can be deleted by the way.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Message-Id: <20220411101946.20262-17-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.h
arch/x86/kvm/vmx/pmu_intel.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h