Lines Matching refs:kvm_pmc
26 bool (*pmc_is_enabled)(struct kvm_pmc *pmc);
27 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
28 struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu, unsigned idx);
38 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
45 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
57 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
66 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
71 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
76 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled()
85 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
95 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
105 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel);
106 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int fixed_idx);