All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: speck@linutronix.de
Subject: [MODERATED] Re: [PATCH v2 0/8] PERFv2
Date: Thu, 7 Feb 2019 17:55:49 +0000	[thread overview]
Message-ID: <008500cd-abc4-e09d-a808-7e38db43392e@citrix.com> (raw)
In-Reply-To: <20190207170059.GD32511@hirez.programming.kicks-ass.net>

On 07/02/2019 17:00, speck for Peter Zijlstra wrote:
> On Thu, Feb 07, 2019 at 04:35:12PM +0000, speck for Andrew Cooper wrote:
>> On 07/02/2019 15:37, speck for Peter Zijlstra wrote:
>>> On Thu, Feb 07, 2019 at 06:37:59AM -0800, speck for Andi Kleen wrote:
>>>
>>>> Okay I see you rely on it being guarded by the global, but for virtualization
>>>> support will need the copy.
>>>>
>>>> Would need a copy at least.
>>> I've not thought abou virt yet; do we _have_ to expose the thing to
>>> guests?
>> Virt has been discussed at length.
>>
>> This feature and MSR are not architectural, and not expected to exist on
>> future hardware with a silicon fix for the issue (CascadeLake B1
>> stepping and later, IIRC).
>>
>> By exposing the features to guests, you automatically limit their
>> migrateability to a subset of the Skylake uarch processors.
>>
>> For Xen, I've just gone with a boot time global flag.  PMU deliberately
>> isn't available to guests in general, but developers wanting to do
>> profiling/other can trivially flip the default.
> Is that a per-guest or per-hv setting? My current patch does per-hv, but
> I suppose it would not be too hard to make that per-guest. The only
> question is where/how does the guest communicate this desire.

This is server-wide boot time setting.  I did consider per-guest, but
this TSX issue isn't the only thing on my plate right now, and anyone
wanting to use PMU also has to flip a different server-wide boot time
setting anyway.

In my otherwise copious free time, I am working on improvements to our
APIs for creation, so will make it a per-guest as soon as we can
sensibly express it.

~Andrew

  reply	other threads:[~2019-02-07 17:55 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-06  1:23 [MODERATED] [PATCH v2 0/8] PERFv2 Andi Kleen
2019-02-06  1:23 ` [MODERATED] [PATCH v2 1/8] PERFv2 Andi Kleen
2019-02-07 23:11   ` [MODERATED] " Konrad Rzeszutek Wilk
2019-02-06  1:23 ` [MODERATED] [PATCH v2 2/8] PERFv2 Andi Kleen
2019-02-06  1:23 ` [MODERATED] [PATCH v2 3/8] PERFv2 Andi Kleen
2019-02-06 19:07   ` [MODERATED] " Andi Kleen
2019-02-06  1:23 ` [MODERATED] [PATCH v2 4/8] PERFv2 Andi Kleen
2019-02-06  3:55   ` [MODERATED] " Andi Kleen
2019-02-06  1:23 ` [MODERATED] [PATCH v2 5/8] PERFv2 Andi Kleen
2019-02-06  1:24 ` [MODERATED] [PATCH v2 6/8] PERFv2 Andi Kleen
2019-02-06  1:24 ` [MODERATED] [PATCH v2 7/8] PERFv2 Andi Kleen
2019-02-06  1:24 ` [MODERATED] [PATCH v2 8/8] PERFv2 Andi Kleen
2019-02-06 19:10 ` [MODERATED] Re: [PATCH v2 0/8] PERFv2 Andi Kleen
2019-02-07 13:27 ` Peter Zijlstra
2019-02-07 13:33   ` Peter Zijlstra
2019-02-07 13:48     ` Peter Zijlstra
2019-02-07 14:39     ` Andi Kleen
2019-02-07 14:37   ` Andi Kleen
2019-02-07 15:33     ` Peter Zijlstra
2019-02-07 15:51       ` Andrew Cooper
2019-02-07 16:35       ` Andi Kleen
2019-02-07 15:37     ` Peter Zijlstra
2019-02-07 16:20       ` Andi Kleen
2019-02-07 16:49         ` Peter Zijlstra
2019-02-07 21:55           ` Andi Kleen
2019-02-07 16:35       ` Andrew Cooper
2019-02-07 17:00         ` Peter Zijlstra
2019-02-07 17:55           ` Andrew Cooper [this message]
2019-02-07 22:04           ` Andi Kleen
2019-02-07 22:45             ` Andrew Cooper
2019-02-07 16:01     ` Peter Zijlstra

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=008500cd-abc4-e09d-a808-7e38db43392e@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=speck@linutronix.de \
    /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.