aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/pmu.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-08KVM: x86/pmu: Set enable bits for GP counters in PERF_GLOBAL_CTRL at "RESET"Gravatar Sean Christopherson 1-2/+14
2024-02-01KVM: x86/pmu: Avoid CPL lookup if PMC enabline for USER and KERNEL is the sameGravatar Sean Christopherson 1-0/+7
2024-02-01KVM: x86/pmu: Check eventsel first when emulating (branch) insns retiredGravatar Sean Christopherson 1-6/+3
2024-02-01KVM: x86/pmu: Expand the comment about what bits are check emulating eventsGravatar Sean Christopherson 1-1/+14
2024-02-01KVM: x86/pmu: Snapshot event selectors that KVM emulates in softwareGravatar Sean Christopherson 1-9/+8
2024-02-01KVM: x86/pmu: Process only enabled PMCs when emulating events in softwareGravatar Sean Christopherson 1-1/+10
2024-02-01KVM: x86/pmu: Add macros to iterate over all PMCs given a bitmapGravatar Sean Christopherson 1-19/+7
2024-02-01KVM: x86/pmu: Snapshot and clear reprogramming bitmap before reprogrammingGravatar Sean Christopherson 1-23/+29
2024-02-01KVM: x86/pmu: Move pmc_idx => pmc translation helper to common codeGravatar Sean Christopherson 1-4/+4
2024-02-01KVM: x86/pmu: Add common define to capture fixed counters offsetGravatar Sean Christopherson 1-4/+4
2024-02-01KVM: x86/pmu: Zero out PMU metadata on AMD if PMU is disabledGravatar Sean Christopherson 1-2/+18
2024-01-30KVM: x86/pmu: Apply "fast" RDPMC only to Intel PMUsGravatar Sean Christopherson 1-2/+1
2024-01-30KVM: x86/pmu: Prioritize VMX interception over #GP on RDPMC due to bad indexGravatar Sean Christopherson 1-3/+13
2024-01-30KVM: x86/pmu: Allow programming events that match unsupported arch eventsGravatar Sean Christopherson 1-1/+0
2023-11-30KVM: x86/pmu: Track emulated counter events instead of previous counterGravatar Sean Christopherson 1-13/+35
2023-11-30KVM: x86/pmu: Update sample period in pmc_write_counter()Gravatar Sean Christopherson 1-0/+27
2023-11-30KVM: x86/pmu: Remove manual clearing of fields in kvm_pmu_init()Gravatar Sean Christopherson 1-2/+0
2023-11-30KVM: x86/pmu: Stop calling kvm_pmu_reset() at RESET (it's redundant)Gravatar Sean Christopherson 1-1/+1
2023-11-30KVM: x86/pmu: Reset the PMU, i.e. stop counters, before refreshingGravatar Sean Christopherson 1-13/+22
2023-11-30KVM: x86/pmu: Move PMU reset logic to common x86 codeGravatar Sean Christopherson 1-1/+39
2023-09-25KVM: x86/pmu: Synthesize at most one PMI per VM-exitGravatar Jim Mattson 1-26/+1
2023-08-02KVM: x86/pmu: Move .hw_event_available() check out of PMC filter helperGravatar Sean Christopherson 1-3/+1
2023-06-06KVM: x86/svm/pmu: Add AMD PerfMonV2 supportGravatar Like Xu 1-1/+17
2023-06-06KVM: x86/pmu: Provide Intel PMU's pmc_is_enabled() as generic x86 codeGravatar Like Xu 1-5/+0
2023-06-06KVM: x86/pmu: Move handling PERF_GLOBAL_CTRL and friends to common x86Gravatar Like Xu 1-3/+68
2023-04-26Merge tag 'kvm-x86-pmu-6.4' of https://github.com/kvm-x86/linux into HEADGravatar Paolo Bonzini 1-7/+14
2023-04-07KVM: x86/pmu: Prevent the PMU from counting disallowed eventsGravatar Aaron Lewis 1-5/+8
2023-04-07KVM: x86/pmu: Fix a typo in kvm_pmu_request_counter_reprogam()Gravatar Like Xu 1-1/+1
2023-04-06KVM: x86/pmu: Rename pmc_is_enabled() to pmc_is_globally_enabled()Gravatar Like Xu 1-3/+3
2023-04-06KVM: x86/pmu: WARN and bug the VM if PMU is refreshed after vCPU has runGravatar Sean Christopherson 1-0/+3
2023-04-05KVM: x86/pmu: Zero out pmu->all_valid_pmc_idx each time it's refreshedGravatar Like Xu 1-0/+1
2023-03-22KVM: x86: Add helpers to query individual CR0/CR4 bitsGravatar Binbin Wu 1-2/+2
2023-03-22KVM: x86: Make use of kvm_read_cr*_bits() when testing bitsGravatar Mathias Krause 1-2/+2
2023-02-15Merge tag 'kvm-x86-pmu-6.3' of https://github.com/kvm-x86/linux into HEADGravatar Paolo Bonzini 1-50/+236
2023-02-03KVM: x86: Optimize kvm->lock and SRCU interaction (KVM_SET_PMU_EVENT_FILTER)Gravatar Michal Luczaj 1-2/+1
2023-02-01KVM: x86/pmu: Add PRIR++ and PDist support for SPR and later modelsGravatar Like Xu 1-12/+33
2023-01-24KVM: x86/pmu: Introduce masked events to the pmu event filterGravatar Aaron Lewis 1-30/+167
2023-01-24KVM: x86/pmu: prepare the pmu event filter for masked eventsGravatar Aaron Lewis 1-23/+33
2023-01-24KVM: x86/pmu: Remove impossible events from the pmu event filterGravatar Aaron Lewis 1-1/+18
2023-01-24KVM: x86/pmu: Correct the mask used in a pmu event filter lookupGravatar Aaron Lewis 1-1/+2
2022-12-29KVM: x86: Unify pr_fmt to use module name for all KVM modulesGravatar Sean Christopherson 1-0/+1
2022-12-23KVM: x86/pmu: Prevent zero period event from being repeatedly releasedGravatar Like Xu 1-1/+2
2022-11-09KVM: x86/pmu: Defer counter emulated overflow via pmc->prev_counterGravatar Like Xu 1-16/+16
2022-11-09KVM: x86/pmu: Defer reprogram_counter() to kvm_pmu_handle_event()Gravatar Like Xu 1-5/+12
2022-11-09KVM: x86/pmu: Clear "reprogram" bit if counter is disabled or disallowedGravatar Sean Christopherson 1-14/+24
2022-11-09KVM: x86/pmu: Force reprogramming of all counters on PMU filter changeGravatar Sean Christopherson 1-1/+12
2022-11-09KVM: x86/pmu: Limit the maximum number of supported Intel GP countersGravatar Like Xu 1-1/+1
2022-09-28KVM: x86/pmu: Avoid using PEBS perf_events for normal countersGravatar Like Xu 1-2/+2
2022-09-28KVM: x86/pmu: Don't generate PEBS records for emulated instructionsGravatar Like Xu 1-3/+13
2022-06-20Revert "KVM: x86: always allow host-initiated writes to PMU MSRs"Gravatar Sean Christopherson 1-2/+2