From: Marcelo Tosatti Date: Fri, 7 Dec 2007 12:56:58 +0000 (-0500) Subject: KVM: MMU: Use cmpxchg for pte updates on walk_addr() X-Git-Tag: v2.6.25-rc1~1138^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3e4e63fd9ee8cd5d9047b89e0d463d5c48ee5b5;p=pandora-kernel.git KVM: MMU: Use cmpxchg for pte updates on walk_addr() In preparation for multi-threaded guest pte walking, use cmpxchg() when updating guest pte's. This guarantees that the assignment of the dirty bit can't be lost if two CPU's are faulting the same address simultaneously. [avi: fix kunmap_atomic() parameters] Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- Reading git-diff-tree failed