Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93835
b: refs/heads/master
c: 855149a
h: refs/heads/master
i:
  93833: c51ae9e
  93831: 5527233
v: v3
  • Loading branch information
Izik Eidus authored and Avi Kivity committed Apr 27, 2008
1 parent 5703053 commit f94aa2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69a9f69bb24d6d3dbf3d2ba542ddceeda40536d5
refs/heads/master: 855149aaa90016c576a0e684361a34f8047307d0
8 changes: 8 additions & 0 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,14 @@ static void rmap_write_protect(struct kvm *kvm, u64 gfn)
}
spte = rmap_next(kvm, rmapp, spte);
}
if (write_protected) {
struct page *page;

spte = rmap_next(kvm, rmapp, NULL);
page = pfn_to_page((*spte & PT64_BASE_ADDR_MASK) >> PAGE_SHIFT);
SetPageDirty(page);
}

/* check for huge page mappings */
rmapp = gfn_to_rmap(kvm, gfn, 1);
spte = rmap_next(kvm, rmapp, NULL);
Expand Down

0 comments on commit f94aa2e

Please sign in to comment.