]> git.baikalelectronics.ru Git - 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)
commit6b7b43915e397f682dbf6c7801484da24b9de147
treea3160283b2568a4620680d28c5fef94c0be14f08
parent22a580c018c249c0ef97d7d076e8dafbdd658434
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