Properly copy the in-kernel apicbase value
commit1dbed348ceb6b697c95ed5a4fff4aae9416fc0cb
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)
tree38a4bc15c968aefc50d92e5b686905f27a25d3e1
parent966b005832e4bee3e2b7d2884070b29a30bf4e19
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>
hw/apic.c
qemu-kvm-x86.c