OSDN Git Service

KVM: PPC: Book3S HV P9: Restrict DSISR canary workaround to processors that require it
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:52:12 +0000 (19:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:09:00 +0000 (21:09 +1100)
commitd55b1eccc7aa14a1750aecf271806365478ca805
tree0c1ad8328b39c01b9e2561031765f183ca7249ad
parent3e7b3379023dad2e78c3200373a6368f5d0ee599
KVM: PPC: Book3S HV P9: Restrict DSISR canary workaround to processors that require it

Use CPU_FTR_P9_RADIX_PREFETCH_BUG to apply the workaround, to test for
DD2.1 and below processors. This saves a mtSPR in guest entry.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211123095231.1036501-35-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_p9_entry.c