KVM: x86: reintroduce pte_list_remove, but including mmu_spte_clear_track_bits
authorWei Yang <richard.weiyang@gmail.com>
Thu, 4 Oct 2018 02:04:23 +0000 (10:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:30:12 +0000 (00:30 +0200)
commite7912386ede89d2aa1f72ebb74969e48e9d5f56c
tree6a70d452d025c90e5ab55ae438863b91e223dbb9
parent8daf346226b22e565baf27ccaec58fed9e108b42
KVM: x86: reintroduce pte_list_remove, but including mmu_spte_clear_track_bits

rmap_remove() removes the sptep after locating the correct rmap_head but,
in several cases, the caller has already known the correct rmap_head.

This patch introduces a new pte_list_remove(); because it is known that
the spte is present (or it would not have an rmap_head), it is safe
to remove the tracking bits without any previous check.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c