Searched refs:kvpmu (Results 1 – 2 of 2) sorted by relevance
157 static int kvm_pmu_get_programmable_pmc_index(struct kvm_pmu *kvpmu, unsigned long eidx, in kvm_pmu_get_programmable_pmc_index() argument166 min = kvpmu->num_hw_ctrs; in kvm_pmu_get_programmable_pmc_index()167 max = min + kvpmu->num_fw_ctrs; in kvm_pmu_get_programmable_pmc_index()171 max = kvpmu->num_hw_ctrs; in kvm_pmu_get_programmable_pmc_index()177 !test_bit(pmc_idx, kvpmu->pmc_in_use)) { in kvm_pmu_get_programmable_pmc_index()202 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in pmu_ctr_read() local207 pmc = &kvpmu->pmc[cidx]; in pmu_ctr_read()211 pmc->counter_val = kvpmu->fw_event[fevent_code].value; in pmu_ctr_read()222 static int kvm_pmu_validate_counter_mask(struct kvm_pmu *kvpmu, unsigned long ctr_base, in kvm_pmu_validate_counter_mask() argument226 if (!ctr_mask || (ctr_base + __fls(ctr_mask) >= kvm_pmu_num_counters(kvpmu))) in kvm_pmu_validate_counter_mask()[all …]
21 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_sbi_ext_pmu_handler() local25 if (!kvpmu->init_done) { in kvm_sbi_ext_pmu_handler()76 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_sbi_ext_pmu_probe() local78 return kvpmu->init_done; in kvm_sbi_ext_pmu_probe()