xen/arm64: entry: Check if an SError is pending when receiving a vSError
authorJulien Grall <julien.grall@arm.com>
Thu, 31 Oct 2019 15:09:11 +0000 (15:09 +0000)
committerJulien Grall <julien.grall@arm.com>
Fri, 1 Nov 2019 13:57:49 +0000 (13:57 +0000)
commit354b0f20783cfb8b8536b6e350e7b9f029b2603b
treef6d35ab17847eec02d7f0f377f3f89bed8ba5ce2
parent32e195645cb693af9bfd43f2b1e90c204f9b3377
xen/arm64: entry: Check if an SError is pending when receiving a vSError

At the moment, when we receive an SError exception from the guest, we
don't check if there are any other pending. For hardening the code, we
should ensure any pending SError are accounted to the guest before
executing any code with SError unmasked.

The recently introduced macro 'guest_vector' could used to generate the
two vectors and therefore take advantage of any change required in the
future.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/arm/arm64/entry.S