KVM: PPC: Book3S HV: Don't use streamlined entry path on early POWER9 chips
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 19 Oct 2018 09:44:04 +0000 (20:44 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 19 Oct 2018 09:44:04 +0000 (20:44 +1100)
commit8d9fcacff9dc4445de4ced2dbe63b792174206d5
tree9719bd1b5f23d6308fec1df08f3c9f12bfaa4cbc
parent3d0d0d9b1d805e39456a9d49443d847092cb21ab
KVM: PPC: Book3S HV: Don't use streamlined entry path on early POWER9 chips

This disables the use of the streamlined entry path for radix guests
on early POWER9 chips that need the workaround added in commit
a25bd72badfa ("powerpc/mm/radix: Workaround prefetch issue with KVM",
2017-07-24), because the streamlined entry path does not include
that workaround.  This also means that we can't do nested HV-KVM
on those chips.

Since the chips that need that workaround are the same ones that can't
run both radix and HPT guests at the same time on different threads of
a core, we use the existing 'no_mixing_hpt_and_radix' variable that
identifies those chips to identify when we can't use the new guest
entry path, and when we can't do nested virtualization.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv.c