diff options
Diffstat (limited to 'drivers/kvm/paging_tmpl.h')
-rw-r--r-- | drivers/kvm/paging_tmpl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index 6acb16ea5ce2..4e6670ff1847 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/drivers/kvm/paging_tmpl.h | |||
@@ -323,7 +323,7 @@ static int FNAME(fix_write_pf)(struct kvm_vcpu *vcpu, | |||
323 | mark_page_dirty(vcpu->kvm, gfn); | 323 | mark_page_dirty(vcpu->kvm, gfn); |
324 | *shadow_ent |= PT_WRITABLE_MASK; | 324 | *shadow_ent |= PT_WRITABLE_MASK; |
325 | *guest_ent |= PT_DIRTY_MASK; | 325 | *guest_ent |= PT_DIRTY_MASK; |
326 | rmap_add(vcpu->kvm, shadow_ent); | 326 | rmap_add(vcpu, shadow_ent); |
327 | 327 | ||
328 | return 1; | 328 | return 1; |
329 | } | 329 | } |
@@ -353,6 +353,9 @@ static int FNAME(page_fault)(struct kvm_vcpu *vcpu, gva_t addr, | |||
353 | int write_pt = 0; | 353 | int write_pt = 0; |
354 | 354 | ||
355 | pgprintk("%s: addr %lx err %x\n", __FUNCTION__, addr, error_code); | 355 | pgprintk("%s: addr %lx err %x\n", __FUNCTION__, addr, error_code); |
356 | |||
357 | mmu_topup_memory_caches(vcpu); | ||
358 | |||
356 | /* | 359 | /* |
357 | * Look up the shadow pte for the faulting address. | 360 | * Look up the shadow pte for the faulting address. |
358 | */ | 361 | */ |