]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kvm/paging_tmpl.h
KVM: MMU: fix conflict access permissions in direct sp
[net-next-2.6.git] / arch / x86 / kvm / paging_tmpl.h
index 89d66ca4d87cb2982ae48c5877580e733ab0cce8..2331bdc2b549569e56f7dcec275c72bf06275928 100644 (file)
@@ -342,6 +342,7 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
                        /* advance table_gfn when emulating 1gb pages with 4k */
                        if (delta == 0)
                                table_gfn += PT_INDEX(addr, level);
+                       access &= gw->pte_access;
                } else {
                        direct = 0;
                        table_gfn = gw->table_gfn[level - 2];