]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: update_memslots: drop not needed check for the same slot
authorIgor Mammedov <imammedo@redhat.com>
Mon, 1 Dec 2014 17:29:24 +0000 (17:29 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Dec 2014 14:29:09 +0000 (15:29 +0100)
commitdacb6f1dd4163b05790a7c1a61b0b60716095b0e
tree1d6d8facc9b31c5c34bf1cd161b5da5c8b7282ae
parente7e801ef65e3da3081e685d3dd7eb36d2f87fcbe
kvm: update_memslots: drop not needed check for the same slot

UP/DOWN shift loops will shift array in needed
direction and stop at place where new slot should
be placed regardless of old slot size.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c