KVM: arm64: Save ESR_EL2 on guest SError
authorJames Morse <james.morse@arm.com>
Mon, 15 Jan 2018 19:39:03 +0000 (19:39 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 16 Jan 2018 15:09:00 +0000 (15:09 +0000)
commitc60590b552bdf682043579b9b965e6224fbf65d9
tree7c58bf1e5324b22957298a7c4e0ac400815c107e
parentc773ae2b34760a1ae409614aa31cdded81a645a5
KVM: arm64: Save ESR_EL2 on guest SError

When we exit a guest due to an SError the vcpu fault info isn't updated
with the ESR. Today this is only done for traps.

The v8.2 RAS Extensions define ISS values for SError. Update the vcpu's
fault_info with the ESR on SError so that handle_exit() can determine
if this was a RAS SError and decode its severity.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kvm/hyp/switch.c