]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: Add ARM_EXCEPTION_IS_TRAP macro
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 19 Dec 2018 08:28:38 +0000 (08:28 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 19 Dec 2018 17:47:53 +0000 (17:47 +0000)
commit80b8ec2b94311d106fffd1194c7bea0306f0a0a5
treec39cdb2d9932603bfe0f704f9a1db7c6536dc103
parent3186b2d7988475aa78ae8c5934118dbcd9b380fb
arm/arm64: KVM: Add ARM_EXCEPTION_IS_TRAP macro

32 and 64bit use different symbols to identify the traps.
32bit has a fine grained approach (prefetch abort, data abort and HVC),
while 64bit is pretty happy with just "trap".

This has been fine so far, except that we now need to decode some
of that in tracepoints that are common to both architectures.

Introduce ARM_EXCEPTION_IS_TRAP which abstracts the trap symbols
and make the tracepoint use it.

Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_asm.h
virt/kvm/arm/trace.h