Commit dad6321f authored by James Morse's avatar James Morse Committed by Marc Zyngier

KVM: arm64: Re-mask SError after the one instruction window

KVM consumes any SError that were pending during guest exit with a
dsb/isb and unmasking SError. It currently leaves SError unmasked for
the rest of world-switch.

This means any SError that occurs during this part of world-switch
will cause a hyp-panic. We'd much prefer it to remain pending until
we return to the host.
Signed-off-by: default avatarJames Morse <james.morse@arm.com>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent 3276cc24
...@@ -175,6 +175,8 @@ abort_guest_exit_start: ...@@ -175,6 +175,8 @@ abort_guest_exit_start:
.global abort_guest_exit_end .global abort_guest_exit_end
abort_guest_exit_end: abort_guest_exit_end:
msr daifset, #4 // Mask aborts
// If the exception took place, restore the EL1 exception // If the exception took place, restore the EL1 exception
// context so that we can report some information. // context so that we can report some information.
// Merge the exception code with the SError pending bit. // Merge the exception code with the SError pending bit.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment