KVM: PPC: Use accessors for VCORE registers
authorJordan Niethe <jniethe5@gmail.com>
Thu, 14 Sep 2023 03:05:54 +0000 (13:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Sep 2023 12:04:24 +0000 (22:04 +1000)
commitc8ae9b3c6e7f22a4b71e42edb0fc3942aa7a7c42
tree44413b328d51fbc174aa7761890834ffc1337ffc
parent7028ac8d174f28220f0e2de0cb3346cd3c31976d
KVM: PPC: Use accessors for VCORE registers

Introduce accessor generator macros for VCORE registers. Use the accessor
functions to replace direct accesses to this registers.

This will be important later for Nested APIv2 support which requires
additional functionality for accessing and modifying VCPU state.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230914030600.16993-6-jniethe5@gmail.com
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_ras.c
arch/powerpc/kvm/book3s_xive.c