]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Save host FSCR in the P7/8 path
authorNicholas Piggin <npiggin@gmail.com>
Wed, 26 May 2021 12:58:51 +0000 (22:58 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 4 Jun 2021 12:02:25 +0000 (22:02 +1000)
commit3a01897b7ee8f9a9937218f27cbaaf2b6afd14b0
tree38fe12938ae4d581edd7866d4ef94167588fd597
parent87d9f8b77b5545016adf3cfc494e6ea6899acca7
KVM: PPC: Book3S HV: Save host FSCR in the P7/8 path

Similar to commit 6d3eb28c3da7 ("KVM: PPC: Book3S HV: Save and restore
FSCR in the P9 path"), ensure the P7/8 path saves and restores the host
FSCR. The logic explained in that patch actually applies there to the
old path well: a context switch can be made before kvmppc_vcpu_run_hv
restores the host FSCR and returns.

Now both the p9 and the p7/8 paths now save and restore their FSCR, it
no longer needs to be restored at the end of kvmppc_vcpu_run_hv

Fixes: b92cb2bde0df ("KVM: PPC: Book3S HV: Context-switch new POWER8 SPRs")
Cc: stable@vger.kernel.org # v3.14+
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210526125851.3436735-1-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S