From: Michael Ellerman Date: Fri, 23 May 2014 08:15:25 +0000 (+1000) Subject: powerpc/kvm/book3s_hv: Rework the secondary inhibit code X-Git-Tag: omap-for-v3.16/fixes-against-rc1~60^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=441c19c8a290f5f1e1b263691641124c84232b6e;p=pandora-kernel.git powerpc/kvm/book3s_hv: Rework the secondary inhibit code As part of the support for split core on POWER8, we want to be able to block splitting of the core while KVM VMs are active. The logic to do that would be exactly the same as the code we currently have for inhibiting onlining of secondaries. Instead of adding an identical mechanism to block split core, rework the secondary inhibit code to be a "HV KVM is active" check. We can then use that in both the cpu hotplug code and the upcoming split core code. Signed-off-by: Michael Ellerman Signed-off-by: Michael Neuling Acked-by: Alexander Graf Acked-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed