KVM: PPC: Book3S HV nestedv2: Avoid reloading the tb offset
authorJordan Niethe <jniethe5@gmail.com>
Fri, 1 Dec 2023 13:26:07 +0000 (18:56 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 Dec 2023 12:33:07 +0000 (23:33 +1100)
commite0d4acbcba3f2d63dc15bc5432c8e26fc9e19675
tree20c3cc8809a1e48737fc510f89163a19ed1cb3f7
parent7d370e1812b9a5f5cc68aaa5991bf7d31d8ff52c
KVM: PPC: Book3S HV nestedv2: Avoid reloading the tb offset

The kvmppc_get_tb_offset() getter reloads KVMPPC_GSID_TB_OFFSET from the
L0 for nestedv2 host. This is unnecessary as the value does not change.
KVMPPC_GSID_TB_OFFSET also need not be reloaded in
kvmppc_{s,g}et_dec_expires().

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231201132618.555031-3-vaibhav@linux.ibm.com
arch/powerpc/include/asm/kvm_book3s.h