diff options
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 57525e7ed28f..d576451827e7 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -573,6 +573,12 @@ static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id) | |||
573 | if (err) | 573 | if (err) |
574 | goto free_svm; | 574 | goto free_svm; |
575 | 575 | ||
576 | if (irqchip_in_kernel(kvm)) { | ||
577 | err = kvm_create_lapic(&svm->vcpu); | ||
578 | if (err < 0) | ||
579 | goto free_svm; | ||
580 | } | ||
581 | |||
576 | page = alloc_page(GFP_KERNEL); | 582 | page = alloc_page(GFP_KERNEL); |
577 | if (!page) { | 583 | if (!page) { |
578 | err = -ENOMEM; | 584 | err = -ENOMEM; |