]> xenbits.xensource.com Git - xen.git/commit
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)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 27 Nov 2019 22:30:18 +0000 (14:30 -0800)
commit3236f62595fd3d46648c7a8cf5c60df8468c3f05
tree3cfbbbf836b4af7ea0ab0857de1ae254299941ea
parentc88640c188cf94680a702efe08116a14974a2e12
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