Searched refs:hcr_el2 (Results 1 – 20 of 20) sorted by relevance
/linux-6.1.9/arch/arm64/include/asm/ |
D | kvm_emulate.h | 50 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 …]
|
D | hardirq.h | 42 ___hcr = read_sysreg(hcr_el2); \ 44 write_sysreg(___hcr | HCR_TGE, hcr_el2); \ 85 write_sysreg(___hcr, hcr_el2); \
|
D | kvm_mte.h | 18 mrs \reg1, hcr_el2 38 mrs \reg1, hcr_el2
|
D | kvm_ptrauth.h | 73 mrs \reg1, hcr_el2 85 mrs \reg1, hcr_el2
|
D | kvm_asm.h | 174 unsigned long hcr_el2; member
|
D | kvm_host.h | 318 u64 hcr_el2; member
|
/linux-6.1.9/arch/arm64/kvm/hyp/nvhe/ |
D | pkvm.c | 54 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()
|
D | hyp-init.S | 96 msr hcr_el2, x1 230 msr hcr_el2, x5
|
D | host.S | 91 mrs x0, hcr_el2 93 msr hcr_el2, x0
|
D | switch.c | 99 write_sysreg(this_cpu_ptr(&kvm_init_params)->hcr_el2, hcr_el2); in __deactivate_traps()
|
D | mem_protect.c | 151 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/ |
D | switch.h | 123 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/ |
D | tlb.c | 57 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()
|
D | switch.c | 78 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | asm-offsets.c | 114 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()
|
D | hyp-stub.S | 167 msr hcr_el2, x0
|
D | head.S | 507 msr hcr_el2, x0 524 mrs x0, hcr_el2
|
/linux-6.1.9/arch/arm64/kvm/hyp/ |
D | vgic-v3-sr.c | 437 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/ |
D | arm.c | 1558 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()
|
D | guest.c | 806 events->exception.serror_pending = !!(vcpu->arch.hcr_el2 & HCR_VSE); in __kvm_arm_vcpu_get_events()
|