From: Alexander Graf Date: Fri, 9 Dec 2011 13:44:13 +0000 (+0100) Subject: KVM: PPC: Use get/set for to_svcpu to help preemption X-Git-Tag: v3.4-rc1~59^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=468a12c2b53776721ff83517d4a195b85c5fce54;p=pandora-kernel.git KVM: PPC: Use get/set for to_svcpu to help preemption When running the 64-bit Book3s PR code without CONFIG_PREEMPT_NONE, we were doing a few things wrong, most notably access to PACA fields without making sure that the pointers stay stable accross the access (preempt_disable()). This patch moves to_svcpu towards a get/put model which allows us to disable preemption while accessing the shadow vcpu fields in the PACA. That way we can run preemptible and everyone's happy! Reported-by: Jörg Sommer Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity --- Reading git-diff-tree failed