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 0/5][RFC] lwp: adding support for AMD lightweight profiling
Date: Fri, 11 Feb 2011 10:28:10 -0600	[thread overview]
Message-ID: <4D55639A.5040506@amd.com> (raw)

Hi,

The following patch set is to enable lightweight profiling for AMD CPUs. 
Note that they are targeted at Xen-4.1 beyond. But I am posting them now 
for comments. The changes are summarized as the following:

1. The patches extend CPUID leaves (in tools) from 0x80000008 to 
0x8000001c. The idea of this change was borrowed from Christoph Egger's 
nested virtualization tools patch.
2. Because TS doesn't track LWP xsave area, we have to save and restore 
this area on every domain_context_switch. For this purpose, we add a new 
parameter in xsave/xrstor function to specify the save/restore area in 
EAX:EDX. We check some bits (xsave_read.hdr and lwp_cfg MSR) to avoid 
unnecessary save/restore. A similar idea was proposed to Linux kernel by 
Hans Rosenfeld.
3. Inside svm.c, we keep track of lwp_cfg MSR for various purposes. In 
comparison, lwp_cbaddr is handed by xsave/xrstor automatically.

Please comment. I would start to submit a formal one after 4.1 is closed.

Thanks,
-Wei

                 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=4D55639A.5040506@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.