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)
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>

No differences found