From: Marcelo Tosatti Date: Wed, 12 Dec 2007 00:12:27 +0000 (-0500) Subject: KVM: MMU: Fix SMP shadow instantiation race X-Git-Tag: v2.6.25-rc1~1138^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7819026eefee53eaaac3fdce1a2f157c7ea943fe;p=pandora-kernel.git KVM: MMU: Fix SMP shadow instantiation race There is a race where VCPU0 is shadowing a pagetable entry while VCPU1 is updating it, which results in a stale shadow copy. Fix that by comparing the contents of the cached guest pte with the current guest pte after write-protecting the guest pagetable. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- Reading git-diff-tree failed