From: Laurent Vivier Date: Thu, 25 Oct 2007 12:18:54 +0000 (+0200) Subject: KVM: SVM: Let gcc to choose which registers to save (i386) X-Git-Tag: v2.6.25-rc1~1138^2~185 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe7935d49fbe33308c1b5f0e35137989da851010;p=pandora-kernel.git KVM: SVM: Let gcc to choose which registers to save (i386) This patch lets GCC to determine which registers to save when we switch to/from a VCPU in the case of AMD i386 * Original code saves following registers: ebx, ecx, edx, esi, edi, ebp * Patched code: - informs GCC that we modify following registers using the clobber description: ebx, ecx, edx, esi, edi - rbp is saved (pop/push) because GCC seems to ignore its use in the clobber description. Signed-off-by: Laurent Vivier Signed-off-by: Avi Kivity --- Reading git-diff-tree failed