From: Avi Kivity Date: Sun, 6 Jun 2010 11:31:27 +0000 (+0300) Subject: KVM: MMU: Introduce drop_spte() X-Git-Tag: v2.6.36-rc1~580^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be38d276b0189fa86231fc311428622a1981ad62;p=pandora-kernel.git 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 --- Reading git-diff-tree failed