Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dkvm_emulate.h41 return !(vcpu->arch.hcr_el2 & HCR_RW); in vcpu_el1_is_32bit()
46 vcpu->arch.hcr_el2 = HCR_GUEST_FLAGS; in vcpu_reset_hcr()
48 vcpu->arch.hcr_el2 |= HCR_E2H; in vcpu_reset_hcr()
51 vcpu->arch.hcr_el2 |= HCR_TEA; in vcpu_reset_hcr()
53 vcpu->arch.hcr_el2 |= HCR_TERR; in vcpu_reset_hcr()
57 vcpu->arch.hcr_el2 |= HCR_FWB; in vcpu_reset_hcr()
65 vcpu->arch.hcr_el2 |= HCR_TVM; in vcpu_reset_hcr()
69 vcpu->arch.hcr_el2 &= ~HCR_RW; in vcpu_reset_hcr()
77 vcpu->arch.hcr_el2 |= HCR_TID3; in vcpu_reset_hcr()
81 vcpu->arch.hcr_el2 |= HCR_TID2; in vcpu_reset_hcr()
[all …]
Dhardirq.h45 ___hcr = read_sysreg(hcr_el2); \
47 write_sysreg(___hcr | HCR_TGE, hcr_el2); \
88 write_sysreg(___hcr, hcr_el2); \
Dkvm_ptrauth.h73 mrs \reg1, hcr_el2
85 mrs \reg1, hcr_el2
Dkvm_host.h293 u64 hcr_el2; member
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h104 u64 hcr = vcpu->arch.hcr_el2; in ___activate_traps()
109 write_sysreg(hcr, hcr_el2); in ___activate_traps()
123 if (vcpu->arch.hcr_el2 & HCR_VSE) { in ___deactivate_traps()
124 vcpu->arch.hcr_el2 &= ~HCR_VSE; in ___deactivate_traps()
125 vcpu->arch.hcr_el2 |= read_sysreg(hcr_el2) & HCR_VSE; in ___deactivate_traps()
276 if (!(read_sysreg(hcr_el2) & HCR_RW)) in __hyp_handle_fpsimd()
294 if (vcpu->arch.hcr_el2 & HCR_TVM) in handle_tx2_tvm()
395 val = read_sysreg(hcr_el2); in __hyp_handle_ptrauth()
397 write_sysreg(val, hcr_el2); in __hyp_handle_ptrauth()
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/vhe/
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()
Dswitch.c79 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/nvhe/
Dswitch.c99 write_sysreg(HCR_HOST_NVHE_FLAGS, hcr_el2); in __deactivate_traps()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dasm-offsets.c106 DEFINE(VCPU_HCR_EL2, offsetof(struct kvm_vcpu, arch.hcr_el2)); in main()
Dhead.S523 msr hcr_el2, x0
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dguest.c764 events->exception.serror_pending = !!(vcpu->arch.hcr_el2 & HCR_VSE); in __kvm_arm_vcpu_get_events()