[PATCH 3/3] powerpc/kvm: Enable prefixed instructions for HV KVM and disable for PR KVM
Sachin Sant
sachinp at linux.ibm.com
Fri Mar 10 00:00:17 AEDT 2023
> On 08-Mar-2023, at 12:06 PM, Paul Mackerras <paulus at ozlabs.org> wrote:
>
> Now that we can read prefixed instructions from a HV KVM guest and
> emulate prefixed load/store instructions to emulated MMIO locations,
> we can add HFSCR_PREFIXED into the set of bits that are set in the
> HFSCR for a HV KVM guest on POWER10, allowing the guest to use
> prefixed instructions.
>
> PR KVM has not yet been extended to handle prefixed instructions in
> all situations where we might need to emulate them, so prevent the
> guest from enabling prefixed instructions in the FSCR for now.
>
> Reviewed-by: Nicholas Piggin <npiggin at gmail.com>
> Tested-by: Nicholas Piggin <npiggin at gmail.com>
> Signed-off-by: Paul Mackerras <paulus at ozlabs.org>
> ---
Tested on a Power10 system. Prefixed instructions work correctly.
Tested-by: Sachin Sant <sachinp at linux.ibm.com>
> arch/powerpc/include/asm/reg.h | 1 +
> arch/powerpc/kvm/book3s_hv.c | 9 +++++++--
> arch/powerpc/kvm/book3s_pr.c | 2 ++
> arch/powerpc/kvm/book3s_rmhandlers.S | 1 +
> 4 files changed, 11 insertions(+), 2 deletions(-)
>
More information about the Linuxppc-dev
mailing list