[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1561962071-25974-4-git-send-email-wang.yi59@zte.com.cn>
Date: Mon, 1 Jul 2019 14:21:10 +0800
From: Yi Wang <wang.yi59@....com.cn>
To: pbonzini@...hat.com
Cc: rkrcmar@...hat.com, tglx@...utronix.de, mingo@...hat.com,
bp@...en8.de, hpa@...or.com, x86@...nel.org, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, xue.zhihong@....com.cn,
wang.yi59@....com.cn, up2wing@...il.com, wang.liang82@....com.cn
Subject: [PATCH 3/4] kvm: x86: replace MMU_DEBUG with CONFIG_KVM_DEBUG
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@....com.cn>
---
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
Powered by blists - more mailing lists