xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	Xen-devel <xen-devel@lists.xen.org>
Cc: Kevin Tian <kevin.tian@intel.com>,
	Jun Nakajima <jun.nakajima@intel.com>,
	Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH 3/6] x86/vpmu: Remove core2_no_vpmu_ops
Date: Wed, 16 Nov 2016 12:09:22 -0500	[thread overview]
Message-ID: <06c95c3f-0b38-d6c2-c3c3-912cbbf91d5a@oracle.com> (raw)
In-Reply-To: <3a90b969-4892-af53-3e30-c75a7ea74ae5@citrix.com>

On 11/16/2016 12:04 PM, Andrew Cooper wrote:
> On 16/11/16 16:27, Boris Ostrovsky wrote:
>> On 11/16/2016 07:31 AM, Andrew Cooper wrote:
>>> diff --git a/xen/arch/x86/cpu/vpmu.c b/xen/arch/x86/cpu/vpmu.c
>>> index a542f4d..1f822ca 100644
>>> --- a/xen/arch/x86/cpu/vpmu.c
>>> +++ b/xen/arch/x86/cpu/vpmu.c
>>> @@ -136,9 +136,10 @@ int vpmu_do_msr(unsigned int msr, uint64_t *msr_content,
>>>      const struct arch_vpmu_ops *ops;
>>>      int ret = 0;
>>>  
>>> +    /* Don't leak PMU MSRs to unprivileged domains. */
>> This was a somewhat incorrect comment originally and since you are
>> moving it then perhaps it's worth adding something along the lines of
>> "if VPMU is off or if the privileged domain is profiling whole system".
>> Otherwise it gives impression that unprivileged domains never access
>> those MSRs.
> /*
>  * Hide the PMU MSRs if vpmu is not configured, or the hardware domain
>  * is profiling the whole system.
>  */
>
> ?


Sure, thanks.

(or, in fact, you can just drop the whole comment since I think it's
pretty obvious what's going on).

-boris

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-11-16 17:09 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-16 12:31 [PATCH for-4.9 0/6] Introductory cleanup for CPUID phase 2 work Andrew Cooper
2016-11-16 12:31 ` [PATCH 1/6] xen/x86: Add a helper to calculate family/model/stepping information Andrew Cooper
2016-11-16 12:49   ` Jan Beulich
2016-11-16 12:50     ` Andrew Cooper
2016-11-16 12:31 ` [PATCH 2/6] x86/vpmu: Move vpmu_do_cpuid() handling into {pv, hvm}_cpuid() Andrew Cooper
2016-11-16 12:53   ` Jan Beulich
2016-11-16 13:01     ` Andrew Cooper
2016-11-16 13:34       ` Jan Beulich
2016-11-17  5:21         ` Tian, Kevin
2016-11-17 10:52           ` Jan Beulich
2016-11-16 12:31 ` [PATCH 3/6] x86/vpmu: Remove core2_no_vpmu_ops Andrew Cooper
2016-11-16 13:09   ` Jan Beulich
2016-11-16 16:27   ` Boris Ostrovsky
2016-11-16 17:04     ` Andrew Cooper
2016-11-16 17:09       ` Boris Ostrovsky [this message]
2016-11-16 17:08         ` Andrew Cooper
2016-11-17  5:29   ` Tian, Kevin
2016-11-16 12:31 ` [PATCH 4/6] x86/hvm: Move hvm_funcs.cpuid_intercept() handling into hvm_cpuid() Andrew Cooper
2016-11-16 15:20   ` Jan Beulich
2016-11-16 17:07     ` Andrew Cooper
2016-11-17 10:54       ` Jan Beulich
2016-11-16 16:40   ` Boris Ostrovsky
2016-11-16 17:10     ` Andrew Cooper
2016-11-16 17:34       ` Boris Ostrovsky
2016-11-16 17:34         ` Andrew Cooper
2016-11-16 17:45           ` Boris Ostrovsky
2016-11-17  5:41             ` Tian, Kevin
2016-11-16 12:31 ` [PATCH 5/6] x86/time: Move cpuid_time_leaf() handling into cpuid_hypervisor_leaves() Andrew Cooper
2016-11-16 15:47   ` Jan Beulich
2016-11-16 12:31 ` [PATCH 6/6] x86/hvm: Move hvm_hypervisor_cpuid_leaf() " Andrew Cooper
2016-11-16 15:53   ` Jan Beulich
2016-11-16 17:11     ` Andrew Cooper

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=06c95c3f-0b38-d6c2-c3c3-912cbbf91d5a@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.tian@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).