]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67a0ce225a832e320ab3ebea699b332167fa5f1b
tree6a70d452d025c90e5ab55ae438863b91e223dbb9
parentd10ab48f2e199bf8ede48ccd7e6f63aa65c92e2a
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