From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Xu, Dongxiao" <dongxiao.xu@intel.com>
Cc: "keir@xen.org" <keir@xen.org>,
"Ian.Campbell@citrix.com" <Ian.Campbell@citrix.com>,
"stefano.stabellini@eu.citrix.com"
<stefano.stabellini@eu.citrix.com>,
"George.Dunlap@eu.citrix.com" <George.Dunlap@eu.citrix.com>,
"andrew.cooper3@citrix.com" <andrew.cooper3@citrix.com>,
"Ian.Jackson@eu.citrix.com" <Ian.Jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Jan Beulich <JBeulich@suse.com>,
"dgdegra@tycho.nsa.gov" <dgdegra@tycho.nsa.gov>
Subject: Re: [PATCH v11 1/9] x86: add generic MSR access hypercall
Date: Mon, 23 Jun 2014 09:32:34 -0400 [thread overview]
Message-ID: <20140623133234.GD9153@laptop.dumpdata.com> (raw)
In-Reply-To: <40776A41FC278F40B59438AD47D147A911A488CA@SHSMSX104.ccr.corp.intel.com>
On Mon, Jun 23, 2014 at 07:29:41AM +0000, Xu, Dongxiao wrote:
> > -----Original Message-----
> > From: Jan Beulich [mailto:JBeulich@suse.com]
> > Sent: Monday, June 23, 2014 2:45 PM
> > To: Xu, Dongxiao
> > Cc: andrew.cooper3@citrix.com; Ian.Campbell@citrix.com;
> > George.Dunlap@eu.citrix.com; Ian.Jackson@eu.citrix.com;
> > stefano.stabellini@eu.citrix.com; xen-devel@lists.xen.org;
> > konrad.wilk@oracle.com; dgdegra@tycho.nsa.gov; keir@xen.org
> > Subject: RE: [PATCH v11 1/9] x86: add generic MSR access hypercall
> >
> > >>> On 23.06.14 at 08:27, <dongxiao.xu@intel.com> wrote:
> > >> -----Original Message-----
> > >> From: Jan Beulich [mailto:JBeulich@suse.com]
> > >> Sent: Friday, June 20, 2014 11:01 PM
> > >> To: Xu, Dongxiao
> > >> Cc: andrew.cooper3@citrix.com; Ian.Campbell@citrix.com;
> > >> George.Dunlap@eu.citrix.com; Ian.Jackson@eu.citrix.com;
> > >> stefano.stabellini@eu.citrix.com; xen-devel@lists.xen.org;
> > >> konrad.wilk@oracle.com; dgdegra@tycho.nsa.gov; keir@xen.org
> > >> Subject: Re: [PATCH v11 1/9] x86: add generic MSR access hypercall
> > >>
> > >> >>> On 20.06.14 at 16:31, <dongxiao.xu@intel.com> wrote:
> > >> > Add a generic MSR access hypercall for tool stack or other components to
> > >> > read or write certain system MSRs.
> > >>
> > >> If you want this to be usable by components other than the tool stack
> > >> then this can't be a sysctl (would e.g. need to be a platform-op then).
> > >
> > > Per my understanding, the platform-op related hypercalls are used by Dom0
> > > kernel.
> > > While in this CQM scenario, we want libvirt/libxl/libxc to call such
> > > hypercall to access the MSR, however I didn't see any usage of platform_op in
> > > libxl/libxc side.
> > >
> > > Could you explain a bit more for it?
> >
> > Platform ops are for use by Dom0, yes, but note the explicit omission
> > of "kernel" in my reply. The fact that libxc currently doesn't use any
> > doesn't mean it mustn't do so. The only question here that matter is
> > what audience we see for the new functionality: If this is to be a
> > purely tools interface, then a sysctl is fine. If the kernel is intended to
> > also be able to use it (as I suggested), something other than a sysctl
> > needs to be used (and I was merely _hinting_ at platform-op).
>
> I got such concept in the file descriptor, and that's why I was thinking of platform-op is for dom0-kernel only...
> Looking through all the current hypercalls, sysctl and platform-op are the most appropriate ones.
Keep in mind that the sysctl one has a version field that is tied in with
the toolstack. So if you want this hypercall to work across different
versions (like the kernel has to), then you do _not_ want to use
sysctl.
next prev parent reply other threads:[~2014-06-23 13:32 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 14:31 [PATCH v11 0/9] enable Cache QoS Monitoring (CQM) feature Dongxiao Xu
2014-06-20 14:31 ` [PATCH v11 1/9] x86: add generic MSR access hypercall Dongxiao Xu
2014-06-20 14:57 ` Andrew Cooper
2014-06-23 6:34 ` Xu, Dongxiao
2014-06-20 15:00 ` Jan Beulich
2014-06-23 6:27 ` Xu, Dongxiao
2014-06-23 6:45 ` Jan Beulich
2014-06-23 7:29 ` Xu, Dongxiao
2014-06-23 7:42 ` Jan Beulich
2014-06-23 13:32 ` Konrad Rzeszutek Wilk [this message]
2014-06-20 14:31 ` [PATCH v11 2/9] xsm: add MSR operation related xsm policy Dongxiao Xu
2014-06-24 19:20 ` Daniel De Graaf
2014-06-20 14:31 ` [PATCH v11 3/9] tools: provide interface for generic MSR access Dongxiao Xu
2014-06-20 17:34 ` Konrad Rzeszutek Wilk
2014-06-23 7:13 ` Jan Beulich
2014-06-23 13:29 ` Konrad Rzeszutek Wilk
2014-06-27 13:05 ` Ian Campbell
2014-06-20 14:31 ` [PATCH v11 4/9] x86: detect and initialize Platform QoS Monitoring feature Dongxiao Xu
2014-06-20 15:04 ` Jan Beulich
2014-06-23 6:38 ` Xu, Dongxiao
2014-06-23 6:50 ` Jan Beulich
2014-06-23 7:30 ` Xu, Dongxiao
2014-06-20 17:35 ` Konrad Rzeszutek Wilk
2014-06-20 14:31 ` [PATCH v11 5/9] x86: dynamically attach/detach QoS monitoring service for a guest Dongxiao Xu
2014-06-20 15:08 ` Jan Beulich
2014-06-23 6:43 ` Xu, Dongxiao
2014-06-20 14:31 ` [PATCH v11 6/9] x86: collect global QoS monitoring information Dongxiao Xu
2014-06-20 15:16 ` Jan Beulich
2014-06-23 6:55 ` Xu, Dongxiao
2014-06-23 7:06 ` Jan Beulich
2014-06-20 14:31 ` [PATCH v11 7/9] x86: enable QoS monitoring for each domain RMID Dongxiao Xu
2014-06-20 15:20 ` Jan Beulich
2014-06-23 6:55 ` Xu, Dongxiao
2014-06-20 14:31 ` [PATCH v11 8/9] xsm: add platform QoS related xsm policies Dongxiao Xu
2014-06-24 19:24 ` Daniel De Graaf
2014-06-20 14:31 ` [PATCH v11 9/9] tools: CMDs and APIs for Platform QoS Monitoring Dongxiao Xu
2014-06-23 15:22 ` Ian Jackson
2014-06-27 7:15 ` Xu, Dongxiao
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=20140623133234.GD9153@laptop.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=dongxiao.xu@intel.com \
--cc=keir@xen.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/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.