Re: [Xen-devel] patch for restricted vPMU modes

2015-11-23 Thread Boris Ostrovsky
On 11/23/2015 05:01 PM, Brendan Gregg wrote: On Mon, Nov 23, 2015 at 6:35 AM, Boris Ostrovsky mailto:boris.ostrov...@oracle.com>> wrote: On 11/20/2015 07:21 PM, Brendan Gregg wrote: These new features would need a corresponding change in Linux for PV guests (or for dom0 to chan

Re: [Xen-devel] patch for restricted vPMU modes

2015-11-23 Thread Brendan Gregg
On Mon, Nov 23, 2015 at 6:35 AM, Boris Ostrovsky wrote: > (+ Dietmar) > > On 11/20/2015 07:21 PM, Brendan Gregg wrote: > >> G'Day, >> >> The vpmu feature of Xen is incredibly useful for performance analysis, >> however, it's currently all counters or nothing. In secure environments, >> there can

Re: [Xen-devel] patch for restricted vPMU modes

2015-11-23 Thread Boris Ostrovsky
(+ Dietmar) On 11/20/2015 07:21 PM, Brendan Gregg wrote: G'Day, The vpmu feature of Xen is incredibly useful for performance analysis, however, it's currently all counters or nothing. In secure environments, there can be hesitation to enable access to all PMCs (there are hundreds of them). I

Re: [Xen-devel] patch for restricted vPMU modes

2015-11-23 Thread Andrew Cooper
On 23/11/15 11:08, Jan Beulich wrote: On 21.11.15 at 06:32, wrote: >> I've included the short patch below for Xen 4.6.0, which provides these >> modes (it also fixes a minor copy-and-paste error with >> core2_get_fixed_pmc_count(), which I believe was accessing the wrong >> register). I am no

Re: [Xen-devel] patch for restricted vPMU modes

2015-11-23 Thread Jan Beulich
>>> On 21.11.15 at 06:32, wrote: > I've included the short patch below for Xen 4.6.0, which provides these > modes (it also fixes a minor copy-and-paste error with > core2_get_fixed_pmc_count(), which I believe was accessing the wrong > register). I am not a veteran Xen programmer, so please feel

[Xen-devel] patch for restricted vPMU modes

2015-11-20 Thread Brendan Gregg
G'Day, The vpmu feature of Xen is incredibly useful for performance analysis, however, it's currently all counters or nothing. In secure environments, there can be hesitation to enable access to all PMCs (there are hundreds of them). I've included a prototype patch that introduces two new restrict