summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-11-28 02:29:02 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2012-11-28 02:29:14 +0100
commit42897d866b120547777ae1fd316680ec53356d9c (patch)
tree29eb544b4361d964dab0d1b3e27f9f2e64597daf /virt
parentKVM: x86: implement PVCLOCK_TSC_STABLE_BIT pvclock flag (diff)
downloadlinux-42897d866b120547777ae1fd316680ec53356d9c.tar.xz
linux-42897d866b120547777ae1fd316680ec53356d9c.zip
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')
-rw-r--r--virt/kvm/kvm_main.c1
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)
atomic_inc(&kvm->online_vcpus);
mutex_unlock(&kvm->lock);
+ kvm_arch_vcpu_postcreate(vcpu);
return r;
unlock_vcpu_destroy: