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)
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>

No differences found