arm64: KVM: Allow an exit code to be tagged with an SError
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Sep 2016 13:02:05 +0000 (14:02 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 8 Sep 2016 10:53:00 +0000 (12:53 +0200)
commit20163403a1f2fe3f00f59df2b45ea5cb74b85d97
tree9fb86408b49a8b3ba15501ced580139d7d60d9bb
parent1b51e5fac63f35b644302f2d39ec9af44887b598
arm64: KVM: Allow an exit code to be tagged with an SError

Similarily to EL1, an asynchronous abort can be triggered whilst
running at EL2. But instead of making that a new error code,
we need to communicate it to the rest of KVM together with
the exit reason. So let's hijack a single bit that allows the
exception code to be tagged with a "pending SError" information.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/kvm_asm.h