summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-11-27 23:29:02 -0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-11-27 23:29:14 -0200
commit42897d866b120547777ae1fd316680ec53356d9c (patch)
tree29eb544b4361d964dab0d1b3e27f9f2e64597daf /virt
parentd828199e84447795c6669ff0e6c6d55eb9beeff6 (diff)
downloadop-kernel-dev-42897d866b120547777ae1fd316680ec53356d9c.zip
op-kernel-dev-42897d866b120547777ae1fd316680ec53356d9c.tar.gz
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 be3e7bb..e6cfd43 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:
OpenPOWER on IntegriCloud