Home
last modified time | relevance | path

Searched refs:hcr_el2 (Results 1 – 20 of 20) sorted by relevance

/linux/arch/arm64/include/asm/
A Dkvm_emulate.h53 vcpu->arch.hcr_el2 |= HCR_E2H; in vcpu_reset_hcr()
56 vcpu->arch.hcr_el2 |= HCR_TEA; in vcpu_reset_hcr()
58 vcpu->arch.hcr_el2 |= HCR_TERR; in vcpu_reset_hcr()
62 vcpu->arch.hcr_el2 |= HCR_FWB; in vcpu_reset_hcr()
70 vcpu->arch.hcr_el2 |= HCR_TVM; in vcpu_reset_hcr()
74 vcpu->arch.hcr_el2 &= ~HCR_RW; in vcpu_reset_hcr()
89 vcpu->arch.hcr_el2 |= HCR_ATA; in vcpu_reset_hcr()
99 vcpu->arch.hcr_el2 &= ~HCR_TWE; in vcpu_clear_wfx_traps()
104 vcpu->arch.hcr_el2 |= HCR_TWI; in vcpu_clear_wfx_traps()
109 vcpu->arch.hcr_el2 |= HCR_TWE; in vcpu_set_wfx_traps()
[all …]
A Dhardirq.h42 ___hcr = read_sysreg(hcr_el2); \
44 write_sysreg(___hcr | HCR_TGE, hcr_el2); \
85 write_sysreg(___hcr, hcr_el2); \
A Dkvm_mte.h18 mrs \reg1, hcr_el2
38 mrs \reg1, hcr_el2
A Dkvm_ptrauth.h73 mrs \reg1, hcr_el2
85 mrs \reg1, hcr_el2
A Dkvm_asm.h172 unsigned long hcr_el2; member
A Dkvm_host.h291 u64 hcr_el2; member
/linux/arch/arm64/kvm/hyp/nvhe/
A Dpkvm.c54 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64pfr0()
55 vcpu->arch.hcr_el2 &= ~hcr_clear; in pvm_init_traps_aa64pfr0()
74 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64pfr1()
75 vcpu->arch.hcr_el2 &= ~hcr_clear; in pvm_init_traps_aa64pfr1()
149 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64mmfr1()
165 vcpu->arch.hcr_el2 |= hcr_trap_feat_regs | hcr_trap_impdef; in pvm_init_trap_regs()
168 vcpu->arch.hcr_el2 &= ~(HCR_RES0); in pvm_init_trap_regs()
A Dmem_protect.c131 if (params->hcr_el2 & HCR_VM) in __pkvm_prot_finalize()
136 params->hcr_el2 |= HCR_VM; in __pkvm_prot_finalize()
139 write_sysreg(params->hcr_el2, hcr_el2); in __pkvm_prot_finalize()
A Dhyp-init.S96 msr hcr_el2, x1
230 msr hcr_el2, x5
A Dhost.S91 mrs x0, hcr_el2
93 msr hcr_el2, x0
A Dswitch.c96 write_sysreg(this_cpu_ptr(&kvm_init_params)->hcr_el2, hcr_el2); in __deactivate_traps()
/linux/arch/arm64/kvm/hyp/include/hyp/
A Dswitch.h116 u64 hcr = vcpu->arch.hcr_el2; in ___activate_traps()
121 write_sysreg(hcr, hcr_el2); in ___activate_traps()
135 if (vcpu->arch.hcr_el2 & HCR_VSE) { in ___deactivate_traps()
136 vcpu->arch.hcr_el2 &= ~HCR_VSE; in ___deactivate_traps()
137 vcpu->arch.hcr_el2 |= read_sysreg(hcr_el2) & HCR_VSE; in ___deactivate_traps()
224 if (!(read_sysreg(hcr_el2) & HCR_RW)) in kvm_hyp_handle_fpsimd()
242 if (vcpu->arch.hcr_el2 & HCR_TVM) in handle_tx2_tvm()
334 val = read_sysreg(hcr_el2); in kvm_hyp_handle_ptrauth()
336 write_sysreg(val, hcr_el2); in kvm_hyp_handle_ptrauth()
/linux/arch/arm64/kvm/hyp/vhe/
A Dtlb.c57 val = read_sysreg(hcr_el2); in __tlb_switch_to_guest()
59 write_sysreg(val, hcr_el2); in __tlb_switch_to_guest()
70 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __tlb_switch_to_host()
A Dswitch.c75 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
/linux/arch/arm64/kernel/
A Dasm-offsets.c115 DEFINE(VCPU_HCR_EL2, offsetof(struct kvm_vcpu, arch.hcr_el2)); in main()
131 DEFINE(NVHE_INIT_HCR_EL2, offsetof(struct kvm_nvhe_init_params, hcr_el2)); in main()
A Dhyp-stub.S103 msr hcr_el2, x0
A Dhead.S513 msr hcr_el2, x0
528 mrs x0, hcr_el2
/linux/arch/arm64/kvm/hyp/
A Dvgic-v3-sr.c437 sysreg_clear_set(hcr_el2, 0, HCR_AMO | HCR_FMO | HCR_IMO); in __vgic_v3_get_gic_config()
446 sysreg_clear_set(hcr_el2, HCR_AMO | HCR_FMO | HCR_IMO, 0); in __vgic_v3_get_gic_config()
/linux/arch/arm64/kvm/
A Darm.c1505 params->hcr_el2 = HCR_HOST_NVHE_PROTECTED_FLAGS; in cpu_prepare_hyp_mode()
1507 params->hcr_el2 = HCR_HOST_NVHE_FLAGS; in cpu_prepare_hyp_mode()
A Dguest.c802 events->exception.serror_pending = !!(vcpu->arch.hcr_el2 & HCR_VSE); in __kvm_arm_vcpu_get_events()

Completed in 27 milliseconds