summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/hyp/nvhe/switch.c
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2020-09-15 11:46:32 +0100
committerMarc Zyngier <maz@kernel.org>2020-09-15 18:39:02 +0100
commitb619d9aa8b385bdab747df596961d8fdddde4d52 (patch)
tree017e178811d63555ab3d06b5fee6026ea181b6ff /arch/arm64/kvm/hyp/nvhe/switch.c
parent472fc011ccd30f05e0b39d71064777d39dd11cac (diff)
downloadlinux-b619d9aa8b385bdab747df596961d8fdddde4d52.tar.bz2
KVM: arm64: Introduce hyp context
During __guest_enter, save and restore from a new hyp context rather than the host context. This is preparation for separation of the hyp and host context in nVHE. Signed-off-by: Andrew Scull <ascull@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200915104643.2543892-9-ascull@google.com
Diffstat (limited to 'arch/arm64/kvm/hyp/nvhe/switch.c')
-rw-r--r--arch/arm64/kvm/hyp/nvhe/switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/switch.c b/arch/arm64/kvm/hyp/nvhe/switch.c
index 075384084e08..c99945cda779 100644
--- a/arch/arm64/kvm/hyp/nvhe/switch.c
+++ b/arch/arm64/kvm/hyp/nvhe/switch.c
@@ -209,7 +209,7 @@ int __kvm_vcpu_run(struct kvm_vcpu *vcpu)
do {
/* Jump in the fire! */
- exit_code = __guest_enter(vcpu, host_ctxt);
+ exit_code = __guest_enter(vcpu);
/* And we're baaack! */
} while (fixup_guest_exit(vcpu, &exit_code));