Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20d65236 authored by Junaid Shahid's avatar Junaid Shahid Committed by Paolo Bonzini
Browse files

kvm: x86: mmu: Update comment in mark_spte_for_access_track



Reword the comment to hopefully make it more clear.

Signed-off-by: default avatarJunaid Shahid <junaids@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 312b616b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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),