kvm: simplify update_memslots invocation
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Nov 2014 09:55:31 +0000 (10:55 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Nov 2014 11:16:13 +0000 (12:16 +0100)
commit5cc150279936a618187c42966a8a2f09177ac80a
treeb340d5adcdc63dfe0417764175ce22d3fa06250b
parentf2a81036516e2b97c07c49dd6d51d36bfa43593d
kvm: simplify update_memslots invocation

The update_memslots invocation is only needed in one case.  Make
the code clearer by moving it to __kvm_set_memory_region, and
removing the wrapper around insert_memslot.

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