]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: BSP in MSR_IA32_APICBASE is writable
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 2 Apr 2015 00:10:36 +0000 (03:10 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Apr 2015 08:47:02 +0000 (10:47 +0200)
commit3a8c2ccd2b0feb697ac811c9996e72c701c21580
treed8154df29de173aa1efa6192077854b4084fccb5
parentd0e1ceee3611b36cdd5724a38f8529ed6704dd7e
KVM: x86: BSP in MSR_IA32_APICBASE is writable

After reset, the CPU can change the BSP, which will be used upon INIT.  Reset
should return the BSP which QEMU asked for, and therefore handled accordingly.

To quote: "If the MP protocol has completed and a BSP is chosen, subsequent
INITs (either to a specific processor or system wide) do not cause the MP
protocol to be repeated."
[Intel SDM 8.4.2: MP Initialization Protocol Requirements and Restrictions]

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Message-Id: <1427933438-12782-3-git-send-email-namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h