Skip to content

Commit cf05e8c

Browse files
shvipinsean-jc
authored andcommitted
KVM: x86/mmu: Drop access tracking checks when clearing TDP MMU dirty bits
Drop the unnecessary call to handle access-tracking changes when clearing the dirty status of TDP MMU SPTEs. Neither the Dirty bit nor the Writable bit has any impact on the accessed state of a page, i.e. clearing only the aforementioned bits doesn't make an accessed SPTE suddently not accessed. Signed-off-by: Vipin Sharma <vipinsh@google.com> [sean: split to separate patch, write changelog] Link: https://lore.kernel.org/r/20230321220021.2119033-6-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 89c313f commit cf05e8c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/x86/kvm/mmu/tdp_mmu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,8 +1691,6 @@ static void clear_dirty_pt_masked(struct kvm *kvm, struct kvm_mmu_page *root,
16911691

16921692
__handle_changed_spte(kvm, iter.as_id, iter.gfn, iter.old_spte,
16931693
iter.old_spte & ~dbit, iter.level, false);
1694-
handle_changed_spte_acc_track(iter.old_spte, iter.old_spte & ~dbit,
1695-
iter.level);
16961694
}
16971695

16981696
rcu_read_unlock();

0 commit comments

Comments
 (0)