summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2012-08-05 12:58:28 (GMT)
committerAvi Kivity <avi@redhat.com>2012-08-06 13:20:14 (GMT)
commit6aed64a8a440360be875f31eabeacaddb83ef25f (patch)
treea04aa2c743eca9332655c05cd63ff920a971d0d7 /arch/x86/kvm/lapic.c
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>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-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 49f4ac0..c3f14fe 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);