KVM: PPC: Introduce FPR/VR accessor functions
authorJordan Niethe <jniethe5@gmail.com>
Thu, 14 Sep 2023 03:05:51 +0000 (13:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Sep 2023 12:04:23 +0000 (22:04 +1000)
commit52425a3b3c11cec58cf66e4c897fc1504f3911a9
treecd3af2866534bdc7df2eba69e94a0af29acf2a07
parent0e85b7df9cb0c65f840109159ef6754c783e07a0
KVM: PPC: Introduce FPR/VR accessor functions

Introduce accessor functions for floating point and vector registers
like the ones that exist for GPRs. Use these to replace the existing FPR
and VR accessor macros.

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

Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230914030600.16993-3-jniethe5@gmail.com
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/include/asm/kvm_booke.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/emulate_loadstore.c
arch/powerpc/kvm/powerpc.c