aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-01-09 15:02:28 -0800
committerSean Christopherson <[email protected]>2024-01-30 15:28:02 -0800
commitd652981db08fe2db185e00ad9cd41871f49807b0 (patch)
tree055c188bbfbf6d7e9096f9ddc855365853b92bfa /rust/helpers.c
parent7bb7fce13601d2e6818be500ef3ce0b60cd59603 (diff)
KVM: x86/pmu: Apply "fast" RDPMC only to Intel PMUs
Move the handling of "fast" RDPMC instructions, which drop bits 63:32 of the count, to Intel. The "fast" flag, and all modifiers for that matter, are Intel-only and aren't supported by AMD. Opportunistically replace open coded bit crud with proper #defines, and add comments to try and disentangle the flags vs. values mess for non-architectural vs. architectural PMUs. Fixes: ca724305a2b0 ("KVM: x86/vPMU: Implement AMD vPMU code for KVM") Reviewed-by: Dapeng Mi <[email protected]> Tested-by: Dapeng Mi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions