Home
last modified time | relevance | path

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

/linux-6.1.9/arch/arm64/include/asm/
Dkvm_emulate.h50 return !(vcpu->arch.hcr_el2 & HCR_RW); in vcpu_el1_is_32bit()
66 vcpu->arch.hcr_el2 = HCR_GUEST_FLAGS; in vcpu_reset_hcr()
68 vcpu->arch.hcr_el2 |= HCR_E2H; in vcpu_reset_hcr()
71 vcpu->arch.hcr_el2 |= HCR_TEA; in vcpu_reset_hcr()
73 vcpu->arch.hcr_el2 |= HCR_TERR; in vcpu_reset_hcr()
77 vcpu->arch.hcr_el2 |= HCR_FWB; in vcpu_reset_hcr()
85 vcpu->arch.hcr_el2 |= HCR_TVM; in vcpu_reset_hcr()
89 vcpu->arch.hcr_el2 &= ~HCR_RW; in vcpu_reset_hcr()
93 vcpu->arch.hcr_el2 |= HCR_TID2; in vcpu_reset_hcr()
96 vcpu->arch.hcr_el2 |= HCR_ATA; in vcpu_reset_hcr()
[all …]
Dhardirq.h42 ___hcr = read_sysreg(hcr_el2); \
44 write_sysreg(___hcr | HCR_TGE, hcr_el2); \
85 write_sysreg(___hcr, hcr_el2); \
Dkvm_mte.h18 mrs \reg1, hcr_el2
38 mrs \reg1, hcr_el2
Dkvm_ptrauth.h73 mrs \reg1, hcr_el2
85 mrs \reg1, hcr_el2
Dkvm_asm.h174 unsigned long hcr_el2; member
Dkvm_host.h318 u64 hcr_el2; member
/linux-6.1.9/arch/arm64/kvm/hyp/nvhe/
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()
Dhyp-init.S96 msr hcr_el2, x1
230 msr hcr_el2, x5
Dhost.S91 mrs x0, hcr_el2
93 msr hcr_el2, x0
Dswitch.c99 write_sysreg(this_cpu_ptr(&kvm_init_params)->hcr_el2, hcr_el2); in __deactivate_traps()
Dmem_protect.c151 if (params->hcr_el2 & HCR_VM) in __pkvm_prot_finalize()
156 params->hcr_el2 |= HCR_VM; in __pkvm_prot_finalize()
159 write_sysreg(params->hcr_el2, hcr_el2); in __pkvm_prot_finalize()
/linux-6.1.9/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h123 u64 hcr = vcpu->arch.hcr_el2; in ___activate_traps()
128 write_sysreg(hcr, hcr_el2); in ___activate_traps()
142 if (vcpu->arch.hcr_el2 & HCR_VSE) { in ___deactivate_traps()
143 vcpu->arch.hcr_el2 &= ~HCR_VSE; in ___deactivate_traps()
144 vcpu->arch.hcr_el2 |= read_sysreg(hcr_el2) & HCR_VSE; in ___deactivate_traps()
212 if (!(read_sysreg(hcr_el2) & HCR_RW)) in kvm_hyp_handle_fpsimd()
230 if (vcpu->arch.hcr_el2 & HCR_TVM) in handle_tx2_tvm()
322 val = read_sysreg(hcr_el2); in kvm_hyp_handle_ptrauth()
324 write_sysreg(val, hcr_el2); in kvm_hyp_handle_ptrauth()
/linux-6.1.9/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.c78 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
/linux-6.1.9/arch/arm64/kernel/
Dasm-offsets.c114 DEFINE(VCPU_HCR_EL2, offsetof(struct kvm_vcpu, arch.hcr_el2)); in main()
130 DEFINE(NVHE_INIT_HCR_EL2, offsetof(struct kvm_nvhe_init_params, hcr_el2)); in main()
Dhyp-stub.S167 msr hcr_el2, x0
Dhead.S507 msr hcr_el2, x0
524 mrs x0, hcr_el2
/linux-6.1.9/arch/arm64/kvm/hyp/
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-6.1.9/arch/arm64/kvm/
Darm.c1558 params->hcr_el2 = HCR_HOST_NVHE_PROTECTED_FLAGS; in cpu_prepare_hyp_mode()
1560 params->hcr_el2 = HCR_HOST_NVHE_FLAGS; in cpu_prepare_hyp_mode()
Dguest.c806 events->exception.serror_pending = !!(vcpu->arch.hcr_el2 & HCR_VSE); in __kvm_arm_vcpu_get_events()