Skip to content
Commit 0d23dc34 authored by Peter Zijlstra (Intel)'s avatar Peter Zijlstra (Intel) Committed by Paolo Bonzini
Browse files

x86/perf/core: Add pebs_capable to store valid PEBS_COUNTER_MASK value



The value of pebs_counter_mask will be accessed frequently
for repeated use in the intel_guest_get_msrs(). So it can be
optimized instead of endlessly mucking about with branches.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Message-Id: <20220411101946.20262-7-likexu@tencent.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 2c985527
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment