]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Only mark_page_accessed() if the page was accessed by the guest
authorAvi Kivity <avi@qumranet.com>
Thu, 3 Apr 2008 09:02:21 +0000 (12:02 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 09:00:57 +0000 (12:00 +0300)
commit54f17a655531f80102ccfb531427dbeac5268b61
treea9645557d1d20d344f21ab464137a64896598d58
parent3fd3df9534916599df5bd3c314da54d69bab12d5
KVM: MMU: Only mark_page_accessed() if the page was accessed by the guest

If the accessed bit is not set, the guest has never accessed this page
(at least through this spte), so there's no need to mark the page
accessed.  This provides more accurate data for the eviction algortithm.

Noted by Andrea Arcangeli.

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c