From: Andi Kleen Date: Wed, 20 Oct 2010 15:56:17 +0000 (+0200) Subject: KVM: Move KVM context switch into own function X-Git-Tag: v2.6.38-rc1~244^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f56f5369561ccafe0d4a2396179f814454a1571c;p=pandora-kernel.git KVM: Move KVM context switch into own function gcc 4.5 with some special options is able to duplicate the VMX context switch asm in vmx_vcpu_run(). This results in a compile error because the inline asm sequence uses an on local label. The non local label is needed because other code wants to set up the return address. This patch moves the asm code into an own function and marks that explicitely noinline to avoid this problem. Better would be probably to just move it into an .S file. The diff looks worse than the change really is, it's all just code movement and no logic change. Signed-off-by: Andi Kleen Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed