From: "Jan Beulich" Subject: Re: [PATCH v11 4/9] x86: detect and initialize Platform QoS Monitoring feature Date: Fri, 20 Jun 2014 16:04:13 +0100 Message-ID: <53A4698D020000780001C0E0@mail.emea.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dongxiao Xu Cc: keir@xen.org, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org >>> On 20.06.14 at 16:31, wrote: > Detect platform QoS feature status and enumerate the resource types, > one of which is to monitor the L3 cache occupancy. > > Also introduce a Xen grub command line parameter to control the > QoS feature status. "grub"? > +static bool_t __initdata opt_pqos = 1; > +static bool_t __initdata opt_pqos_monitor = 1; Hmm, did we really settle on enabling these by default? > +void __init init_platform_qos(void) > +{ > + if ( !opt_pqos ) > + return; > + > + if ( opt_pqos_monitor && opt_rmid_max ) Kind of pointless to split the two if()-s. Jan