commit | 13d22b6aebb000aeaf137862c6c0e0c4d138d798 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Wed Sep 12 15:12:09 2012 +0300 |
committer | Avi Kivity <avi@redhat.com> | Thu Sep 20 13:00:08 2012 +0300 |
tree | e643caac077496bdaaeaf7c12101b43f62b34393 | |
parent | 97d64b788114be1c4dc4bfe7a8ba2bf9643fe6af [diff] |
KVM: MMU: Simplify walk_addr_generic() loop The page table walk is coded as an infinite loop, with a special case on the last pte. Code it as an ordinary loop with a termination condition on the last pte (large page or walk length exhausted), and put the last pte handling code after the loop where it belongs. Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>