]> 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)
commita0817d28efabf1859c24494afc602ad6fd881683
treef434917ca04fa8f8e13846d496c378cbf7356927
parentfd31d5291bee7659c309bc1a460a22ff3b7d15a2
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