arm/arm64: KVM: Report correct FSC for unsupported fault types
authorChristoffer Dall <christoffer.dall@linaro.org>
Fri, 26 Sep 2014 10:29:34 +0000 (12:29 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 26 Sep 2014 12:39:45 +0000 (14:39 +0200)
commit0496daa5cf99741ce8db82686b4c7446a37feabb
treef434917ca04fa8f8e13846d496c378cbf7356927
parentdbff124e29fa24aff9705b354b5f4648cd96e0bb
arm/arm64: KVM: Report correct FSC for unsupported fault types

When we catch something that's not a permission fault or a translation
fault, we log the unsupported FSC in the kernel log, but we were masking
off the bottom bits of the FSC which was not very helpful.

Also correctly report the FSC for data and instruction faults rather
than telling people it was a DFCS, which doesn't exist in the ARM ARM.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/mmu.c
arch/arm64/include/asm/kvm_emulate.h