diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-08-30 18:22:53 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:51:56 +0200 |
commit | 8b1fe17cc7a8b2c62b400dcbfaebd96da6b4f58e (patch) | |
tree | d453a7a24163e58fee9830b42c101fd717a0f67c /arch/x86/kvm/Kconfig | |
parent | 84e0cefa8ddd5d5018d3b582e1e90585ed551757 (diff) | |
download | linux-stable-8b1fe17cc7a8b2c62b400dcbfaebd96da6b4f58e.tar.gz linux-stable-8b1fe17cc7a8b2c62b400dcbfaebd96da6b4f58e.tar.bz2 linux-stable-8b1fe17cc7a8b2c62b400dcbfaebd96da6b4f58e.zip |
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>
Diffstat (limited to 'arch/x86/kvm/Kconfig')
-rw-r--r-- | arch/x86/kvm/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index 970bbd479516..ddc131ff438f 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -64,6 +64,13 @@ config KVM_AMD To compile this as a module, choose M here: the module will be called kvm-amd. +config KVM_MMU_AUDIT + bool "Audit KVM MMU" + depends on KVM && TRACEPOINTS + ---help--- + This option adds a R/W kVM module parameter 'mmu_audit', which allows + audit KVM MMU at runtime. + # OK, it's a little counter-intuitive to do this, but it puts it neatly under # the virtualization menu. source drivers/vhost/Kconfig |