]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7d951e3fefc7ab4ee3a0b40990caa4ea0ea0398
tree7c58bf1e5324b22957298a7c4e0ac400815c107e
parent0035a4a363357bed7d18f618e4cd322469f5fa03
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