aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 687d113a3e5e..5fed9bfc3cf5 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1210,8 +1210,10 @@ int __kvm_set_memory_region(struct kvm *kvm,
1210 1210
1211 kvm_free_physmem_slot(&old, npages ? &new : NULL); 1211 kvm_free_physmem_slot(&old, npages ? &new : NULL);
1212 /* Slot deletion case: we have to update the current slot */ 1212 /* Slot deletion case: we have to update the current slot */
1213 spin_lock(&kvm->mmu_lock);
1213 if (!npages) 1214 if (!npages)
1214 *memslot = old; 1215 *memslot = old;
1216 spin_unlock(&kvm->mmu_lock);
1215#ifdef CONFIG_DMAR 1217#ifdef CONFIG_DMAR
1216 /* map the pages in iommu page table */ 1218 /* map the pages in iommu page table */
1217 r = kvm_iommu_map_pages(kvm, base_gfn, npages); 1219 r = kvm_iommu_map_pages(kvm, base_gfn, npages);