commit | fb03cb6f44236f4bef62a0dda8e025ff5ca51417 | [log] [tgz] |
---|---|---|
author | Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> | Wed Feb 08 12:59:10 2012 +0900 |
committer | Avi Kivity <avi@redhat.com> | Thu Mar 08 14:10:19 2012 +0200 |
tree | fdece464add97210435bb4d778f7b09a852f61e3 | |
parent | 9eed0735ca6a5cf386a4998ad4b6d52d1e29353f [diff] |
KVM: Introduce gfn_to_index() which returns the index for a given level This patch cleans up the code and removes the "(void)level;" warning suppressor. Note that we can also use this for PT_PAGE_TABLE_LEVEL to treat every level uniformly later. Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>