From: Chao Peng Subject: Re: [PATCH v7 02/14] x86: improve psr scheduling code Date: Mon, 11 May 2015 09:35:39 +0800 Message-ID: <20150511013539.GH3458@pengc-linux.bj.intel.com> References: <1431075415-21917-1-git-send-email-chao.p.peng@linux.intel.com> <1431075415-21917-3-git-send-email-chao.p.peng@linux.intel.com> <554CAA1D020000780007824C@mail.emea.novell.com> Reply-To: Chao Peng Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <554CAA1D020000780007824C@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: wei.liu2@citrix.com, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, will.auld@intel.com, keir@xen.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org On Fri, May 08, 2015 at 11:20:45AM +0100, Jan Beulich wrote: > >>> On 08.05.15 at 10:56, wrote: > > Switching RMID from previous vcpu to next vcpu only needs to write > > MSR_IA32_PSR_ASSOC once. Write it with the value of next vcpu is enough, > > no need to write '0' first. Idle domain has RMID set to 0 and because MSR > > is already updated lazily, so just switch it as it does. > > > > Also move the initialization of per-CPU variable which used for lazy > > update from context switch to CPU starting. > > > > Signed-off-by: Chao Peng > > Reviewed-by: Andrew Cooper > > Reviewed-by: Dario Faggioli > > Please avoid sending again changes that got applied already. > Just noticed it's already get merged. Sorry for the noise and thanks. Chao