KVM: VMX: Make lto-friendly
authorAvi Kivity <avi@redhat.com>
Sun, 16 Sep 2012 12:10:57 +0000 (15:10 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 17 Sep 2012 13:38:03 +0000 (10:38 -0300)
commit83287ea420ced7242a704488aab0fcdcf2ced9ab
tree47438ac4916ccb0505baf9967092593507dbbd2f
parentecba9a52acdf20530d561b7634b80c35c308943a
KVM: VMX: Make lto-friendly

LTO (link-time optimization) doesn't like local labels to be referred to
from a different function, since the two functions may be built in separate
compilation units.  Use an external variable instead.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c