diff options
| author | Jordan Niethe <[email protected]> | 2023-09-14 03:05:56 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2023-09-14 12:04:24 +0000 |
| commit | 6de2e837babb411cfb3cdb570581c3a65576ddaf (patch) | |
| tree | f03f9bc408505793515a111e21dfe91b451ab561 /drivers/cdx/controller/mcdi_functions.h | |
| parent | KVM: PPC: Book3S HV: Use accessors for VCPU registers (diff) | |
| download | kernel-6de2e837babb411cfb3cdb570581c3a65576ddaf.tar.gz kernel-6de2e837babb411cfb3cdb570581c3a65576ddaf.zip | |
KVM: PPC: Book3S HV: Introduce low level MSR accessor
kvmppc_get_msr() and kvmppc_set_msr_fast() serve as accessors for the
MSR. However because the MSR is kept in the shared regs they include a
conditional check for kvmppc_shared_big_endian() and endian conversion.
Within the Book3S HV specific code there are direct reads and writes of
shregs::msr. In preparation for Nested APIv2 these accesses need to be
replaced with accessor functions so it is possible to extend their
behavior. However, using the kvmppc_get_msr() and kvmppc_set_msr_fast()
functions is undesirable because it would introduce a conditional branch
and endian conversion that is not currently present.
kvmppc_set_msr_hv() already exists, it is used for the
kvmppc_ops::set_msr callback.
Introduce a low level accessor __kvmppc_{s,g}et_msr_hv() that simply
gets and sets shregs::msr. This will be extend for Nested APIv2 support.
Signed-off-by: Jordan Niethe <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'drivers/cdx/controller/mcdi_functions.h')
0 files changed, 0 insertions, 0 deletions
