]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/kvm/vmx.c
KVM: Hoist kvm_create_lapic() into kvm_vcpu_init()
[linux-2.6-omap-h63xx.git] / drivers / kvm / vmx.c
index 894fd45ecc985cfb8bfe14eadbbd49726eaf83ef..7b742901e783ae3deb836486ed09a8900f1d79ce 100644 (file)
@@ -2431,12 +2431,6 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, unsigned int id)
        if (err)
                goto free_vcpu;
 
-       if (irqchip_in_kernel(kvm)) {
-               err = kvm_create_lapic(&vmx->vcpu);
-               if (err < 0)
-                       goto free_vcpu;
-       }
-
        vmx->guest_msrs = kmalloc(PAGE_SIZE, GFP_KERNEL);
        if (!vmx->guest_msrs) {
                err = -ENOMEM;