diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-06-10 11:27:06 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:54 -0400 |
commit | 48fc03174b125238c541cf00acd5e9b9dff6b9ba (patch) | |
tree | 333d4c98cf29c764f70c1496617ade757702c505 | |
parent | e58b0f9e0e2c17112e375a3f0ca1ef7e57730f68 (diff) |
KVM: MMU audit: nontrapping ptes in nonleaf level
It is valid to set non leaf sptes as notrap.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/kvm/mmu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 4c2585cab189..86433513fb71 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -3109,12 +3109,7 @@ static void audit_mappings_page(struct kvm_vcpu *vcpu, u64 page_pte, | |||
3109 | 3109 | ||
3110 | va = canonicalize(va); | 3110 | va = canonicalize(va); |
3111 | if (level > 1) { | 3111 | if (level > 1) { |
3112 | if (ent == shadow_notrap_nonpresent_pte) | 3112 | if (is_shadow_present_pte(ent)) |
3113 | printk(KERN_ERR "audit: (%s) nontrapping pte" | ||
3114 | " in nonleaf level: levels %d gva %lx" | ||
3115 | " level %d pte %llx\n", audit_msg, | ||
3116 | vcpu->arch.mmu.root_level, va, level, ent); | ||
3117 | else | ||
3118 | audit_mappings_page(vcpu, ent, va, level - 1); | 3113 | audit_mappings_page(vcpu, ent, va, level - 1); |
3119 | } else { | 3114 | } else { |
3120 | gpa_t gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, va); | 3115 | gpa_t gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, va); |