]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: Don't follow an atomic operation by a non-atomic one
authorAvi Kivity <avi@redhat.com>
Mon, 15 Mar 2010 11:59:55 +0000 (13:59 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:40 +0000 (12:15 +0300)
commit4a5f48f666ccc4ffdbc54241d9cab06806ed7922
tree91a1851ad84d2380a5cb9c1e9223d44ffc87365e
parentdaea3e73cb4ac971bee97f333ae027861d00fc0b
KVM: Don't follow an atomic operation by a non-atomic one

Currently emulated atomic operations are immediately followed by a non-atomic
operation, so that kvm_mmu_pte_write() can be invoked.  This updates the mmu
but undoes the whole point of doing things atomically.

Fix by only performing the atomic operation and the mmu update, and avoiding
the non-atomic write.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c