diff options
author | Avi Kivity <[email protected]> | 2012-09-12 15:12:09 +0300 |
---|---|---|
committer | Avi Kivity <[email protected]> | 2012-09-20 13:00:08 +0300 |
commit | 13d22b6aebb000aeaf137862c6c0e0c4d138d798 (patch) | |
tree | e643caac077496bdaaeaf7c12101b43f62b34393 /lib/string_helpers.c | |
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 <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions