KVM: MMU: remove rmap before clear spte
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 13 May 2010 02:07:00 +0000 (10:07 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:46 +0000 (10:35 +0300)
commit6d74229f013ed8e4a00d74cfa7a3fa6a2315c467
tree416b2a3f261a90b6bc0d3f19c10b31b5f14963c8
parente8ad9a707496c163312bcdd6aa3b90603d45dc9b
KVM: MMU: remove rmap before clear spte

Remove rmap before clear spte otherwise it will trigger BUG_ON() in
some functions such as rmap_write_protect().

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c