diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-09-27 06:06:16 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:53:12 -0400 |
commit | 98224bf1d1783a25ccede29ab08309424ec8de25 (patch) | |
tree | 579a4255597fb912944e4540451a4d5048739950 /arch/x86 | |
parent | 33f91edb9211f5c0392071f9eb01958ec69f2193 (diff) |
KVM: MMU: audit: fix vcpu's spte walking
After nested nested paging, it may using long mode to shadow 32/PAE paging
guest, so this patch fix it
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/mmu_audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu_audit.c b/arch/x86/kvm/mmu_audit.c index bd2b1be7066e..dcca3e7d7b4e 100644 --- a/arch/x86/kvm/mmu_audit.c +++ b/arch/x86/kvm/mmu_audit.c | |||
@@ -51,7 +51,7 @@ static void mmu_spte_walk(struct kvm_vcpu *vcpu, inspect_spte_fn fn) | |||
51 | if (!VALID_PAGE(vcpu->arch.mmu.root_hpa)) | 51 | if (!VALID_PAGE(vcpu->arch.mmu.root_hpa)) |
52 | return; | 52 | return; |
53 | 53 | ||
54 | if (vcpu->arch.mmu.shadow_root_level == PT64_ROOT_LEVEL) { | 54 | if (vcpu->arch.mmu.root_level == PT64_ROOT_LEVEL) { |
55 | hpa_t root = vcpu->arch.mmu.root_hpa; | 55 | hpa_t root = vcpu->arch.mmu.root_hpa; |
56 | 56 | ||
57 | sp = page_header(root); | 57 | sp = page_header(root); |