diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2012-11-27 20:29:02 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-11-27 20:29:14 -0500 |
commit | 42897d866b120547777ae1fd316680ec53356d9c (patch) | |
tree | 29eb544b4361d964dab0d1b3e27f9f2e64597daf /virt/kvm | |
parent | d828199e84447795c6669ff0e6c6d55eb9beeff6 (diff) |
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>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index be3e7bb73b10..e6cfd4344d28 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -1853,6 +1853,7 @@ static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id) | |||
1853 | atomic_inc(&kvm->online_vcpus); | 1853 | atomic_inc(&kvm->online_vcpus); |
1854 | 1854 | ||
1855 | mutex_unlock(&kvm->lock); | 1855 | mutex_unlock(&kvm->lock); |
1856 | kvm_arch_vcpu_postcreate(vcpu); | ||
1856 | return r; | 1857 | return r; |
1857 | 1858 | ||
1858 | unlock_vcpu_destroy: | 1859 | unlock_vcpu_destroy: |