diff options
author | Andi Kleen <ak@linux.intel.com> | 2010-10-20 17:56:17 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 10:23:26 +0100 |
commit | f56f5369561ccafe0d4a2396179f814454a1571c (patch) | |
tree | b914484b3d61a42f38f65944dc2f2293e0652979 /net/rds | |
parent | KVM: x86: Mark kvm_arch_setup_async_pf static (diff) | |
download | linux-f56f5369561ccafe0d4a2396179f814454a1571c.tar.xz linux-f56f5369561ccafe0d4a2396179f814454a1571c.zip |
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 <ak@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'net/rds')
0 files changed, 0 insertions, 0 deletions