KVM: PPC: Use accessors for VCPU registers
authorJordan Niethe <jniethe5@gmail.com>
Thu, 14 Sep 2023 03:05:53 +0000 (13:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Sep 2023 12:04:24 +0000 (22:04 +1000)
commit7028ac8d174f28220f0e2de0cb3346cd3c31976d
tree962ab169e75cf5ff25b42e23bb8ca5d92131cd6f
parent2a64bc673133346a7a3bd163f2e6048bd1788727
KVM: PPC: Use accessors for VCPU registers

Introduce accessor generator macros for VCPU 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-5-jniethe5@gmail.com
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_p9_entry.c
arch/powerpc/kvm/powerpc.c