aboutsummaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-11-09 18:28:57 -0800
committerSean Christopherson <[email protected]>2024-02-01 09:35:48 -0800
commit83bdfe04c968e0fe3181e4cd41b764e17ac73911 (patch)
tree1ed26527de1b6e3f979289519879d7299e9c4c3f /scripts/rustdoc_test_builder.rs
parente35529fb4ac930a4a39e0c15bafcb28a30d26611 (diff)
KVM: x86/pmu: Avoid CPL lookup if PMC enabline for USER and KERNEL is the same
Don't bother querying the CPL if a PMC is (not) counting for both USER and KERNEL, i.e. if the end result is guaranteed to be the same regardless of the CPL. Querying the CPL on Intel requires a VMREAD, i.e. isn't free, and a single CMP+Jcc is cheap. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions