Searched refs:hcr_el2 (Results 1 – 9 of 9) sorted by relevance
/arch/arm64/include/asm/ |
D | hardirq.h | 54 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); \
|
D | kvm_emulate.h | 47 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()
|
D | kvm_host.h | 207 u64 hcr_el2; member
|
/arch/arm64/kvm/hyp/ |
D | switch.c | 87 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()
|
D | tlb.c | 38 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()
|
D | sysreg-sr.c | 144 if (read_sysreg(hcr_el2) & HCR_RW) in __sysreg32_save_state() 169 if (read_sysreg(hcr_el2) & HCR_RW) in __sysreg32_restore_state()
|
D | entry.S | 188 mrs x1, hcr_el2
|
/arch/arm64/kvm/ |
D | inject_fault.c | 213 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/ |
D | head.S | 417 msr hcr_el2, x0
|