All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Huang <wei.huang2@amd.com>
To: "'xen-devel@lists.xensource.com'" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir@xen.org>, "Wei, Gang" <gang.wei@intel.com>
Subject: [PATCH 3/5][RFC] lwp: adding support for AMD lightweight profiling
Date: Fri, 11 Feb 2011 10:28:58 -0600	[thread overview]
Message-ID: <4D5563CA.7030807@amd.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 79 bytes --]

Add LWP related feature flags.

Signed-off-by: Wei Huang <wei.huang2@amd.com>


[-- Attachment #2: lwp_patch_3.txt --]
[-- Type: text/plain, Size: 1339 bytes --]

exporting patch:
# HG changeset patch
# User Wei Huang <wei.huang2@amd.com>
# Date 1297376709 21600
# Node ID 705de1dacabeb899fae6e8121483b2d88d120e57
# Parent  20d10f3a6d4c6b7357da0cf35a9fe28100cb582d
Add LWP related feature flags.

diff -r 20d10f3a6d4c -r 705de1dacabe xen/include/asm-x86/cpufeature.h
--- a/xen/include/asm-x86/cpufeature.h	Thu Feb 10 16:17:01 2011 -0600
+++ b/xen/include/asm-x86/cpufeature.h	Thu Feb 10 16:25:09 2011 -0600
@@ -207,6 +207,8 @@
 
 #define cpu_has_xsave           boot_cpu_has(X86_FEATURE_XSAVE)
 
+#define cpu_has_lwp             boot_cpu_has(X86_FEATURE_LWP)
+
 #define cpu_has_arch_perfmon    boot_cpu_has(X86_FEATURE_ARCH_PERFMON)
 
 #define cpu_has_rdtscp          boot_cpu_has(X86_FEATURE_RDTSCP)
diff -r 20d10f3a6d4c -r 705de1dacabe xen/include/asm-x86/msr-index.h
--- a/xen/include/asm-x86/msr-index.h	Thu Feb 10 16:17:01 2011 -0600
+++ b/xen/include/asm-x86/msr-index.h	Thu Feb 10 16:25:09 2011 -0600
@@ -253,6 +253,10 @@
 #define MSR_AMD_PATCHLEVEL		0x0000008b
 #define MSR_AMD_PATCHLOADER		0xc0010020
 
+/* AMD Lightweight Profiling MSRs */
+#define MSR_AMD64_LWP_CFG                 0xc0000105
+#define MSR_AMD64_LWP_CBADDR              0xc0000106
+
 /* AMD OS Visible Workaround MSRs */
 #define MSR_AMD_OSVW_ID_LENGTH          0xc0010140
 #define MSR_AMD_OSVW_STATUS             0xc0010141

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2011-02-11 16:28 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=4D5563CA.7030807@amd.com \
    --to=wei.huang2@amd.com \
    --cc=gang.wei@intel.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.