Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3908380pxj; Tue, 15 Jun 2021 11:10:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPkvKyHcN/q1UBHMjha8KkMWbz6nplfQXdh0iKo1iwCXPqxaiMalBr/lebm3fZgWRYCvnE X-Received: by 2002:a05:6638:10da:: with SMTP id q26mr442473jad.125.1623780631577; Tue, 15 Jun 2021 11:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623780631; cv=none; d=google.com; s=arc-20160816; b=hPgLKOWHDtkb2kUoEpYH+dONWz6OuogINgdeZGZlnUejz3LIGqp9f9iFxKwW23Dv/y iDKqlxYiOWdWjKifsAt9v+LAVRaRfETyMT9ZGQ5VWIKKF5ZnccAdU0fQL6EbZu5ud5LW UcZPFVg6BnnBlLja3Fu+ORCzksARmiepjmxjQ5Bt6Rtqh6gWwteKjeINTcNo83NVKVzO Yzg9lww+xa0o02/EmbWM8eiT/L+rneYxHA3vonfGwL8664BGixdSs8mNnQulKaUyV32b 9Q2M9ERtLlb5u83oac95/sJlandbN3DCcMCOE0YzOrt7CqzkAPtqIVfv51HLJ+/L8QDP kfLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=IUDEwQPb9X//MG5FVj6eRYupwCcVnNRDQ54t+v5EYDM=; b=JuglFns771L7HWLHctsRMCP7SZqcHX/7fhW1yUxOE81Vu9VD/ZhekX4Wvt2lro/8X9 GmWGbvtLhqYcuJPdn2L9UxOb+QJr3gWqH1ym81LOPfE0c5+DEcR/MLr7WAfdmC8Ewrbc iwjpJNL+Ob8F2Kh5Vg3wP3igyCGqRSUnBVyuBSrKHoNC46P8wObHEOCsv68sniiDpQ4E bsG1GtwYWS5MKvTJuGyW7c8iGGsmiDKH+fFtU4f9kiJKQHO5fVPtZCd3sT10F0U8EpAX ph/V8RKII3PE9ftlPMsW3R8iqDdGcCoQZ9N+efSwPrf6HFe6IiGZBWL517x38CePqMRi mnfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q6si21346200jat.10.2021.06.15.11.10.19; Tue, 15 Jun 2021 11:10:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231422AbhFOSLS (ORCPT + 99 others); Tue, 15 Jun 2021 14:11:18 -0400 Received: from mga04.intel.com ([192.55.52.120]:8538 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbhFOSLF (ORCPT ); Tue, 15 Jun 2021 14:11:05 -0400 IronPort-SDR: UNpnCLGQANDcr/qCbw85QUSYuDFZQQdMuDYPAJG/MiS4hglw4sAr+Y8L05i8+jzJmhdLC0G/Mc SyFJv6iXeqVA== X-IronPort-AV: E=McAfee;i="6200,9189,10016"; a="204214820" X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="204214820" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2021 11:09:00 -0700 IronPort-SDR: 5iTgW6+ws4jEnyNlU3RUF9nhigIOUYsUmFXk+4X6oPHLKj73muhySis6uWczgCr7QgyyuJcV4k QqL8jq5zxsag== X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="554528822" Received: from rchatre-mobl3.amr.corp.intel.com (HELO [10.212.184.247]) ([10.212.184.247]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2021 11:08:59 -0700 Subject: Re: [PATCH v4 12/24] x86/resctrl: Group staged configuration into a separate struct To: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, Jamie Iles , D Scott Phillips OS , lcherian@marvell.com References: <20210614200941.12383-1-james.morse@arm.com> <20210614200941.12383-13-james.morse@arm.com> From: Reinette Chatre Message-ID: <20699528-e26b-bc81-c8bd-af26ba14a9c3@intel.com> Date: Tue, 15 Jun 2021 11:08:59 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210614200941.12383-13-james.morse@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, On 6/14/2021 1:09 PM, James Morse wrote: > diff --git a/include/linux/resctrl.h b/include/linux/resctrl.h > index 8fa806c85cec..8fad1af8f15e 100644 > --- a/include/linux/resctrl.h > +++ b/include/linux/resctrl.h > @@ -23,13 +23,21 @@ enum resctrl_conf_type { > CDP_DATA, > }; > > +/** > + * struct resctrl_staged_config - parsed configuration to be applied > + * @new_ctrl: new ctrl value to be loaded > + * @have_new_ctrl: whether the user provide new_ctrl is valid user provide -> user provided? Reinette