Home
last modified time | relevance | path

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

/Linux-v4.19/arch/arm64/include/asm/
Dkvm_emulate.h52 return !(vcpu->arch.hcr_el2 & HCR_RW); in vcpu_el1_is_32bit()
57 vcpu->arch.hcr_el2 = HCR_GUEST_FLAGS; in vcpu_reset_hcr()
59 vcpu->arch.hcr_el2 |= HCR_E2H; in vcpu_reset_hcr()
62 vcpu->arch.hcr_el2 |= HCR_TEA; in vcpu_reset_hcr()
64 vcpu->arch.hcr_el2 |= HCR_TERR; in vcpu_reset_hcr()
67 vcpu->arch.hcr_el2 |= HCR_FWB; in vcpu_reset_hcr()
70 vcpu->arch.hcr_el2 &= ~HCR_RW; in vcpu_reset_hcr()
78 vcpu->arch.hcr_el2 |= HCR_TID3; in vcpu_reset_hcr()
83 return (unsigned long *)&vcpu->arch.hcr_el2; in vcpu_hcr()
88 vcpu->arch.hcr_el2 &= ~HCR_TWE; in vcpu_clear_wfe_traps()
[all …]
Dkvm_host.h213 u64 hcr_el2; member
/Linux-v4.19/arch/arm64/kvm/hyp/
Dtlb.c34 val = read_sysreg(hcr_el2); in __tlb_switch_to_guest_vhe()
36 write_sysreg(val, hcr_el2); in __tlb_switch_to_guest_vhe()
58 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __tlb_switch_to_host_vhe()
Dswitch.c129 u64 hcr = vcpu->arch.hcr_el2; in __activate_traps()
131 write_sysreg(hcr, hcr_el2); in __activate_traps()
145 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in deactivate_traps_vhe()
160 write_sysreg(HCR_RW, hcr_el2); in __deactivate_traps_nvhe()
172 if (vcpu->arch.hcr_el2 & HCR_VSE) in __deactivate_traps()
173 vcpu->arch.hcr_el2 = read_sysreg(hcr_el2); in __deactivate_traps()
370 if (!(read_sysreg(hcr_el2) & HCR_RW)) in __hyp_switch_fpsimd()
/Linux-v4.19/arch/arm64/kvm/
Dguest.c348 events->exception.serror_pending = !!(vcpu->arch.hcr_el2 & HCR_VSE); in __kvm_arm_vcpu_get_events()
/Linux-v4.19/arch/arm64/kernel/
Dhead.S502 msr hcr_el2, x0