Skip to content

Commit

Permalink
KVM: s390: dont allocate dirty bitmap
Browse files Browse the repository at this point in the history
This patch #ifdefs the bitmap array for dirty tracking. We don't have dirty
tracking on s390 today, and we'd love to use our storage keys to store the
dirty information for migration. Therefore, we won't need this array at all,
and due to our limited amount of vmalloc space this limits the amount of guests
we can run.

Signed-off-by: Carsten Otte <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Carsten Otte authored and avikivity committed Jul 20, 2008
1 parent f8b78fa commit eff0114
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
r = -ENOMEM;

/* Allocate if a slot is being created */
#ifndef CONFIG_S390
if (npages && !new.rmap) {
new.rmap = vmalloc(npages * sizeof(struct page *));

Expand Down Expand Up @@ -399,6 +400,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
goto out_free;
memset(new.dirty_bitmap, 0, dirty_bytes);
}
#endif /* not defined CONFIG_S390 */

if (mem->slot >= kvm->nmemslots)
kvm->nmemslots = mem->slot + 1;
Expand Down

0 comments on commit eff0114

Please sign in to comment.