]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Make shadow pte updates atomic
authorAvi Kivity <avi@qumranet.com>
Thu, 31 May 2007 12:23:35 +0000 (15:23 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:44 +0000 (12:05 +0300)
commit6710268b5c9b987822e85865085fa7d600388296
tree4668ee0dc19571e4f05443555ec0e807692572e6
parent0c2421fd5ec3f0e6c397fcc4b21df72e49bfc563
KVM: Make shadow pte updates atomic

With guest smp, a second vcpu might see partial updates when the first
vcpu services a page fault.  So delay all updates until we have figured
out what the pte should look like.

Note that on i386, this is still not completely atomic as a 64-bit write
will be split into two on a 32-bit machine.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/paging_tmpl.h