Commit 25cc0565 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: x86/mmu: rephrase unclear comment



If accessed bits are not supported there simple isn't any distinction
between accessed and non-accessed gPTEs, so the comment does not make
much sense.  Rephrase it in terms of what happens if accessed bits
*are* supported.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 39e7e2bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -151,7 +151,7 @@ static bool FNAME(prefetch_invalid_gpte)(struct kvm_vcpu *vcpu,
	if (!FNAME(is_present_gpte)(gpte))
	if (!FNAME(is_present_gpte)(gpte))
		goto no_present;
		goto no_present;


	/* if accessed bit is not supported prefetch non accessed gpte */
	/* Prefetch only accessed entries (unless A/D bits are disabled). */
	if (PT_HAVE_ACCESSED_DIRTY(vcpu->arch.mmu) &&
	if (PT_HAVE_ACCESSED_DIRTY(vcpu->arch.mmu) &&
	    !(gpte & PT_GUEST_ACCESSED_MASK))
	    !(gpte & PT_GUEST_ACCESSED_MASK))
		goto no_present;
		goto no_present;