mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
KVM: x86: add kvm_arch_vcpu_postcreate callback, move TSC initialization
TSC initialization will soon make use of online_vcpus. Signed-off-by: Marcelo Tosatti <[email protected]>
This commit is contained in:
parent
d828199e84
commit
42897d866b
8 changed files with 30 additions and 3 deletions
|
|
@ -1853,6 +1853,7 @@ static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id)
|
|||
atomic_inc(&kvm->online_vcpus);
|
||||
|
||||
mutex_unlock(&kvm->lock);
|
||||
kvm_arch_vcpu_postcreate(vcpu);
|
||||
return r;
|
||||
|
||||
unlock_vcpu_destroy:
|
||||
|
|
|
|||
Loading…
Reference in a new issue