kvm: qemu: properly copy the in-kernel apicbase value
commit85a67aa2a1b942ddccfcbd625d280869367edc95
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 11 Apr 2008 16:24:41 +0000 (11 13:24 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 13 Apr 2008 15:01:02 +0000 (13 18:01 +0300)
tree06d0350bf0f614729ce31fc0a9f4e94c608f7227
parentae0df5fca365941ebe629e0aa54fce45c56e94b8
kvm: qemu: properly copy the in-kernel apicbase value

The MSR_IA32_APICBASE_ENABLE/MSR_IA32_APICBASE_BSP bits in s->apicbase
are not initialized if in-kernel APIC emulation is used, so save the
actual value passed by cpu_set_apic_base() caller.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
qemu/hw/apic.c
qemu/qemu-kvm-x86.c