Home
last modified time | relevance | path

Searched refs:__vcpu_sys_reg (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/virt/kvm/arm/
Dpmu.c40 counter = __vcpu_sys_reg(vcpu, reg); in kvm_pmu_get_counter_value()
64 __vcpu_sys_reg(vcpu, reg) += (s64)val - kvm_pmu_get_counter_value(vcpu, select_idx); in kvm_pmu_set_counter_value()
81 __vcpu_sys_reg(vcpu, reg) = counter; in kvm_pmu_stop_counter()
128 u64 val = __vcpu_sys_reg(vcpu, PMCR_EL0) >> ARMV8_PMU_PMCR_N_SHIFT; in kvm_pmu_valid_counter_mask()
150 if (!(__vcpu_sys_reg(vcpu, PMCR_EL0) & ARMV8_PMU_PMCR_E) || !val) in kvm_pmu_enable_counter()
196 if ((__vcpu_sys_reg(vcpu, PMCR_EL0) & ARMV8_PMU_PMCR_E)) { in kvm_pmu_overflow_status()
197 reg = __vcpu_sys_reg(vcpu, PMOVSSET_EL0); in kvm_pmu_overflow_status()
198 reg &= __vcpu_sys_reg(vcpu, PMCNTENSET_EL0); in kvm_pmu_overflow_status()
199 reg &= __vcpu_sys_reg(vcpu, PMINTENSET_EL1); in kvm_pmu_overflow_status()
298 __vcpu_sys_reg(vcpu, PMOVSSET_EL0) |= BIT(idx); in kvm_pmu_perf_overflow()
[all …]
/Linux-v4.19/arch/arm64/kvm/
Dsys_regs.c120 return __vcpu_sys_reg(vcpu, reg); in vcpu_read_sys_reg()
163 __vcpu_sys_reg(vcpu, reg) = val; in vcpu_write_sys_reg()
629 __vcpu_sys_reg(vcpu, PMCR_EL0) = val; in reset_pmcr()
634 u64 reg = __vcpu_sys_reg(vcpu, PMUSERENR_EL0); in check_pmu_access_disabled()
676 val = __vcpu_sys_reg(vcpu, PMCR_EL0); in access_pmcr()
679 __vcpu_sys_reg(vcpu, PMCR_EL0) = val; in access_pmcr()
683 val = __vcpu_sys_reg(vcpu, PMCR_EL0) in access_pmcr()
701 __vcpu_sys_reg(vcpu, PMSELR_EL0) = p->regval; in access_pmselr()
704 p->regval = __vcpu_sys_reg(vcpu, PMSELR_EL0) in access_pmselr()
737 pmcr = __vcpu_sys_reg(vcpu, PMCR_EL0); in pmu_counter_idx_valid()
[all …]
Dsys_regs.h92 __vcpu_sys_reg(vcpu, r->reg) = 0x1de7ec7edbadc0deULL; in reset_unknown()
99 __vcpu_sys_reg(vcpu, r->reg) = r->val; in reset_val()
Dsys_regs_generic_v8.c47 __vcpu_sys_reg(vcpu, ACTLR_EL1) = read_sysreg(actlr_el1); in reset_actlr()
/Linux-v4.19/arch/arm64/include/asm/
Dkvm_host.h318 #define __vcpu_sys_reg(v,r) ((v)->arch.ctxt.sys_regs[(r)]) macro