]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
kvm: x86: mmu: Update comment in mark_spte_for_access_track
authorJunaid Shahid <junaids@google.com>
Thu, 22 Dec 2016 04:29:31 +0000 (20:29 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 14:46:39 +0000 (15:46 +0100)
Reword the comment to hopefully make it more clear.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c

index e3312e22e8db0853fd9935e493e1bc40d40b449a..e13041ac7cdf67bb021b004748beb45c287b549e 100644 (file)
@@ -708,9 +708,9 @@ static u64 mark_spte_for_access_track(u64 spte)
                return spte;
 
        /*
-        * Verify that the write-protection that we do below will be fixable
-        * via the fast page fault path. Currently, that is always the case, at
-        * least when using EPT (which is when access tracking would be used).
+        * Making an Access Tracking PTE will result in removal of write access
+        * from the PTE. So, verify that we will be able to restore the write
+        * access in the fast page fault path later on.
         */
        WARN_ONCE((spte & PT_WRITABLE_MASK) &&
                  !spte_can_locklessly_be_made_writable(spte),