]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Check for root_level instead of long mode
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Sep 2010 15:30:38 +0000 (17:30 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:27 +0000 (10:52 +0200)
commit254c2a85883949c4e4e126b9fd039dcb961cba50
tree13b3965a5cb6096397ec2ed4cdd5a5a4e2ec7fe6
parentcefe3a8fb4b153b69870ec6f00b139a5efbc7bff
KVM: MMU: Check for root_level instead of long mode

The walk_addr function checks for !is_long_mode in its 64
bit version. But what is meant here is a check for pae
paging. Change the condition to really check for pae paging
so that it also works with nested nested paging.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h