]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17d53144037ef3fde6b636b338fc039a0778a769
tree9719bd1b5f23d6308fec1df08f3c9f12bfaa4cbc
parentc25d5501443f3b086a1290859fcc6ba0ebefdfbd
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
ea571f3df34f ("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