Home
last modified time | relevance | path

Searched refs:vcpu_cpsr (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/arch/arm64/kvm/
Ddebug.c50 (*vcpu_cpsr(vcpu) & DBG_SPSR_SS); in save_guest_debug_regs()
63 *vcpu_cpsr(vcpu) |= DBG_SPSR_SS; in restore_guest_debug_regs()
65 *vcpu_cpsr(vcpu) &= ~DBG_SPSR_SS; in restore_guest_debug_regs()
211 *vcpu_cpsr(vcpu) |= DBG_SPSR_SS; in kvm_arm_setup_debug()
213 *vcpu_cpsr(vcpu) &= ~DBG_SPSR_SS; in kvm_arm_setup_debug()
224 trace_kvm_arm_set_dreg32("SPSR_EL2", *vcpu_cpsr(vcpu)); in kvm_arm_setup_debug()
289 if (!(*vcpu_cpsr(vcpu) & DBG_SPSR_SS)) in kvm_arm_clear_debug()
Dinject_fault.c32 switch(*vcpu_cpsr(vcpu) & PSR_MODE_MASK) { in pend_sync_exception()
59 unsigned long cpsr = *vcpu_cpsr(vcpu); in inject_abt64()
Dtrace_arm.h354 __entry->spsr_el2 = *vcpu_cpsr(vcpu);
356 __entry->source_mode = *vcpu_cpsr(vcpu) & (PSR_MODE_MASK | PSR_MODE32_BIT);
Dguest.c276 if (*vcpu_cpsr(vcpu) & PSR_MODE32_BIT) { in set_core_reg()
279 switch (*vcpu_cpsr(vcpu)) { in set_core_reg()
Demulate-nested.c1893 spsr = *vcpu_cpsr(vcpu); in kvm_check_illegal_exception_return()
1928 *vcpu_cpsr(vcpu) = spsr; in kvm_emulate_nested_eret()
1945 *vcpu_cpsr(vcpu) = spsr; in kvm_emulate_nested_eret()
1992 pstate = *vcpu_cpsr(vcpu); in kvm_inject_nested()
Dsys_regs.c2856 cp, *vcpu_pc(vcpu), *vcpu_cpsr(vcpu)); in unhandled_cp_access()
3118 *vcpu_pc(vcpu), *vcpu_cpsr(vcpu)); in emulate_sys_reg()
/Linux-v6.6/arch/arm64/kvm/hyp/
Daarch32.c62 cpsr = *vcpu_cpsr(vcpu); in kvm_condition_valid32()
99 unsigned long cpsr = *vcpu_cpsr(vcpu); in kvm_adjust_itstate()
119 *vcpu_cpsr(vcpu) = cpsr; in kvm_adjust_itstate()
131 is_thumb = !!(*vcpu_cpsr(vcpu) & PSR_AA32_T_BIT); in kvm_skip_instr32()
Dexception.c97 mode = *vcpu_cpsr(vcpu) & (PSR_MODE_MASK | PSR_MODE32_BIT); in enter_exception64()
126 old = *vcpu_cpsr(vcpu); in enter_exception64()
170 *vcpu_cpsr(vcpu) = new; in enter_exception64()
197 old = *vcpu_cpsr(vcpu); in get_except32_cpsr()
288 unsigned long spsr = *vcpu_cpsr(vcpu); in enter_exception32()
293 *vcpu_cpsr(vcpu) = get_except32_cpsr(vcpu, mode); in enter_exception32()
/Linux-v6.6/arch/arm64/include/asm/
Dkvm_emulate.h152 static __always_inline unsigned long *vcpu_cpsr(const struct kvm_vcpu *vcpu) in vcpu_cpsr() function
159 return !!(*vcpu_cpsr(vcpu) & PSR_MODE32_BIT); in vcpu_mode_is_32bit()
172 *vcpu_cpsr(vcpu) |= PSR_AA32_T_BIT; in vcpu_set_thumb()
286 mode = *vcpu_cpsr(vcpu) & PSR_AA32_MODE_MASK; in vcpu_mode_priv()
290 mode = *vcpu_cpsr(vcpu) & PSR_MODE_MASK; in vcpu_mode_priv()
474 *vcpu_cpsr(vcpu) |= PSR_AA32_E_BIT; in kvm_vcpu_set_be()
485 return !!(*vcpu_cpsr(vcpu) & PSR_AA32_E_BIT); in kvm_vcpu_is_be()
/Linux-v6.6/arch/arm64/kvm/hyp/include/hyp/
Dadjust_pc.h22 *vcpu_cpsr(vcpu) &= ~PSR_BTYPE_MASK; in kvm_skip_instr()
26 *vcpu_cpsr(vcpu) &= ~DBG_SPSR_SS; in kvm_skip_instr()
Dswitch.h633 *vcpu_cpsr(vcpu) & DBG_SPSR_SS && in synchronize_vcpu_pstate()
635 write_sysreg_el2(*vcpu_cpsr(vcpu), SYS_SPSR); in synchronize_vcpu_pstate()
/Linux-v6.6/arch/arm64/kvm/hyp/vhe/
Dswitch.c187 u64 mode = *vcpu_cpsr(vcpu) & (PSR_MODE_MASK | PSR_MODE32_BIT); in early_exit_filter()
198 *vcpu_cpsr(vcpu) &= ~(PSR_MODE_MASK | PSR_MODE32_BIT); in early_exit_filter()
199 *vcpu_cpsr(vcpu) |= mode; in early_exit_filter()
/Linux-v6.6/arch/arm64/kvm/hyp/nvhe/
Dsys_regs.c40 *vcpu_cpsr(vcpu) = read_sysreg_el2(SYS_SPSR); in inject_undef64()
49 write_sysreg_el2(*vcpu_cpsr(vcpu), SYS_SPSR); in inject_undef64()