]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
arm64: KVM: Move stashing of x0/x1 into the vector code itself
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 12 Feb 2018 17:53:00 +0000 (17:53 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 13:05:44 +0000 (13:05 +0000)
commit7e80f637fd8bcdd777d3841a43f76563ffd2985a
treea3160283b2568a4620680d28c5fef94c0be14f08
parent3c5e81232ea489845359f7a03a4fb52b29072db8
arm64: KVM: Move stashing of x0/x1 into the vector code itself

All our useful entry points into the hypervisor are starting by
saving x0 and x1 on the stack. Let's move those into the vectors
by introducing macros that annotate whether a vector is valid or
not, thus indicating whether we want to stash registers or not.

The only drawback is that we now also stash registers for el2_error,
but this should never happen, and we pop them back right at the
start of the handling sequence.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/hyp-entry.S