Make kvm_arch_load_regs() aware of in kernel APIC
commit67ff4b3c7e1ff23afe378eac193b596633580436
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 3 Apr 2008 23:24:37 +0000 (3 20:24 -0300)
committerAvi Kivity <avi@qumranet.com>
Fri, 4 Apr 2008 21:22:20 +0000 (5 00:22 +0300)
tree8b7d39cdd1a39d96b3c2f8f8f12117ae50491388
parent69d4cbe4444a5b2e8e234e17d3146ebe7937ab18
Make kvm_arch_load_regs() aware of in kernel APIC

kvm_arch_load_regs() might load APIC base and APIC TPR from the
uninitialized userspace APIC emulation.

This happened when running X11 on SMP guest in my case, disabling the
APIC for vcpu3:

vcpu not ready for apic_round_robin
vcpu not ready for apic_round_robin
vcpu not ready for apic_round_robin
...

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