]> git.baikalelectronics.ru Git - kernel.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)
commit5c6f1ec52f6b70cf2d81bfa3cd4fc8844d0e1de8
tree91a1851ad84d2380a5cb9c1e9223d44ffc87365e
parentd6ef62acefa1f7de990a4e5041b8952a2dde6742
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