Home
last modified time | relevance | path

Searched refs:kvpmu (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c157 static int kvm_pmu_get_programmable_pmc_index(struct kvm_pmu *kvpmu, unsigned long eidx, in kvm_pmu_get_programmable_pmc_index() argument
166 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() local
207 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() argument
226 if (!ctr_mask || (ctr_base + __fls(ctr_mask) >= kvm_pmu_num_counters(kvpmu))) in kvm_pmu_validate_counter_mask()
[all …]
H A Dvcpu_sbi_pmu.c21 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); in kvm_sbi_ext_pmu_handler() local
25 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() local
78 return kvpmu->init_done; in kvm_sbi_ext_pmu_probe()