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>
Thu, 2 Oct 2014 15:19:25 +0000 (17:19 +0200)
commit7f79ef21e90a97b535ca0f181929754cd72bda10
tree1366bcd09c5ec709fa5880a0c4c18447477f4bcd
parent17434ac66579bb31d6a129edb7dec7989b0a7a37
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>
(cherry picked from commit 0496daa5cf99741ce8db82686b4c7446a37feabb)
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