]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: vmx/pmu: Reduce the overhead of LBR pass-through or cancellation
authorLike Xu <like.xu@linux.intel.com>
Mon, 1 Feb 2021 05:10:35 +0000 (13:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:25 +0000 (05:27 -0500)
commita000c0651f844dee590f5d104211d0ef7131290e
tree9270a2f798b1339fa0384ecfc2ea14fbd09a4c38
parent4d536fc159c14ccf94b7de7899b5953cafe5c9e0
KVM: vmx/pmu: Reduce the overhead of LBR pass-through or cancellation

When the LBR records msrs has already been pass-through, there is no
need to call vmx_update_intercept_for_lbr_msrs() again and again, and
vice versa.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Message-Id: <20210201051039.255478-8-like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/pmu_intel.c
arch/x86/kvm/vmx/vmx.h