KVM: MMU: do not need atomicly to set/clear spte
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 11 Jul 2011 19:31:28 +0000 (03:31 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Jul 2011 08:50:37 +0000 (11:50 +0300)
commit603e0651cfc8562b103454d7ded71f3ad1eb3a37
tree1e858d649eb86f4e31adfa8233ff16a34268cf2c
parent1df9f2dc39948c3cb900725b7f0754fb385c8354
KVM: MMU: do not need atomicly to set/clear spte

Now, the spte is just from nonprsent to present or present to nonprsent, so
we can use some trick to set/clear spte non-atomicly as linux kernel does

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c