commit | 42897d866b120547777ae1fd316680ec53356d9c | [log] [tgz] |
---|---|---|
author | Marcelo Tosatti <mtosatti@redhat.com> | Tue Nov 27 23:29:02 2012 -0200 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Tue Nov 27 23:29:14 2012 -0200 |
tree | 29eb544b4361d964dab0d1b3e27f9f2e64597daf | |
parent | d828199e84447795c6669ff0e6c6d55eb9beeff6 [diff] [blame] |
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 <mtosatti@redhat.com>
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index be3e7bb..e6cfd43 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c
@@ -1853,6 +1853,7 @@ atomic_inc(&kvm->online_vcpus); mutex_unlock(&kvm->lock); + kvm_arch_vcpu_postcreate(vcpu); return r; unlock_vcpu_destroy: