]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Introduce drop_spte()
authorAvi Kivity <avi@redhat.com>
Sun, 6 Jun 2010 11:31:27 +0000 (14:31 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 03:40:17 +0000 (06:40 +0300)
commitf6ee5c07f8dff590c0f38bba94ffb84b54535226
tree4706819e23ade99c43bb676830071da9bd2d0abd
parent25ebfec93a1f88bc6ff203d19b4748f6ca286f27
KVM: MMU: Introduce drop_spte()

When we call rmap_remove(), we (almost) always immediately follow it by
an __set_spte() to a nonpresent pte.  Since we need to perform the two
operations atomically, to avoid losing the dirty and accessed bits, introduce
a helper drop_spte() and convert all call sites.

The operation is still nonatomic at this point.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h