]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Take out virtual core piggybacking code
authorPaul Mackerras <paulus@ozlabs.org>
Thu, 15 Sep 2016 06:27:41 +0000 (16:27 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 27 Sep 2016 04:42:07 +0000 (14:42 +1000)
commit7fab2ad5c905b875d85fa55b93be6f0e8b6e2750
treecd17612921a2918667fd0f5e7b7aae443baed781
parent22940f2dffb86e0525e35be11c8902a77df43f3e
KVM: PPC: Book3S HV: Take out virtual core piggybacking code

This takes out the code that arranges to run two (or more) virtual
cores on a single subcore when possible, that is, when both vcores
are from the same VM, the VM is configured with one CPU thread per
virtual core, and all the per-subcore registers have the same value
in each vcore.  Since the VTB (virtual timebase) is a per-subcore
register, and will almost always differ between vcores, this code
is disabled on POWER8 machines, meaning that it is only usable on
POWER7 machines (which don't have VTB).  Given the tiny number of
POWER7 machines which have firmware that allows them to run HV KVM,
the benefit of simplifying the code outweighs the loss of this
feature on POWER7 machines.

Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv.c