]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/pmu: Introduce the ctrl_mask value for fixed counter
authorLike Xu <like.xu@linux.intel.com>
Mon, 11 Apr 2022 10:19:34 +0000 (18:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:25 +0000 (14:24 +0200)
commit3e1d7a29e5f33fc85636a2b8769dff44f7ba55eb
tree5417a91b58079c35380cf42a2a44327c84e97ca1
parentc93eaf62c05323836396e1e0188da68831c0857f
KVM: x86/pmu: Introduce the ctrl_mask value for fixed counter

[ Upstream commit 4220318892bcdcf0188edc59e4acb21176469c3f ]

The mask value of fixed counter control register should be dynamic
adjusted with the number of fixed counters. This patch introduces a
variable that includes the reserved bits of fixed counter control
registers. This is a generic code refactoring.

Co-developed-by: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Message-Id: <20220411101946.20262-6-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx/pmu_intel.c