]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Make cmpxchg_gpte aware of nesting too
authorRoedel, Joerg <Joerg.Roedel@amd.com>
Wed, 20 Apr 2011 13:33:16 +0000 (15:33 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:26 +0000 (08:39 -0400)
commit9f8332e5f41929052f9871facad73252cff80d3a
treeca0c7ec1e95aa3b6087ae0191a19fa1e0d4ca6b0
parentf5b7d9a9da2590e9b07d9f14865b873a9476855a
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 <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h