KVM: arm64: Update kvm_arm_exception_class and esr_class_str for new EC
authorZenghui Yu <yuzenghui@huawei.com>
Sat, 13 Jul 2019 04:40:54 +0000 (04:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 26 Jul 2019 14:40:38 +0000 (15:40 +0100)
commit6701c619fa082e6660ecd7573fbad2177380c7cc
tree353f2bd855d80d2638709fd9a0c3ace771ed9e05
parent1a8248c74c81a15a32dc3344fb5c622e19072791
KVM: arm64: Update kvm_arm_exception_class and esr_class_str for new EC

We've added two ESR exception classes for new ARM hardware extensions:
ESR_ELx_EC_PAC and ESR_ELx_EC_SVE, but failed to update the strings
used in tracing and other debug.

Let's update "kvm_arm_exception_class" for these two EC, which the
new EC will be visible to user-space via kvm_exit trace events
Also update to "esr_class_str" for ESR_ELx_EC_PAC, by which we can
get more readable debug info.

Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/kernel/traps.c