summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorJunaid Shahid <junaids@google.com>2016-12-21 20:29:31 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-01-27 15:46:39 +0100
commit20d65236d01cdbe14a88f0e2c0f985669f8c41fc (patch)
tree433c4d3cf2beaa1d590813dfbda496e724488a68 /arch/x86/kvm
parent312b616b30d87581b88d3db54c14ed89610cc97b (diff)
downloadop-kernel-dev-20d65236d01cdbe14a88f0e2c0f985669f8c41fc.zip
op-kernel-dev-20d65236d01cdbe14a88f0e2c0f985669f8c41fc.tar.gz
kvm: x86: mmu: Update comment in mark_spte_for_access_track
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>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/mmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index e3312e2..e13041a 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -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),
OpenPOWER on IntegriCloud