Home
last modified time | relevance | path

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

/arch/arm64/include/asm/
Dhardirq.h54 nmi_ctx->hcr = read_sysreg(hcr_el2); \
56 write_sysreg(nmi_ctx->hcr | HCR_TGE, hcr_el2); \
67 write_sysreg(nmi_ctx->hcr, hcr_el2); \
Dkvm_emulate.h47 return !(vcpu->arch.hcr_el2 & HCR_RW); in vcpu_el1_is_32bit()
52 vcpu->arch.hcr_el2 = HCR_GUEST_FLAGS; in vcpu_reset_hcr()
54 vcpu->arch.hcr_el2 |= HCR_E2H; in vcpu_reset_hcr()
56 vcpu->arch.hcr_el2 &= ~HCR_RW; in vcpu_reset_hcr()
61 return vcpu->arch.hcr_el2; in vcpu_get_hcr()
66 vcpu->arch.hcr_el2 = hcr; in vcpu_set_hcr()
Dkvm_host.h207 u64 hcr_el2; member
/arch/arm64/kvm/hyp/
Dswitch.c87 val = vcpu->arch.hcr_el2; in __activate_traps()
92 write_sysreg(val, hcr_el2); in __activate_traps()
117 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps_vhe()
130 write_sysreg(HCR_HOST_NVHE_FLAGS, hcr_el2); in __deactivate_traps_nvhe()
146 if (vcpu->arch.hcr_el2 & HCR_VSE) in __deactivate_traps()
147 vcpu->arch.hcr_el2 = read_sysreg(hcr_el2); in __deactivate_traps()
172 write_sysreg(read_sysreg(hcr_el2) & ~HCR_INT_OVERRIDE, hcr_el2); in __vgic_save_state()
179 val = read_sysreg(hcr_el2); in __vgic_restore_state()
182 write_sysreg(val, hcr_el2); in __vgic_restore_state()
Dtlb.c38 val = read_sysreg(hcr_el2); in __tlb_switch_to_guest_vhe()
40 write_sysreg(val, hcr_el2); in __tlb_switch_to_guest_vhe()
64 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __tlb_switch_to_host_vhe()
Dsysreg-sr.c144 if (read_sysreg(hcr_el2) & HCR_RW) in __sysreg32_save_state()
169 if (read_sysreg(hcr_el2) & HCR_RW) in __sysreg32_restore_state()
Dentry.S188 mrs x1, hcr_el2
/arch/arm64/kvm/
Dinject_fault.c213 if (!(vcpu->arch.hcr_el2 & HCR_RW)) in kvm_inject_dabt()
229 if (!(vcpu->arch.hcr_el2 & HCR_RW)) in kvm_inject_pabt()
243 if (!(vcpu->arch.hcr_el2 & HCR_RW)) in kvm_inject_undefined()
/arch/arm64/kernel/
Dhead.S417 msr hcr_el2, x0