Home
last modified time | relevance | path

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

/linux-6.12.1/arch/arm64/include/asm/
Dhardirq.h42 ___hcr = read_sysreg(hcr_el2); \
44 write_sysreg(___hcr | HCR_TGE, hcr_el2); \
85 write_sysreg(___hcr, hcr_el2); \
Dkvm_emulate.h70 return !(vcpu->arch.hcr_el2 & HCR_RW); in vcpu_el1_is_32bit()
82 vcpu->arch.hcr_el2 = HCR_GUEST_FLAGS; in vcpu_reset_hcr()
91 vcpu->arch.hcr_el2 |= HCR_TVM; in vcpu_reset_hcr()
96 return (unsigned long *)&vcpu->arch.hcr_el2; in vcpu_hcr()
101 vcpu->arch.hcr_el2 &= ~HCR_TWE; in vcpu_clear_wfx_traps()
104 vcpu->arch.hcr_el2 &= ~HCR_TWI; in vcpu_clear_wfx_traps()
106 vcpu->arch.hcr_el2 |= HCR_TWI; in vcpu_clear_wfx_traps()
111 vcpu->arch.hcr_el2 |= HCR_TWE; in vcpu_set_wfx_traps()
112 vcpu->arch.hcr_el2 |= HCR_TWI; in vcpu_set_wfx_traps()
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.h178 unsigned long hcr_el2; member
Del2_setup.h36 mrs \tmp, hcr_el2
Dkvm_host.h699 u64 hcr_el2; member
/linux-6.12.1/arch/arm64/kvm/
Dtrace_arm.h344 __field(unsigned long, hcr_el2)
352 __entry->hcr_el2 = __vcpu_sys_reg(vcpu, HCR_EL2);
358 __entry->hcr_el2)
372 __field(unsigned long, hcr_el2)
382 __entry->hcr_el2 = __vcpu_sys_reg(vcpu, HCR_EL2);
389 __entry->hcr_el2)
Darm.c538 vcpu->arch.hcr_el2 &= ~(HCR_API | HCR_APK); in vcpu_set_pauth_traps()
539 vcpu->arch.hcr_el2 |= val; in vcpu_set_pauth_traps()
541 vcpu->arch.hcr_el2 |= (HCR_API | HCR_APK); in vcpu_set_pauth_traps()
549 if (vcpu->arch.hcr_el2 & (HCR_API | HCR_APK)) { in vcpu_set_pauth_traps()
613 vcpu->arch.hcr_el2 &= ~HCR_TWE; in kvm_arch_vcpu_load()
615 vcpu->arch.hcr_el2 |= HCR_TWE; in kvm_arch_vcpu_load()
618 vcpu->arch.hcr_el2 &= ~HCR_TWI; in kvm_arch_vcpu_load()
620 vcpu->arch.hcr_el2 |= HCR_TWI; in kvm_arch_vcpu_load()
2044 params->hcr_el2 = HCR_HOST_NVHE_PROTECTED_FLAGS; in cpu_prepare_hyp_mode()
2046 params->hcr_el2 = HCR_HOST_NVHE_FLAGS; in cpu_prepare_hyp_mode()
[all …]
Dat.c430 config->hcr = read_sysreg(hcr_el2); in __mmu_config_save()
435 write_sysreg(config->hcr, hcr_el2); in __mmu_config_restore()
922 write_sysreg((config.hcr & ~HCR_TGE) | HCR_VM, hcr_el2); in __kvm_at_s1e01_fast()
1001 val = hcr = read_sysreg(hcr_el2); in __kvm_at_s1e2()
1008 write_sysreg(val, hcr_el2); in __kvm_at_s1e2()
1033 write_sysreg(hcr, hcr_el2); in __kvm_at_s1e2()
Dsys_regs.c4669 vcpu->arch.hcr_el2 |= HCR_E2H; in vcpu_set_hcr()
4672 vcpu->arch.hcr_el2 |= HCR_TEA; in vcpu_set_hcr()
4674 vcpu->arch.hcr_el2 |= HCR_TERR; in vcpu_set_hcr()
4678 vcpu->arch.hcr_el2 |= HCR_FWB; in vcpu_set_hcr()
4683 vcpu->arch.hcr_el2 |= HCR_TID4; in vcpu_set_hcr()
4685 vcpu->arch.hcr_el2 |= HCR_TID2; in vcpu_set_hcr()
4688 vcpu->arch.hcr_el2 &= ~HCR_RW; in vcpu_set_hcr()
4691 vcpu->arch.hcr_el2 |= HCR_ATA; in vcpu_set_hcr()
4699 vcpu->arch.hcr_el2 |= HCR_TTLBOS; in vcpu_set_hcr()
Dguest.c821 events->exception.serror_pending = !!(vcpu->arch.hcr_el2 & HCR_VSE); in __kvm_arm_vcpu_get_events()
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dpkvm.c73 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64pfr0()
74 vcpu->arch.hcr_el2 &= ~hcr_clear; in pvm_init_traps_aa64pfr0()
94 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64pfr1()
95 vcpu->arch.hcr_el2 &= ~hcr_clear; in pvm_init_traps_aa64pfr1()
177 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64mmfr1()
193 vcpu->arch.hcr_el2 |= hcr_trap_feat_regs | hcr_trap_impdef; in pvm_init_trap_regs()
196 vcpu->arch.hcr_el2 &= ~(HCR_RES0); in pvm_init_trap_regs()
Dswitch.c43 ___activate_traps(vcpu, vcpu->arch.hcr_el2); in __activate_traps()
108 write_sysreg(this_cpu_ptr(&kvm_init_params)->hcr_el2, hcr_el2); in __deactivate_traps()
Dhyp-main.c108 hyp_vcpu->vcpu.arch.hcr_el2 = host_vcpu->arch.hcr_el2; in flush_hyp_vcpu()
131 host_vcpu->arch.hcr_el2 = hyp_vcpu->vcpu.arch.hcr_el2; in sync_hyp_vcpu()
Dhyp-init.S99 msr hcr_el2, x1
261 msr hcr_el2, x5
Dhost.S125 mrs x0, hcr_el2
127 msr hcr_el2, x0
Dmem_protect.c294 if (params->hcr_el2 & HCR_VM) in __pkvm_prot_finalize()
299 params->hcr_el2 |= HCR_VM; in __pkvm_prot_finalize()
309 write_sysreg(params->hcr_el2, hcr_el2); in __pkvm_prot_finalize()
/linux-6.12.1/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h273 write_sysreg(hcr, hcr_el2); in ___activate_traps()
287 if (vcpu->arch.hcr_el2 & HCR_VSE) { in ___deactivate_traps()
288 vcpu->arch.hcr_el2 &= ~HCR_VSE; in ___deactivate_traps()
289 vcpu->arch.hcr_el2 |= read_sysreg(hcr_el2) & HCR_VSE; in ___deactivate_traps()
410 if (!(read_sysreg(hcr_el2) & HCR_RW)) in kvm_hyp_handle_fpsimd()
428 if (vcpu->arch.hcr_el2 & HCR_TVM) in handle_tx2_tvm()
/linux-6.12.1/arch/arm64/kvm/hyp/vhe/
Dtlb.c64 val = read_sysreg(hcr_el2); in enter_vmid_context()
66 write_sysreg(val, hcr_el2); in enter_vmid_context()
76 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in exit_vmid_context()
Dswitch.c51 u64 hcr = vcpu->arch.hcr_el2; in __compute_hcr()
177 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
445 if (vcpu_has_nv(vcpu) && (read_sysreg(hcr_el2) & HCR_NV)) { in early_exit_filter()
/linux-6.12.1/arch/arm64/kernel/
Dasm-offsets.c129 DEFINE(VCPU_HCR_EL2, offsetof(struct kvm_vcpu, arch.hcr_el2)); in main()
146 DEFINE(NVHE_INIT_HCR_EL2, offsetof(struct kvm_nvhe_init_params, hcr_el2)); in main()
Dhead.S314 msr hcr_el2, x0
326 mrs x0, hcr_el2
Dhyp-stub.S100 msr hcr_el2, x0
/linux-6.12.1/arch/arm64/kvm/hyp/
Dvgic-v3-sr.c447 sysreg_clear_set(hcr_el2, 0, HCR_AMO | HCR_FMO | HCR_IMO); in __vgic_v3_get_gic_config()
456 sysreg_clear_set(hcr_el2, HCR_AMO | HCR_FMO | HCR_IMO, 0); in __vgic_v3_get_gic_config()