KVM: arm64: nVHE: Don't consume host SErrors with ESB
authorAndrew Scull <ascull@google.com>
Tue, 15 Sep 2020 10:46:31 +0000 (11:46 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 15 Sep 2020 17:39:02 +0000 (18:39 +0100)
commit472fc011ccd30f05e0b39d71064777d39dd11cac
tree38efb2ec1a3e1553abfd713b250c38c4f1db95d7
parent6e3bfbb22c51bd1f121ca5c4bce6b51dc6cdceae
KVM: arm64: nVHE: Don't consume host SErrors with ESB

The ESB at the start of the host vector may cause SErrors to be consumed
to DISR_EL1. However, this is not checked for the host so the SError
could go unhandled.

Remove the ESB so that SErrors are not consumed but are instead left
pending for the host to consume. __guest_enter already defers entry into
a guest if there are any SErrors pending.

Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200915104643.2543892-8-ascull@google.com
arch/arm64/kvm/hyp/nvhe/host.S