Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125281
b: refs/heads/master
c: 6f89724
h: refs/heads/master
i:
  125279: e20991d
v: v3
  • Loading branch information
Glauber Costa authored and Avi Kivity committed Dec 31, 2008
1 parent aed6b09 commit 98f2c81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b7015914b30ad8d9136d41412c5129b9bc9af70
refs/heads/master: 6f89724829cfd4ad6771a92fd4b8d59c90c7220c
5 changes: 4 additions & 1 deletion trunk/virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,10 @@ int __kvm_set_memory_region(struct kvm *kvm,
goto out_free;
}

kvm_free_physmem_slot(&old, &new);
kvm_free_physmem_slot(&old, npages ? &new : NULL);
/* Slot deletion case: we have to update the current slot */
if (!npages)
*memslot = old;
#ifdef CONFIG_DMAR
/* map the pages in iommu page table */
r = kvm_iommu_map_pages(kvm, base_gfn, npages);
Expand Down

0 comments on commit 98f2c81

Please sign in to comment.