Home
last modified time | relevance | path

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

/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c258 static int kvm_pmu_validate_counter_mask(struct kvm_pmu *kvpmu, unsigned long ctr_base, in kvm_pmu_validate_counter_mask() argument
262 if (!ctr_mask || (ctr_base + __fls(ctr_mask) >= kvm_pmu_num_counters(kvpmu))) in kvm_pmu_validate_counter_mask()
480 int kvm_riscv_vcpu_pmu_ctr_start(struct kvm_vcpu *vcpu, unsigned long ctr_base, in kvm_riscv_vcpu_pmu_ctr_start() argument
490 if (kvm_pmu_validate_counter_mask(kvpmu, ctr_base, ctr_mask) < 0) { in kvm_riscv_vcpu_pmu_ctr_start()
509 pmc_index = i + ctr_base; in kvm_riscv_vcpu_pmu_ctr_start()
556 int kvm_riscv_vcpu_pmu_ctr_stop(struct kvm_vcpu *vcpu, unsigned long ctr_base, in kvm_riscv_vcpu_pmu_ctr_stop() argument
568 if (kvm_pmu_validate_counter_mask(kvpmu, ctr_base, ctr_mask) < 0) { in kvm_riscv_vcpu_pmu_ctr_stop()
580 pmc_index = i + ctr_base; in kvm_riscv_vcpu_pmu_ctr_stop()
653 int kvm_riscv_vcpu_pmu_ctr_cfg_match(struct kvm_vcpu *vcpu, unsigned long ctr_base, in kvm_riscv_vcpu_pmu_ctr_cfg_match() argument
680 if (kvm_pmu_validate_counter_mask(kvpmu, ctr_base, ctr_mask) < 0) { in kvm_riscv_vcpu_pmu_ctr_cfg_match()
[all …]
/linux/arch/riscv/include/asm/
H A Dkvm_vcpu_pmu.h83 int kvm_riscv_vcpu_pmu_ctr_start(struct kvm_vcpu *vcpu, unsigned long ctr_base,
86 int kvm_riscv_vcpu_pmu_ctr_stop(struct kvm_vcpu *vcpu, unsigned long ctr_base,
89 int kvm_riscv_vcpu_pmu_ctr_cfg_match(struct kvm_vcpu *vcpu, unsigned long ctr_base,