Home
last modified time | relevance | path

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

/kernel/linux/linux-6.6/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()
265 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_incr_fw() local
282 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_read_hpm() local
316 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_num_ctrs() local
326 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_ctr_info() local
342 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_ctr_start() local
398 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_ctr_stop() local
465 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_ctr_cfg_match() local
548 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_init() local
613 struct kvm_pmu *kvpmu = vcpu_to_pmu(vcpu); kvm_riscv_vcpu_pmu_deinit() local
[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()

Completed in 1 milliseconds