KVM: MMU: cleanup/fix mmu audit code
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 1 Apr 2010 08:50:45 +0000 (16:50 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:27 +0000 (12:17 +0300)
commit805d32dea4dfb8319aaf7e73a681ad410a5e331a
tree0584f3771086d0ee3a599c7a44b6ad8ff4c1835f
parent306d071f179c28c97688cb91c8585fd5ab840a9e
KVM: MMU: cleanup/fix mmu audit code

This patch does:
- 'sp' parameter in inspect_spte_fn() is not used, so remove it
- fix 'kvm' and 'slots' is not defined in count_rmaps()
- fix a bug in inspect_spte_has_rmap()

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