]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: introduce kvm_alloc/free_memslots
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 17 May 2015 09:41:37 +0000 (11:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 26 May 2015 10:39:53 +0000 (12:39 +0200)
commit34e423b6c1b5c0117ca69eb19d24fb31d7ba63a9
treee8fd4976c2af4134d3487a5720c52116c832aa0a
parent4c96a34b84f1413efb9d21b82cc0e551c0939461
KVM: introduce kvm_alloc/free_memslots

kvm_alloc_memslots is extracted out of previously scattered code
that was in kvm_init_memslots_id and kvm_create_vm.

kvm_free_memslot and kvm_free_memslots are new names of
kvm_free_physmem and kvm_free_physmem_slot, but they also take
an explicit pointer to struct kvm_memslots.

This will simplify the transition to multiple address spaces,
each represented by one pointer to struct kvm_memslots.

Reviewed-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Reviewed-by: Radim Krcmar <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c