]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
commitfcd6dbac9267c1c06a205ad8bb4bd027c0ace7f7
treea9645557d1d20d344f21ab464137a64896598d58
parentd39f13b0da7fa7f705fbe6c80995205d0380bc7a
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