Skip to content
Commit be38d276 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@redhat.com>
parent dd180b3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment