Add kvm_set_boot_cpu_id() API.
commit34981195e1219b2fce3e8d4e8e928717b12e083e
authorGleb Natapov <gleb@redhat.com>
Mon, 6 Jul 2009 14:35:46 +0000 (6 17:35 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 7 Jul 2009 09:53:29 +0000 (7 12:53 +0300)
treef69e1a3d1691e044be0b91b005503662ded680ad
parentbb598da496c040d42dde564bd8ace181be52293e
Add kvm_set_boot_cpu_id() API.

Old kernel assumed that apic id of a boot cpus is zero, recent kernels
have an IOCTL to configure BSP's apic id. The patch adds API function to
use this capability. The BSP apic id is set to zero (now explicitly)
since QEMU/BIOS not ready yet to take full advantage of the new API.

Signed-off-by: Avi Kivity <avi@redhat.com>
hw/pc.c
qemu-kvm.c
qemu-kvm.h