diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2011-11-24 10:40:57 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-27 10:17:40 +0100 |
commit | bf3e05bc1e2781d5d8d3ddb2d8bf2d6ec207e5cb (patch) | |
tree | 7312367143f00ec1c051831f3a4e6dcc7f8acd92 /arch/xtensa/mm/mmu.c | |
parent | KVM: introduce id_to_memslot function (diff) | |
download | linux-bf3e05bc1e2781d5d8d3ddb2d8bf2d6ec207e5cb.tar.xz linux-bf3e05bc1e2781d5d8d3ddb2d8bf2d6ec207e5cb.zip |
KVM: sort memslots by its size and use line search
Sort memslots base on its size and use line search to find it, so that the
larger memslots have better fit
The idea is from Avi
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/xtensa/mm/mmu.c')
0 files changed, 0 insertions, 0 deletions