From: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Wang <wei.wang2@amd.com>, Haitao Shan <haitao.shan@intel.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Keir Fraser <keir@xen.org>
Subject: Re: [PATCH 2 of 2] vpmu: Add a vpmu cpuid function
Date: Fri, 20 Jan 2012 13:40:19 +0100 [thread overview]
Message-ID: <1375017.thPP8t1FNn@amur> (raw)
In-Reply-To: <CB3EF874.37D58%keir@xen.org>
Hi Ian,
Am Freitag 20 Januar 2012, 10:54:44 schrieb Keir Fraser:
> On 20/01/2012 10:49, "Dietmar Hahn" <dietmar.hahn@ts.fujitsu.com> wrote:
>
> >> Our CPUID configuration is done per-domain, and from
> >> tools/libxc/xc_cpuid_x86.c. CPUID adjustments implemented within the
> >> hypervisor are generally not acceptable without very good reason.
> >
> > Then a way is needed to have access to the opt_vpmu_enabled variable within
> > the
> > hypervisor from the tools to decide the enabling of the flag (is there such a
> > way?) or the mechanism with the boot variable must be changed.
> > The opt_vpmu_enabled boot variable was introduced because of a PMU problem in
> > the Nehalem cpus leading sometimes to hypervisor crashes. But with the done
> > quirk we never had a crash anymore.
> > So maybe we can always switch on the vpmu stuff in the hypervisor and add a
> > flag in the domain configuration when somebody wants to do some performance
> > tests?
>
> Yes!
>
> It's obviously an option of fairly narrow interest. If someone tries to
> enable the per-domain option on a CPU which has problems, you can fail the
> domain creation, or print a warning in the hypervisor log, or whatever. Any
> sensible option in that respect is fine by me!
What is the best solution for this?
A domain specific configuration option is needed (vpmu?) which is usable in
libxc/xc_cpuid_x86.c to select/deselect special vpmu bits in the cpuid command.
Can you point me to an proper example?
Thanks.
Dietmar.
--
Company details: http://ts.fujitsu.com/imprint.html
next prev parent reply other threads:[~2012-01-20 12:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 13:54 [PATCH 2 of 2] vpmu: Add a vpmu cpuid function Dietmar Hahn
2012-01-20 10:29 ` Keir Fraser
2012-01-20 10:49 ` Dietmar Hahn
2012-01-20 10:54 ` Keir Fraser
2012-01-20 12:40 ` Dietmar Hahn [this message]
2012-01-20 12:45 ` Ian Campbell
2012-01-20 13:33 ` Keir Fraser
2012-01-20 13:37 ` Ian Campbell
2012-01-20 13:47 ` Keir Fraser
2012-01-20 14:08 ` Dietmar Hahn
2012-01-20 10:50 ` Keir Fraser
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=1375017.thPP8t1FNn@amur \
--to=dietmar.hahn@ts.fujitsu.com \
--cc=haitao.shan@intel.com \
--cc=ian.campbell@citrix.com \
--cc=keir@xen.org \
--cc=wei.wang2@amd.com \
--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.