aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/kvm/paging_tmpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h
index 2dbf4307ed9e..6bc41950fbb3 100644
--- a/drivers/kvm/paging_tmpl.h
+++ b/drivers/kvm/paging_tmpl.h
@@ -274,7 +274,7 @@ static int FNAME(fix_write_pf)(struct kvm_vcpu *vcpu,
274 struct kvm_mmu_page *page; 274 struct kvm_mmu_page *page;
275 275
276 if (is_writeble_pte(*shadow_ent)) 276 if (is_writeble_pte(*shadow_ent))
277 return 0; 277 return !user || (*shadow_ent & PT_USER_MASK);
278 278
279 writable_shadow = *shadow_ent & PT_SHADOW_WRITABLE_MASK; 279 writable_shadow = *shadow_ent & PT_SHADOW_WRITABLE_MASK;
280 if (user) { 280 if (user) {