Lines Matching +full:host +full:- +full:only
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012-2015 - ARM Ltd
7 #include <hyp/sysreg-sr.h>
19 * VHE: Host and guest must save mdscr_el1 and sp_el0 (and the PC and
22 * tpidr_el0 and tpidrro_el0 only need to be switched when going
23 * to host userspace or a different VCPU. EL1 registers only need to be
55 * __vcpu_load_switch_sysregs - Load guest system registers to the physical CPU
59 * Load system registers that do not affect the host's execution, for
60 * example EL1 system registers on a VHE system where the host kernel
67 struct kvm_cpu_context *guest_ctxt = &vcpu->arch.ctxt; in __vcpu_load_switch_sysregs()
74 * When running a normal EL1 guest, we only load a new vcpu in __vcpu_load_switch_sysregs()
87 * We must restore the 32-bit state before the sysregs, thanks in __vcpu_load_switch_sysregs()
88 * to erratum #852523 (Cortex-A57) or #853709 (Cortex-A72). in __vcpu_load_switch_sysregs()
98 * __vcpu_put_switch_sysregs - Restore host system registers to the physical CPU
102 * Save guest system registers that do not affect the host's execution, for
103 * example EL1 system registers on a VHE system where the host kernel
110 struct kvm_cpu_context *guest_ctxt = &vcpu->arch.ctxt; in __vcpu_put_switch_sysregs()
119 /* Restore host user state */ in __vcpu_put_switch_sysregs()