]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Don't use ASDR for real-mode HPT faults on POWER9
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 28 Feb 2017 00:05:47 +0000 (11:05 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 1 Mar 2017 00:54:10 +0000 (11:54 +1100)
commit885fa90b045f15e369c14385f33501aa0eea62fa
treea8f9058470d24185e98dc02df00f2e1f9d24d08a
parent1eccce9875d492c410c5e0997c2b5228e1802be0
KVM: PPC: Book3S HV: Don't use ASDR for real-mode HPT faults on POWER9

In HPT mode on POWER9, the ASDR register is supposed to record
segment information for hypervisor page faults.  It turns out that
POWER9 DD1 does not record the page size information in the ASDR
for faults in guest real mode.  We have the necessary information
in memory already, so by moving the checks for real mode that already
existed, we can use the in-memory copy.  Since a load is likely to
be faster than reading an SPR, we do this unconditionally (not just
for POWER9 DD1).

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