kvm: qemu: make kvm_arch_load_regs() aware of in kernel APICkvm-65kvm-65rc1
commit5208ce19dca268f84a2b9441c2fbb6129161e44c
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)
tree1492b331c0835dbb985eab57e9054d9ffef90c77
parent9949bd84ac4dfdfc60b2974557819637b8719911
kvm: qemu: 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/qemu-kvm-x86.c