aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/vmx/pmu_intel.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-11KVM: VMX: Snapshot LBR capabilities during module initializationGravatar Sean Christopherson 1-1/+1
2024-03-11Merge tag 'kvm-x86-pmu-6.9' of https://github.com/kvm-x86/linux into HEADGravatar Paolo Bonzini 1-135/+85
2024-02-02KVM: x86/pmu: Fix type length error when reading pmu->fixed_ctr_ctrlGravatar Mingwei Zhang 1-1/+1
2024-02-01KVM: x86/pmu: Add macros to iterate over all PMCs given a bitmapGravatar Sean Christopherson 1-5/+2
2024-02-01KVM: x86/pmu: Move pmc_idx => pmc translation helper to common codeGravatar Sean Christopherson 1-14/+1
2024-02-01KVM: x86/pmu: Add common define to capture fixed counters offsetGravatar Sean Christopherson 1-6/+6
2024-02-01KVM: x86/pmu: Zero out PMU metadata on AMD if PMU is disabledGravatar Sean Christopherson 1-14/+2
2024-01-30KVM: x86/pmu: Explicitly check for RDPMC of unsupported Intel PMC typesGravatar Sean Christopherson 1-6/+15
2024-01-30KVM: x86/pmu: Treat "fixed" PMU type in RDPMC as index as a value, not flagGravatar Sean Christopherson 1-3/+11
2024-01-30KVM: x86/pmu: Disallow "fast" RDPMC for architectural Intel PMUsGravatar Sean Christopherson 1-4/+18
2024-01-30KVM: x86/pmu: Apply "fast" RDPMC only to Intel PMUsGravatar Sean Christopherson 1-2/+14
2024-01-30KVM: x86/pmu: Prioritize VMX interception over #GP on RDPMC due to bad indexGravatar Sean Christopherson 1-12/+0
2024-01-30KVM: x86/pmu: Get eventsel for fixed counters from perfGravatar Sean Christopherson 1-13/+17
2024-01-30KVM: x86/pmu: Setup fixed counters' eventsel during PMU initializationGravatar Sean Christopherson 1-11/+5
2024-01-30KVM: x86/pmu: Remove KVM's enumeration of Intel's architectural encodingsGravatar Sean Christopherson 1-49/+23
2024-01-30KVM: x86/pmu: Allow programming events that match unsupported arch eventsGravatar Sean Christopherson 1-38/+0
2024-01-30KVM: x86/pmu: Always treat Fixed counters as available when supportedGravatar Sean Christopherson 1-1/+14
2023-11-30KVM: x86/pmu: Update sample period in pmc_write_counter()Gravatar Sean Christopherson 1-2/+0
2023-11-30KVM: x86/pmu: Move PMU reset logic to common x86 codeGravatar Sean Christopherson 1-20/+0
2023-09-25KVM: x86/pmu: Truncate counter value to allowed width on writeGravatar Roman Kagan 1-2/+2
2023-08-02KVM: x86/pmu: Require nr fixed_pmc_events to match nr max fixed countersGravatar Sean Christopherson 1-10/+9
2023-08-02KVM: x86/pmu: Simplify intel_hw_event_available()Gravatar Sean Christopherson 1-7/+6
2023-08-02KVM: x86/pmu: Use enums instead of hardcoded magic for arch event indicesGravatar Sean Christopherson 1-12/+43
2023-07-01Merge tag 'kvm-x86-vmx-6.5' of https://github.com/kvm-x86/linux into HEADGravatar Paolo Bonzini 1-2/+0
2023-06-06KVM: x86/pmu: Disable vPMU if the minimum num of counters isn't metGravatar Like Xu 1-0/+1
2023-06-06KVM: x86/pmu: Provide Intel PMU's pmc_is_enabled() as generic x86 codeGravatar Like Xu 1-13/+1
2023-06-06KVM: x86/pmu: Move handling PERF_GLOBAL_CTRL and friends to common x86Gravatar Like Xu 1-45/+2
2023-06-06KVM: x86/pmu: Reject userspace attempts to set reserved GLOBAL_STATUS bitsGravatar Like Xu 1-0/+3
2023-06-06KVM: x86/pmu: Move reprogram_counters() to pmu.hGravatar Like Xu 1-12/+0
2023-06-06KVM: x86/pmu: Rename global_ovf_ctrl_mask to global_status_maskGravatar Sean Christopherson 1-4/+14
2023-06-01KVM: x86/pmu: Remove redundant check for MSR_IA32_DS_AREA set handlerGravatar Jinrong Liang 1-2/+0
2023-04-07KVM: x86/pmu: Fix a typo in kvm_pmu_request_counter_reprogam()Gravatar Like Xu 1-2/+2
2023-04-06KVM: x86/pmu: Rewrite reprogram_counters() to improve performanceGravatar Like Xu 1-6/+6
2023-04-06KVM: VMX: Refactor intel_pmu_{g,}set_msr() to align with other helpersGravatar Sean Christopherson 1-52/+57
2023-04-06KVM: x86/pmu: Zero out LBR capabilities during PMU refreshGravatar Sean Christopherson 1-0/+10
2023-01-26KVM: x86/pmu: Cap kvm_pmu_cap.num_counters_gp at KVM's internal maxGravatar Sean Christopherson 1-0/+1
2023-01-26KVM: x86/pmu: Drop event_type and rename "struct kvm_event_hw_type_mapping"Gravatar Like Xu 1-9/+12
2023-01-24KVM: x86/pmu: Correct the mask used in a pmu event filter lookupGravatar Aaron Lewis 1-0/+1
2022-12-29KVM: x86: Unify pr_fmt to use module name for all KVM modulesGravatar Sean Christopherson 1-2/+3
2022-11-09KVM: x86/pmu: Defer counter emulated overflow via pmc->prev_counterGravatar Like Xu 1-2/+2
2022-11-09KVM: x86/pmu: Defer reprogram_counter() to kvm_pmu_handle_event()Gravatar Like Xu 1-3/+3
2022-11-09KVM: x86: Init vcpu->arch.perf_capabilities in common x86 codeGravatar Sean Christopherson 1-1/+0
2022-11-09KVM: x86: Track supported PERF_CAPABILITIES in kvm_capsGravatar Sean Christopherson 1-1/+1
2022-11-09KVM: x86/pmu: Limit the maximum number of supported Intel GP countersGravatar Like Xu 1-2/+2
2022-09-28KVM: x86/pmu: Avoid using PEBS perf_events for normal countersGravatar Like Xu 1-0/+2
2022-09-28KVM: x86/pmu: Refactor PERF_GLOBAL_CTRL update helper for reuse by PEBSGravatar Like Xu 1-7/+5
2022-09-28KVM: x86/pmu: Avoid setting BIT_ULL(-1) to pmu->host_cross_mapped_maskGravatar Like Xu 1-6/+9
2022-08-10KVM: VMX: Adjust number of LBR records for PERF_CAPABILITIES at refreshGravatar Sean Christopherson 1-9/+3
2022-07-28Revert "KVM: nVMX: Expose load IA32_PERF_GLOBAL_CTRL VM-{Entry,Exit} control"Gravatar Paolo Bonzini 1-3/+0
2022-07-28KVM: VMX: Add helper to check if the guest PMU has PERF_GLOBAL_CTRLGravatar Sean Christopherson 1-2/+2