]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:45:31 +0000 (10:45 -0500)
commita2a1b7928d6c05bb525ce68b3629dde1ad852d45
tree3c42ce714d11d6ed474d3acb749e61a2cd928645
parentdd627dd47fcf8932e64b781c663420ce13779398
KVM: arm64: Save ESR_EL2 on guest SError

BugLink: http://bugs.launchpad.net/bugs/1756096
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>
(cherry picked from commit c60590b552bdf682043579b9b965e6224fbf65d9)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/arm64/kvm/hyp/switch.c