Home
last modified time | relevance | path

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

/linux-6.12.1/arch/arm64/kvm/
Dpmu-emul.c120 counter = __vcpu_sys_reg(vcpu, reg); in kvm_pmu_get_pmc_value()
166 val = __vcpu_sys_reg(vcpu, reg) & GENMASK(63, 32); in kvm_pmu_set_pmc_value()
170 __vcpu_sys_reg(vcpu, reg) = val; in kvm_pmu_set_pmc_value()
221 __vcpu_sys_reg(vcpu, reg) = val; in kvm_pmu_stop_counter()
344 reg = __vcpu_sys_reg(vcpu, PMOVSSET_EL0); in kvm_pmu_overflow_status()
345 reg &= __vcpu_sys_reg(vcpu, PMCNTENSET_EL0); in kvm_pmu_overflow_status()
346 reg &= __vcpu_sys_reg(vcpu, PMINTENSET_EL1); in kvm_pmu_overflow_status()
449 mask &= __vcpu_sys_reg(vcpu, PMCNTENSET_EL0); in kvm_pmu_counter_increment()
456 type = __vcpu_sys_reg(vcpu, counter_index_to_evtreg(i)); in kvm_pmu_counter_increment()
462 reg = __vcpu_sys_reg(vcpu, counter_index_to_reg(i)) + 1; in kvm_pmu_counter_increment()
[all …]
Dpauth.c40 mod = __vcpu_sys_reg(vcpu, SP_EL2); in compute_pac()
170 ikey.lo = __vcpu_sys_reg(vcpu, APIBKEYLO_EL1); in kvm_auth_eretax()
171 ikey.hi = __vcpu_sys_reg(vcpu, APIBKEYHI_EL1); in kvm_auth_eretax()
176 ikey.lo = __vcpu_sys_reg(vcpu, APIAKEYLO_EL1); in kvm_auth_eretax()
177 ikey.hi = __vcpu_sys_reg(vcpu, APIAKEYHI_EL1); in kvm_auth_eretax()
Darch_timer.c72 return __vcpu_sys_reg(vcpu, CNTV_CTL_EL0); in timer_get_ctl()
74 return __vcpu_sys_reg(vcpu, CNTP_CTL_EL0); in timer_get_ctl()
76 return __vcpu_sys_reg(vcpu, CNTHV_CTL_EL2); in timer_get_ctl()
78 return __vcpu_sys_reg(vcpu, CNTHP_CTL_EL2); in timer_get_ctl()
91 return __vcpu_sys_reg(vcpu, CNTV_CVAL_EL0); in timer_get_cval()
93 return __vcpu_sys_reg(vcpu, CNTP_CVAL_EL0); in timer_get_cval()
95 return __vcpu_sys_reg(vcpu, CNTHV_CVAL_EL2); in timer_get_cval()
97 return __vcpu_sys_reg(vcpu, CNTHP_CVAL_EL2); in timer_get_cval()
125 __vcpu_sys_reg(vcpu, CNTV_CTL_EL0) = ctl; in timer_set_ctl()
128 __vcpu_sys_reg(vcpu, CNTP_CTL_EL0) = ctl; in timer_set_ctl()
[all …]
Dfpsimd.c138 fp_state.svcr = &__vcpu_sys_reg(vcpu, SVCR); in kvm_arch_vcpu_ctxsync_fp()
139 fp_state.fpmr = &__vcpu_sys_reg(vcpu, FPMR); in kvm_arch_vcpu_ctxsync_fp()
188 __vcpu_sys_reg(vcpu, vcpu_sve_zcr_elx(vcpu)) = zcr; in kvm_arch_vcpu_put_fp()
Dsys_regs.c179 return __vcpu_sys_reg(vcpu, reg); in vcpu_read_sys_reg()
199 __vcpu_sys_reg(vcpu, reg) = val; in vcpu_write_sys_reg()
221 __vcpu_sys_reg(vcpu, reg) = val; in vcpu_write_sys_reg()
539 oslsr = __vcpu_sys_reg(vcpu, OSLSR_EL1) & ~OSLSR_EL1_OSLK; in trap_oslar_el1()
543 __vcpu_sys_reg(vcpu, OSLSR_EL1) = oslsr; in trap_oslar_el1()
554 p->regval = __vcpu_sys_reg(vcpu, r->reg); in trap_oslsr_el1()
568 __vcpu_sys_reg(vcpu, rd->reg) = val; in set_oslsr_el1()
862 __vcpu_sys_reg(vcpu, r->reg) &= mask; in reset_pmu_reg()
864 return __vcpu_sys_reg(vcpu, r->reg); in reset_pmu_reg()
870 __vcpu_sys_reg(vcpu, r->reg) &= GENMASK(31, 0); in reset_pmevcntr()
[all …]
Dsys_regs.h140 __vcpu_sys_reg(vcpu, r->reg) = 0x1de7ec7edbadc0deULL; in reset_unknown()
141 return __vcpu_sys_reg(vcpu, r->reg); in reset_unknown()
148 __vcpu_sys_reg(vcpu, r->reg) = r->val; in reset_val()
149 return __vcpu_sys_reg(vcpu, r->reg); in reset_val()
Dtrace_arm.h352 __entry->hcr_el2 = __vcpu_sys_reg(vcpu, HCR_EL2);
382 __entry->hcr_el2 = __vcpu_sys_reg(vcpu, HCR_EL2);
Demulate-nested.c464 u64 val = __vcpu_sys_reg(vcpu, CNTHCTL_EL2); in get_sanitized_cnthctl()
490 u64 val = __vcpu_sys_reg(vcpu, CPTR_EL2); in check_cptr_tta()
2075 val = __vcpu_sys_reg(vcpu, tb->index); in get_behaviour()
2219 val = __vcpu_sys_reg(vcpu, HFGRTR_EL2); in triage_sysreg_trap()
2221 val = __vcpu_sys_reg(vcpu, HFGWTR_EL2); in triage_sysreg_trap()
2226 val = __vcpu_sys_reg(vcpu, HDFGRTR_EL2); in triage_sysreg_trap()
2228 val = __vcpu_sys_reg(vcpu, HDFGWTR_EL2); in triage_sysreg_trap()
2232 val = __vcpu_sys_reg(vcpu, HAFGRTR_EL2); in triage_sysreg_trap()
2236 val = __vcpu_sys_reg(vcpu, HFGITR_EL2); in triage_sysreg_trap()
2244 tmp = __vcpu_sys_reg(vcpu, HCRX_EL2); in triage_sysreg_trap()
[all …]
Dat.c97 hcr = __vcpu_sys_reg(vcpu, HCR_EL2); in setup_s1_walk()
619 if (__vcpu_sys_reg(vcpu, HCR_EL2) & HCR_FWB) { in compute_par_s12()
666 if ((__vcpu_sys_reg(vcpu, HCR_EL2) & HCR_CD) && in compute_par_s12()
696 (__vcpu_sys_reg(vcpu, HCR_EL2) & HCR_DC)) { in compute_par_s1()
Darm.c536 val = __vcpu_sys_reg(vcpu, HCR_EL2); in vcpu_set_pauth_traps()
/linux-6.12.1/arch/arm64/kvm/hyp/vhe/
Dswitch.c65 return hcr | (__vcpu_sys_reg(vcpu, HCR_EL2) & ~NV_HCR_GUEST_EXCLUDE); in __compute_hcr()
155 val = __vcpu_sys_reg(vcpu, CNTP_CVAL_EL0); in __activate_traps()
157 val = __vcpu_sys_reg(vcpu, CNTHP_CVAL_EL2); in __activate_traps()
191 __vcpu_sys_reg(vcpu, CNTP_CVAL_EL0) = val; in __deactivate_traps()
193 __vcpu_sys_reg(vcpu, CNTHP_CVAL_EL2) = val; in __deactivate_traps()
274 if ((__vcpu_sys_reg(vcpu, HCR_EL2) & HCR_NV) || in kvm_hyp_handle_eret()
275 (__vcpu_sys_reg(vcpu, HFGITR_EL2) & HFGITR_EL2_ERET)) in kvm_hyp_handle_eret()
372 vcpu_set_reg(vcpu, rt, __vcpu_sys_reg(vcpu, CPTR_EL2)); in kvm_hyp_handle_cpacr_el1()
/linux-6.12.1/arch/arm64/kvm/hyp/include/hyp/
Dsysreg-sr.h282 __vcpu_sys_reg(vcpu, DACR32_EL2) = read_sysreg(dacr32_el2); in __sysreg32_save_state()
283 __vcpu_sys_reg(vcpu, IFSR32_EL2) = read_sysreg(ifsr32_el2); in __sysreg32_save_state()
286 __vcpu_sys_reg(vcpu, DBGVCR32_EL2) = read_sysreg(dbgvcr32_el2); in __sysreg32_save_state()
299 write_sysreg(__vcpu_sys_reg(vcpu, DACR32_EL2), dacr32_el2); in __sysreg32_restore_state()
300 write_sysreg(__vcpu_sys_reg(vcpu, IFSR32_EL2), ifsr32_el2); in __sysreg32_restore_state()
303 write_sysreg(__vcpu_sys_reg(vcpu, DBGVCR32_EL2), dbgvcr32_el2); in __sysreg32_restore_state()
Dswitch.h48 __vcpu_sys_reg(vcpu, FPEXC32_EL2) = read_sysreg(fpexc32_el2); in __fpsimd_save_fpexc32()
71 hfg = __vcpu_sys_reg(vcpu, reg) & ~__ ## reg ## _RES0; \
331 sve_cond_update_zcr_vq(__vcpu_sys_reg(vcpu, ZCR_EL2), SYS_ZCR_EL2); in __hyp_sve_restore_guest()
333 write_sysreg_el1(__vcpu_sys_reg(vcpu, vcpu_sve_zcr_elx(vcpu)), SYS_ZCR); in __hyp_sve_restore_guest()
407 write_sysreg_s(__vcpu_sys_reg(vcpu, FPMR), SYS_FPMR); in kvm_hyp_handle_fpsimd()
411 write_sysreg(__vcpu_sys_reg(vcpu, FPEXC32_EL2), fpexc32_el2); in kvm_hyp_handle_fpsimd()
496 val = __vcpu_sys_reg(vcpu, CNTHCTL_EL2); in kvm_hyp_handle_cntpct()
/linux-6.12.1/arch/arm64/kvm/hyp/
Dexception.c32 return __vcpu_sys_reg(vcpu, reg); in __vcpu_read_sys_reg()
40 __vcpu_sys_reg(vcpu, reg) = val; in __vcpu_write_sys_reg()
54 __vcpu_sys_reg(vcpu, SPSR_EL1) = val; in __vcpu_write_spsr()
Dvgic-v3-sr.c1053 ich_hcr = __vcpu_sys_reg(vcpu, ICH_HCR_EL2); in __vgic_v3_check_trap_forwarding()
1058 (__vcpu_sys_reg(vcpu, HFGRTR_EL2) & HFGxTR_EL2_ICC_IGRPENn_EL1)) in __vgic_v3_check_trap_forwarding()
1062 (__vcpu_sys_reg(vcpu, HFGWTR_EL2) & HFGxTR_EL2_ICC_IGRPENn_EL1)) in __vgic_v3_check_trap_forwarding()
1079 (__vcpu_sys_reg(vcpu, HFGRTR_EL2) & HFGxTR_EL2_ICC_IGRPENn_EL1)) in __vgic_v3_check_trap_forwarding()
1083 (__vcpu_sys_reg(vcpu, HFGWTR_EL2) & HFGxTR_EL2_ICC_IGRPENn_EL1)) in __vgic_v3_check_trap_forwarding()
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dhyp-main.c28 __vcpu_sys_reg(vcpu, ZCR_EL1) = read_sysreg_el1(SYS_ZCR); in __hyp_sve_save_guest()
81 __vcpu_sys_reg(vcpu, FPMR) = read_sysreg_s(SYS_FPMR); in fpsimd_sve_sync()
/linux-6.12.1/arch/arm64/include/asm/
Dkvm_emulate.h447 return __vcpu_sys_reg(vcpu, MPIDR_EL1) & MPIDR_HWID_BITMASK; in kvm_vcpu_get_mpidr_aff()
657 u64 cptr = __vcpu_sys_reg(vcpu, CPTR_EL2); in vcpu_sanitised_cptr_el2()
Dkvm_host.h1006 #define __vcpu_sys_reg(v,r) \ macro
1325 (!!(__vcpu_sys_reg(vcpu, OSLSR_EL1) & OSLSR_EL1_OSLK))