Messages in this thread Patch in this message | | | From | Yi Wang <> | Subject | [PATCH 1/4] kvm: x86: Add CONFIG_KVM_DEBUG | Date | Mon, 1 Jul 2019 14:21:08 +0800 |
| |
There are some *_debug functions in KVM, it may be better to introduce CONFIG_DEBUG_KVM to replace the *_debug macro, which can avoid bloating and slowing KVM, as Sean suggested.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> --- arch/x86/kvm/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index fc04241..7e76eb2 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -95,6 +95,14 @@ config KVM_MMU_AUDIT This option adds a R/W kVM module parameter 'mmu_audit', which allows auditing of KVM MMU events at runtime. +config KVM_DEBUG + bool "Enable KVM debugging" + default n + depends on KVM + ---help--- + Say Y here if you want to enable verbose KVM debug output. + + # OK, it's a little counter-intuitive to do this, but it puts it neatly under # the virtualization menu. source "drivers/vhost/Kconfig" -- 1.8.3.1
| |