summaryrefslogtreecommitdiff
path: root/kvm_paging_tmpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'kvm_paging_tmpl.h')
-rw-r--r--kvm_paging_tmpl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvm_paging_tmpl.h b/kvm_paging_tmpl.h
index 308a007..c8762c2 100644
--- a/kvm_paging_tmpl.h
+++ b/kvm_paging_tmpl.h
@@ -356,6 +356,8 @@ static uint64_t *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
direct = 1;
if (!is_dirty_gpte(gw->ptes[level - delta]))
access &= ~ACC_WRITE_MASK;
+ access &= gw->pte_access;
+
table_gfn = gpte_to_gfn(gw->ptes[level - delta]);
/* advance table_gfn when emulating 1gb pages with 4k */
if (delta == 0)