|
@@ -705,14 +705,12 @@ skip_lpage:
|
|
if (r)
|
|
if (r)
|
|
goto out_free;
|
|
goto out_free;
|
|
|
|
|
|
-#ifdef CONFIG_DMAR
|
|
|
|
/* map the pages in iommu page table */
|
|
/* map the pages in iommu page table */
|
|
if (npages) {
|
|
if (npages) {
|
|
r = kvm_iommu_map_pages(kvm, &new);
|
|
r = kvm_iommu_map_pages(kvm, &new);
|
|
if (r)
|
|
if (r)
|
|
goto out_free;
|
|
goto out_free;
|
|
}
|
|
}
|
|
-#endif
|
|
|
|
|
|
|
|
r = -ENOMEM;
|
|
r = -ENOMEM;
|
|
slots = kzalloc(sizeof(struct kvm_memslots), GFP_KERNEL);
|
|
slots = kzalloc(sizeof(struct kvm_memslots), GFP_KERNEL);
|