KVM: arm/arm64: Log PSTATE for unhandled sysregs
authorMark Rutland <mark.rutland@arm.com>
Thu, 6 Dec 2018 12:31:44 +0000 (12:31 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 18 Dec 2018 15:14:45 +0000 (15:14 +0000)
commitd1878af3a5a6ac00bc8a3edfecf80539ee9c546e
tree1303c8d4b65b2afb65082ae216d3a3bdda1d509e
parentfb544d1ca65a89f7a3895f7531221ceeed74ada7
KVM: arm/arm64: Log PSTATE for unhandled sysregs

When KVM traps an unhandled sysreg/coproc access from a guest, it logs
the guest PC. To aid debugging, it would be helpful to know which
exception level the trap came from, along with other PSTATE/CPSR bits,
so let's log the PSTATE/CPSR too.

Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/coproc.c
arch/arm64/kvm/sys_regs.c