KVM: PPC: Book3S HV: Decouple the debug timing from the P8 entry path
authorFabiano Rosas <farosas@linux.ibm.com>
Wed, 25 May 2022 13:05:52 +0000 (10:05 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jun 2022 09:21:21 +0000 (19:21 +1000)
commitc3fa64c99c61d99631a8e06a6cf991c35c98ec7d
tree674f7b86dc8e16df329865f43f132f806c648cb2
parent3f8ed993be3cf154a91d9ab5e80470c6c755adbe
KVM: PPC: Book3S HV: Decouple the debug timing from the P8 entry path

We are currently doing the timing for debug purposes of the P9 entry
path using the accumulators and terminology defined by the old entry
path for P8 machines.

Not only the "real-mode" and "napping" mentions are out of place for
the P9 Radix entry path but also we cannot change them because the
timing code is coupled to the structures defined in struct
kvm_vcpu_arch.

Add a new CONFIG_KVM_BOOK3S_HV_P9_TIMING to enable the timing code for
the P9 entry path. For now, just add the new CONFIG and duplicate the
structures. A subsequent patch will add the P9 changes.

Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220525130554.2614394-4-farosas@linux.ibm.com
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/Kconfig
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_p9_entry.c