As CONFIG_KVM_DEBUG has been introduced in the former patch, it's better to replace MMU_DEBUG with CONFIG_KVM_DEBUG. Signed-off-by: Yi Wang <wang.yi59@xxxxxxxxxx> --- arch/x86/kvm/mmu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 1e9ba81..d54214e 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -68,9 +68,8 @@ enum { AUDIT_POST_SYNC }; -#undef MMU_DEBUG -#ifdef MMU_DEBUG +#ifdef CONFIG_KVM_DEBUG static bool dbg = 0; module_param(dbg, bool, 0644); @@ -1994,7 +1993,7 @@ int kvm_test_age_hva(struct kvm *kvm, unsigned long hva) return kvm_handle_hva(kvm, hva, 0, kvm_test_age_rmapp); } -#ifdef MMU_DEBUG +#ifdef CONFIG_KVM_DEBUG static int is_empty_shadow_page(u64 *spt) { u64 *pos; -- 1.8.3.1