summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2012-08-05 16:58:28 +0400
committerAvi Kivity <avi@redhat.com>2012-08-06 17:20:14 +0400
commit6aed64a8a440360be875f31eabeacaddb83ef25f (patch)
treea04aa2c743eca9332655c05cd63ff920a971d0d7
parent5dbc8f3fed0b4cb04dfb276150294f21c5f0fc66 (diff)
downloadlinux-6aed64a8a440360be875f31eabeacaddb83ef25f.tar.xz
KVM: mark apic enabled on start up
According to SDM apic is enabled on start up. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--arch/x86/kvm/lapic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index 49f4ac047f60..c3f14fe51e9b 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -1311,7 +1311,8 @@ int kvm_create_lapic(struct kvm_vcpu *vcpu)
HRTIMER_MODE_ABS);
apic->lapic_timer.timer.function = apic_timer_fn;
- kvm_lapic_set_base(vcpu, APIC_DEFAULT_PHYS_BASE);
+ kvm_lapic_set_base(vcpu,
+ APIC_DEFAULT_PHYS_BASE | MSR_IA32_APICBASE_ENABLE);
kvm_lapic_reset(vcpu);
kvm_iodevice_init(&apic->dev, &apic_mmio_ops);