diff options
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 1aeeb7fbe2ef..ac326de43ce4 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -705,14 +705,12 @@ skip_lpage: | |||
705 | if (r) | 705 | if (r) |
706 | goto out_free; | 706 | goto out_free; |
707 | 707 | ||
708 | #ifdef CONFIG_DMAR | ||
709 | /* map the pages in iommu page table */ | 708 | /* map the pages in iommu page table */ |
710 | if (npages) { | 709 | if (npages) { |
711 | r = kvm_iommu_map_pages(kvm, &new); | 710 | r = kvm_iommu_map_pages(kvm, &new); |
712 | if (r) | 711 | if (r) |
713 | goto out_free; | 712 | goto out_free; |
714 | } | 713 | } |
715 | #endif | ||
716 | 714 | ||
717 | r = -ENOMEM; | 715 | r = -ENOMEM; |
718 | slots = kzalloc(sizeof(struct kvm_memslots), GFP_KERNEL); | 716 | slots = kzalloc(sizeof(struct kvm_memslots), GFP_KERNEL); |