]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Make sure to load LPID for radix VCPUs
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 13 May 2019 03:03:49 +0000 (13:03 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 14 May 2019 02:05:24 +0000 (12:05 +1000)
commitd0d3fa7c9b14793229fac8f49da1039e3fa64fef
tree97f752446c5020c5c415173642b7aed44637f42d
parentdcfe54fc402d6fae3bce6a63728631d4d83a124b
KVM: PPC: Book3S HV: Make sure to load LPID for radix VCPUs

Commit 511897fe7fbb ("KVM: PPC: Book3S HV: Flush TLB on secondary radix
threads", 2019-04-29) aimed to make radix guests that are using the
real-mode entry path load the LPID register and flush the TLB in the
same place where those things are done for HPT guests.  However, it
omitted to remove a branch which branches around that code for radix
guests.  The result is that with indep_thread_mode = N, radix guests
don't run correctly.  (With indep_threads_mode = Y, which is the
default, radix guests use a different entry path.)

This removes the offending branch, and also the load and compare that
the branch depends on, since the cr7 setting is now unused.

Reported-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Tested-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Fixes: 511897fe7fbb ("KVM: PPC: Book3S HV: Flush TLB on secondary radix threads")
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv_rmhandlers.S