Skip to content

Commit 6aed64a

Browse files
Gleb Natapovavikivity
authored andcommitted
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>
1 parent 5dbc8f3 commit 6aed64a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/x86/kvm/lapic.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,8 @@ int kvm_create_lapic(struct kvm_vcpu *vcpu)
13111311
HRTIMER_MODE_ABS);
13121312
apic->lapic_timer.timer.function = apic_timer_fn;
13131313

1314-
kvm_lapic_set_base(vcpu, APIC_DEFAULT_PHYS_BASE);
1314+
kvm_lapic_set_base(vcpu,
1315+
APIC_DEFAULT_PHYS_BASE | MSR_IA32_APICBASE_ENABLE);
13151316

13161317
kvm_lapic_reset(vcpu);
13171318
kvm_iodevice_init(&apic->dev, &apic_mmio_ops);

0 commit comments

Comments
 (0)