Searched refs:hcr_el2 (Results 1 – 20 of 20) sorted by relevance
/linux/arch/arm64/include/asm/ |
A D | kvm_emulate.h | 53 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 D | hardirq.h | 42 ___hcr = read_sysreg(hcr_el2); \ 44 write_sysreg(___hcr | HCR_TGE, hcr_el2); \ 85 write_sysreg(___hcr, hcr_el2); \
|
A D | kvm_mte.h | 18 mrs \reg1, hcr_el2 38 mrs \reg1, hcr_el2
|
A D | kvm_ptrauth.h | 73 mrs \reg1, hcr_el2 85 mrs \reg1, hcr_el2
|
A D | kvm_asm.h | 172 unsigned long hcr_el2; member
|
A D | kvm_host.h | 291 u64 hcr_el2; member
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
A 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()
|
A D | mem_protect.c | 131 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 D | hyp-init.S | 96 msr hcr_el2, x1 230 msr hcr_el2, x5
|
A D | host.S | 91 mrs x0, hcr_el2 93 msr hcr_el2, x0
|
A D | switch.c | 96 write_sysreg(this_cpu_ptr(&kvm_init_params)->hcr_el2, hcr_el2); in __deactivate_traps()
|
/linux/arch/arm64/kvm/hyp/include/hyp/ |
A D | switch.h | 116 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 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()
|
A D | switch.c | 75 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
|
/linux/arch/arm64/kernel/ |
A D | asm-offsets.c | 115 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 D | hyp-stub.S | 103 msr hcr_el2, x0
|
A D | head.S | 513 msr hcr_el2, x0 528 mrs x0, hcr_el2
|
/linux/arch/arm64/kvm/hyp/ |
A 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/arch/arm64/kvm/ |
A D | arm.c | 1505 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 D | guest.c | 802 events->exception.serror_pending = !!(vcpu->arch.hcr_el2 & HCR_VSE); in __kvm_arm_vcpu_get_events()
|
Completed in 27 milliseconds