From: "Jan Beulich" Subject: Re: [PATCH v7 02/14] x86: improve psr scheduling code Date: Fri, 08 May 2015 11:20:45 +0100 Message-ID: <554CAA1D020000780007824C@mail.emea.novell.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1431075415-21917-3-git-send-email-chao.p.peng@linux.intel.com> 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: Chao Peng 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 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. Jan