]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: clear bsp bit when designating bsp
authorNadav Amit <namit@cs.technion.ac.il>
Wed, 1 Apr 2015 23:58:36 +0000 (02:58 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Apr 2015 13:57:27 +0000 (15:57 +0200)
commit9cb11fd7539b5b787d8fb3834004804a58dd16ae
treecd20dde0af304c6401ec4002b2f4e828a7c66a80
parent420957a5982113416c5e442687de5e1ffaffeafc
target-i386: clear bsp bit when designating bsp

Since the BSP bit is writable on real hardware, during reset all the CPUs which
were not chosen to be the BSP should have their BSP bit cleared. This fix is
required for KVM to work correctly when it changes the BSP bit.

An additional fix is required for QEMU tcg to allow software to change the BSP
bit.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Message-Id: <1427932716-11800-1-git-send-email-namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/intc/apic_common.c
include/hw/i386/apic.h
target-i386/cpu.c