From: Kai Huang <kai.huang@linux.intel.com>
To: pbonzini@redhat.com, fengguang.wu@intel.com, kvm@vger.kernel.org
Cc: Kai Huang <kai.huang@linux.intel.com>
Subject: [PATCH] KVM: trace: fix trace_kvm_pml_full build error on i386
Date: Fri, 30 Jan 2015 11:04:52 +0800 [thread overview]
Message-ID: <1422587092-10125-1-git-send-email-kai.huang@linux.intel.com> (raw)
Fix trace_kvm_pml_full build error on i386, introduced by below commit:
commit 19cf3eb32410 ("KVM: VMX: Add PML support in VMX")
In above commit trace_kvm_pml_full was only defined in CONFIG_X86_64, which
breaks build on i386. Fix it by moving trace_kvm_pml_full definition out of
CONFIG_X86_64.
Tested with Fengguang's .config, and also did sanity test on x86_64.
Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
---
arch/x86/kvm/trace.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h
index a139977..7c7bc8b 100644
--- a/arch/x86/kvm/trace.h
+++ b/arch/x86/kvm/trace.h
@@ -846,6 +846,8 @@ TRACE_EVENT(kvm_track_tsc,
__print_symbolic(__entry->host_clock, host_clocks))
);
+#endif /* CONFIG_X86_64 */
+
/*
* Tracepoint for PML full VMEXIT.
*/
@@ -864,8 +866,6 @@ TRACE_EVENT(kvm_pml_full,
TP_printk("vcpu %d: PML full", __entry->vcpu_id)
);
-#endif /* CONFIG_X86_64 */
-
TRACE_EVENT(kvm_ple_window,
TP_PROTO(bool grow, unsigned int vcpu_id, int new, int old),
TP_ARGS(grow, vcpu_id, new, old),
--
2.1.0
reply other threads:[~2015-01-30 3:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1422587092-10125-1-git-send-email-kai.huang@linux.intel.com \
--to=kai.huang@linux.intel.com \
--cc=fengguang.wu@intel.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox