]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit984f3b15c999d4298b9e24e44d6c2420639e6ffd
treef434917ca04fa8f8e13846d496c378cbf7356927
parent8a6631187167260fc023547caad53edeca34bcad
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