From: Avi Kivity Date: Sun, 6 Jun 2010 11:48:06 +0000 (+0300) Subject: KVM: MMU: Atomically check for accessed bit when dropping an spte X-Git-Tag: v2.6.36-rc1~580^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9221dd5ec125fbec1702fae016c6d2ea1a9a3da;p=pandora-kernel.git KVM: MMU: Atomically check for accessed bit when dropping an spte Currently, in the window between the check for the accessed bit, and actually dropping the spte, a vcpu can access the page through the spte and set the bit, which will be ignored by the mmu. Fix by using an exchange operation to atmoically fetch the spte and drop it. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed