Make sure kvm_vpu_init is the last thing called in cpu initialization
KVM access some state that is only present late in cpu initialization.
This happens in kvm_vcpu_init(). APIC is an example of that.
So we have to make sure that kvm_vcpu_init is the last thing called
in the initialization process.
We also have to explicitly call qemu_kvm_load_apic(), since the
first call will find the vcpu non initialized.
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>