]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit82b7005f0e72d8d1a8226e4c192cbb0850d10b3f
tree19f72919eda5126ca257d6d2f0936e95fdd554fe
parente1f829b6f453c7985cfdfab616994b4051c3d788
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