From: Roedel, Joerg Date: Wed, 20 Apr 2011 13:33:16 +0000 (+0200) Subject: KVM: MMU: Make cmpxchg_gpte aware of nesting too X-Git-Tag: v3.0-rc1~350^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a78484c60e35555d6e0e5b1eb83d4913621c59fb;p=pandora-kernel.git KVM: MMU: Make cmpxchg_gpte aware of nesting too This patch makes the cmpxchg_gpte() function aware of the difference between l1-gfns and l2-gfns when nested virtualization is in use. This fixes a potential data-corruption problem in the l1-guest and makes the code work correct (at least as correct as the hardware which is emulated in this code) again. Cc: stable@kernel.org Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity --- Reading git-diff-tree failed