From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH v5 02/13] x86: improve psr scheduling code Date: Mon, 20 Apr 2015 17:42:35 +0200 Message-ID: <1429544555.18810.10.camel@citrix.com> References: <1429281230-4352-1-git-send-email-chao.p.peng@linux.intel.com> <1429281230-4352-3-git-send-email-chao.p.peng@linux.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5078785901567029739==" Return-path: In-Reply-To: <1429281230-4352-3-git-send-email-chao.p.peng@linux.intel.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: Chao Peng Cc: keir@xen.org, 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, JBeulich@suse.com, wei.liu2@citrix.com, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org --===============5078785901567029739== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0fG/ZwcWwLi2ZDBc0yQh" --=-0fG/ZwcWwLi2ZDBc0yQh Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2015-04-17 at 22:33 +0800, Chao Peng 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. >=20 > Also move the initialization of per-CPU variable which used for lazy > update from context switch to CPU starting. >=20 > Signed-off-by: Chao Peng > Reviewed-by: Andrew Cooper > --- > --- a/xen/include/asm-x86/psr.h > +++ b/xen/include/asm-x86/psr.h > @@ -46,7 +46,8 @@ static inline bool_t psr_cmt_enabled(void) > =20 > int psr_alloc_rmid(struct domain *d); > void psr_free_rmid(struct domain *d); > -void psr_assoc_rmid(unsigned int rmid); > + > +void psr_ctxt_switch_to(struct domain *d); > Why the blank line? Anyway, Reviewed-by: Dario Faggioli Regards, Dario --=-0fG/ZwcWwLi2ZDBc0yQh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlU1HmwACgkQk4XaBE3IOsSGMACfWjwfp0asE9ZpWRnLsVZgmvTV RKQAoKU9UIVgLKL9MGeMTci2nyW3sW3s =gI+b -----END PGP SIGNATURE----- --=-0fG/ZwcWwLi2ZDBc0yQh-- --===============5078785901567029739== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============5078785901567029739==--