KVM: x86: reset APIC ID when enabling LAPIC
authorRadim Krčmář <rkrcmar@redhat.com>
Tue, 12 Jul 2016 20:09:23 +0000 (22:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jul 2016 07:03:54 +0000 (09:03 +0200)
commit49bd29ba1dbd57b029f69cd9afb335a8f564f32f
tree12962ebefef8456746872e020cd032c4b9e35867
parenta92e2543d6a8653a8ab45cf5df7ef07dafcf3f3e
KVM: x86: reset APIC ID when enabling LAPIC

APIC ID should be set to the initial APIC ID when enabling LAPIC.
This only matters if the guest changes APIC ID.  No sane OS does that.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c