Re: [PATCH 0/4] kvm: x86: introduce CONFIG_KVM_DEBUG

From: Paolo Bonzini
Date: Wed Jul 03 2019 - 12:26:35 EST


On 01/07/19 08:21, Yi Wang wrote:
> This series introduce CONFIG_KVM_DEBUG, using which we can make
> the invoking *_debug in KVM simly and uniform.
>
> FYI: the former discussion can been found in:
> https://www.spinics.net/lists/kvm/msg187026.html

Basically everything except MMU_DEBUG can just be deleted, they are
little more than debugging printk that were left in the code.

For MMU_DEBUG, the way to go is to add more tracepoints, but then
converting all pgprintk occurrences to tracepoints would be wrong. You
can only find the "right" tracepoints when debugging MMU code. I do
have a couple patches in this area, I will send them when possible.

Paolo

> Yi Wang (4):
> kvm: x86: Add CONFIG_KVM_DEBUG
> kvm: x86: allow set apic and ioapic debug dynamically
> kvm: x86: replace MMU_DEBUG with CONFIG_KVM_DEBUG
> kvm: x86: convert TSC pr_debugs to be gated by CONFIG_KVM_DEBUG
>
> arch/x86/kvm/Kconfig | 8 ++++++++
> arch/x86/kvm/ioapic.c | 2 +-
> arch/x86/kvm/lapic.c | 5 ++++-
> arch/x86/kvm/mmu.c | 5 ++---
> arch/x86/kvm/x86.c | 18 ++++++++++++------
> 5 files changed, 27 insertions(+), 11 deletions(-)
>