Skip to content

Commit

Permalink
kvm: x86: mmu: Update comment in mark_spte_for_access_track
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junaid Shahid authored and Paolo Bonzini committed Jan 27, 2017
1 parent 312b616 commit 20d6523
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 20d6523

Please sign in to comment.