]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Fix host_mapping_level()
authorSheng Yang <sheng@linux.intel.com>
Tue, 5 Jan 2010 11:02:28 +0000 (19:02 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 25 Jan 2010 14:26:37 +0000 (12:26 -0200)
commitcce4f6f4940ba47a8071f6869737be8ac9c0e169
tree19f72919eda5126ca257d6d2f0936e95fdd554fe
parent1ce0b7e876b2c2db914b602d4102f70a9c17002c
KVM: x86: Fix host_mapping_level()

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

Also clean up the coding style of the following loop.

Cc: stable@kernel.org
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c