]> git.karo-electronics.de Git - karo-tx-linux.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)
commitb009031f74da1c71f306bbe410da78bd9d848669
treecd17612921a2918667fd0f5e7b7aae443baed781
parent88b02cf97bb7e742db3e31671d54177e3e19fd89
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