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

Introduce accessor generator macros for Book3S HV 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-7-jniethe5@gmail.com
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv.h