Lines Matching refs:kvm_pmc
21 bool (*pmc_is_enabled)(struct kvm_pmc *pmc);
22 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
23 struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu, unsigned idx);
33 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
40 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
52 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
61 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
66 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
71 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled()
80 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
90 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
100 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel);
101 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int fixed_idx);