KVM: x86: Set BSP bit in reset BSP vCPU's APIC base by default
authorSean Christopherson <seanjc@google.com>
Tue, 13 Jul 2021 16:32:53 +0000 (09:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:51 +0000 (11:01 -0400)
commit503bc49424df4802ca34e4e1a024381fd7ced80e
tree27c3ffef506b3bcb6e64b1be5f5f27d18a391cb6
parent01913c57c225a8301e9a53447507f310a4be22b6
KVM: x86: Set BSP bit in reset BSP vCPU's APIC base by default

Set the BSP bit appropriately during local APIC "reset" instead of
relying on vendor code to clean up at a later point.  This is a step
towards consolidating the local APIC, VMX, and SVM xAPIC initialization
code.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210713163324.627647-16-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c