KVM: PPC: Book3S HV nestedv2: Do not cancel pending decrementer exception
authorJordan Niethe <jniethe5@gmail.com>
Fri, 1 Dec 2023 13:26:17 +0000 (18:56 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 Dec 2023 12:33:08 +0000 (23:33 +1100)
commit180c6b072bf360b686e53d893d8dcf7dbbaec6bb
treeecce125985613ce2b5265d0c63572ff171cbd502
parent797a5af8fc7297b19e5c6b1713956ebf1e6c1cde
KVM: PPC: Book3S HV nestedv2: Do not cancel pending decrementer exception

In the nestedv2 case, if there is a pending decrementer exception, the
L1 must get the L2's timebase from the L0 to see if the exception should
be cancelled. This adds the overhead of a H_GUEST_GET_STATE call to the
likely case in which the decrementer should not be cancelled.

Avoid this logic for the nestedv2 case.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231201132618.555031-13-vaibhav@linux.ibm.com
arch/powerpc/kvm/book3s_hv.c