KVM: MMU: fix huge page adapted on non-PAE host
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Mon, 28 May 2012 06:10:43 +0000 (14:10 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 28 May 2012 14:41:15 +0000 (17:41 +0300)
commitc35866678391861942b3836c219a8898a259255a
tree0ed5dcd923f1228ea1385e069fb8b47c8f3d2e62
parentb48b2c3e50433ff6f7e46186daa7f986bd960215
KVM: MMU: fix huge page adapted on non-PAE host

The huge page size is 4M on non-PAE host, but 2M page size is used in
transparent_hugepage_adjust(), so the page we get after adjust the
mapping level is not the head page, the BUG_ON() will be triggered

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c