]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Disable HPT resizing on POWER9 for now
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 17 Feb 2017 21:30:44 +0000 (08:30 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 18 Feb 2017 03:22:47 +0000 (14:22 +1100)
commit2c40007c4ae396b8ec59044d3dd761c02b5471b2
treeb414a67ac4322deecfb6e8dbdf7fe0e84179b5b7
parentbe1f3cf90f42af33fb71e5902b2106c1b7ad7c0c
KVM: PPC: Book3S HV: Disable HPT resizing on POWER9 for now

The new HPT resizing code added in commit e35b0c4e1104 ("KVM: PPC:
Book3S HV: KVM-HV HPT resizing implementation", 2016-12-20) doesn't
have code to handle the new HPTE format which POWER9 uses.  Thus it
would be best not to advertise it to userspace on POWER9 systems
until it works properly.

Also, since resize_hpt_rehash_hpte() contains BUG_ON() calls that
could be hit on POWER9, let's prevent it from being called on POWER9
for now.

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/powerpc.c