]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Introduce gfn_to_index() which returns the index for a given level
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Wed, 8 Feb 2012 03:59:10 +0000 (12:59 +0900)
committerAvi Kivity <avi@redhat.com>
Thu, 8 Mar 2012 12:10:19 +0000 (14:10 +0200)
commit2c5cdb27c9849a02594c90c7b2a5fc971ffc6543
treefdece464add97210435bb4d778f7b09a852f61e3
parent5b4a8f27a9ba6d903e78bb174298de8fe51065a6
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>
arch/x86/kvm/mmu.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c