/linux-6.12.1/arch/arm64/include/asm/ |
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_emulate.h | 70 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()
|
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 | 178 unsigned long hcr_el2; member
|
D | el2_setup.h | 36 mrs \tmp, hcr_el2
|
D | kvm_host.h | 699 u64 hcr_el2; member
|
/linux-6.12.1/arch/arm64/kvm/ |
D | trace_arm.h | 344 __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)
|
D | arm.c | 538 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 …]
|
D | at.c | 430 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()
|
D | sys_regs.c | 4669 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()
|
D | guest.c | 821 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/ |
D | pkvm.c | 73 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()
|
D | switch.c | 43 ___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()
|
D | hyp-main.c | 108 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()
|
D | hyp-init.S | 99 msr hcr_el2, x1 261 msr hcr_el2, x5
|
D | host.S | 125 mrs x0, hcr_el2 127 msr hcr_el2, x0
|
D | mem_protect.c | 294 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/ |
D | switch.h | 273 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/ |
D | tlb.c | 64 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()
|
D | switch.c | 51 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/ |
D | asm-offsets.c | 129 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()
|
D | head.S | 314 msr hcr_el2, x0 326 mrs x0, hcr_el2
|
D | hyp-stub.S | 100 msr hcr_el2, x0
|
/linux-6.12.1/arch/arm64/kvm/hyp/ |
D | vgic-v3-sr.c | 447 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()
|