From: Gleb Natapov Date: Sun, 5 Aug 2012 12:58:28 +0000 (+0300) Subject: KVM: mark apic enabled on start up X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~18070^2~69 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6aed64a8a440360be875f31eabeacaddb83ef25f;p=mirror_ubuntu-focal-kernel.git KVM: mark apic enabled on start up According to SDM apic is enabled on start up. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- 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);