KVM: sort memslots by its size and use line search