Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186052
b: refs/heads/master
c: 6316e1c
h: refs/heads/master
v: v3
  • Loading branch information
Rik van Riel authored and Marcelo Tosatti committed Mar 1, 2010
1 parent fbbec31 commit af4ef2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f0b1ab6fb045a1324d9435ba00c2940783b0041
refs/heads/master: 6316e1c8c6af6ccb55ff8564231710660608f46c
10 changes: 8 additions & 2 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,15 @@ static int kvm_age_rmapp(struct kvm *kvm, unsigned long *rmapp,
u64 *spte;
int young = 0;

/* always return old for EPT */
/*
* Emulate the accessed bit for EPT, by checking if this page has
* an EPT mapping, and clearing it if it does. On the next access,
* a new EPT mapping will be established.
* This has some overhead, but not as much as the cost of swapping
* out actively used pages or breaking up actively used hugepages.
*/
if (!shadow_accessed_mask)
return 0;
return kvm_unmap_rmapp(kvm, rmapp, data);

spte = rmap_next(kvm, rmapp, NULL);
while (spte) {
Expand Down

0 comments on commit af4ef2e

Please sign in to comment.