KVM: x86: Fix host_mapping_level()
authorSheng Yang <sheng@linux.intel.com>
Tue, 5 Jan 2010 11:02:28 +0000 (19:02 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Jan 2010 23:02:46 +0000 (15:02 -0800)
commit0118bac21740345d8b4754da24f6ce1aab4a91bf
tree533d06c7fea966687fb87a656b604abd60fbda33
parent493821093f18655d39f16e31264c00b022640701
KVM: x86: Fix host_mapping_level()

commit 82b7005f0e72d8d1a8226e4c192cbb0850d10b3f upstream.

When found a error hva, should not return PAGE_SIZE but the level...

Also clean up the coding style of the following loop.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c