Home
last modified time | relevance | path

Searched refs:cptr_el2 (Results 1 – 4 of 4) sorted by relevance

/linux/arch/arm64/include/asm/
H A Dkvm_nested.h34 static inline u64 translate_cptr_el2_to_cpacr_el1(u64 cptr_el2) in translate_cptr_el2_to_cpacr_el1() argument
38 if (cptr_el2 & CPTR_EL2_TTA) in translate_cptr_el2_to_cpacr_el1()
40 if (!(cptr_el2 & CPTR_EL2_TFP)) in translate_cptr_el2_to_cpacr_el1()
42 if (!(cptr_el2 & CPTR_EL2_TZ)) in translate_cptr_el2_to_cpacr_el1()
45 cpacr_el1 |= cptr_el2 & (CPTR_EL2_TCPAC | CPTR_EL2_TAM); in translate_cptr_el2_to_cpacr_el1()
H A Del2_setup.h162 msr cptr_el2, x0 // Disable copro. traps to EL2
340 mrs x0, cptr_el2 // Disable SVE traps
342 msr cptr_el2, x0
361 mrs x0, cptr_el2 // Disable SME traps
363 msr cptr_el2, x0
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpkvm.c78 vcpu->arch.cptr_el2 |= cptr_set; in pvm_init_traps_aa64pfr0()
79 vcpu->arch.cptr_el2 &= ~cptr_clear; in pvm_init_traps_aa64pfr0()
150 vcpu->arch.cptr_el2 |= cptr_set; in pvm_init_traps_aa64dfr0()
202 vcpu->arch.cptr_el2 |= CPTR_NVHE_EL2_RES1; in pvm_init_trap_regs()
203 vcpu->arch.cptr_el2 &= ~(CPTR_NVHE_EL2_RES0); in pvm_init_trap_regs()
239 vcpu->arch.cptr_el2 = kvm_get_reset_cptr_el2(vcpu); in pkvm_vcpu_init_traps()
696 hyp_vcpu->vcpu.arch.cptr_el2 = kvm_get_reset_cptr_el2(&hyp_vcpu->vcpu); in __pkvm_init_vcpu()
H A Dswitch.c46 val = vcpu->arch.cptr_el2; in __activate_traps()