KVM: MMU: support disable/enable mmu audit dynamicly
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 30 Aug 2010 10:22:53 +0000 (18:22 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:56 +0000 (10:51 +0200)
commit8b1fe17cc7a8b2c62b400dcbfaebd96da6b4f58e
treed453a7a24163e58fee9830b42c101fd717a0f67c
parent84e0cefa8ddd5d5018d3b582e1e90585ed551757
KVM: MMU: support disable/enable mmu audit dynamicly

Add a r/w module parameter named 'mmu_audit', it can control audit
enable/disable:

enable:
  echo 1 > /sys/module/kvm/parameters/mmu_audit

disable:
  echo 0 > /sys/module/kvm/parameters/mmu_audit

This patch not change the logic

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