diff options
author | Gleb Natapov <gleb@redhat.com> | 2012-08-05 08:58:30 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-08-06 12:00:43 -0400 |
commit | c5cc421ba3219b90f11d151bc55f1608c12830fa (patch) | |
tree | fa21392981697bbc01ed14c8aab98653622c5a33 /arch/x86/kvm/x86.c | |
parent | a181dc14ed23f7a499542ff4c78532b5f24bb18f (diff) |
KVM: use jump label to optimize checking for HW enabled APIC in APIC_BASE MSR
Usually all APICs are HW enabled so the check can be optimized out.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 3cafbb12ae0..29fa18d27e6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -4903,6 +4903,7 @@ int kvm_arch_init(void *opaque) | |||
4903 | if (cpu_has_xsave) | 4903 | if (cpu_has_xsave) |
4904 | host_xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); | 4904 | host_xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); |
4905 | 4905 | ||
4906 | kvm_lapic_init(); | ||
4906 | return 0; | 4907 | return 0; |
4907 | 4908 | ||
4908 | out: | 4909 | out: |