From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH v2 2/3] xen: add hypercall option to temporarily pin a vcpu Date: Tue, 1 Mar 2016 13:15:19 +0100 Message-ID: <1456834519.2959.215.camel@citrix.com> References: <1456822933-25041-1-git-send-email-jgross@suse.com> <1456822933-25041-3-git-send-email-jgross@suse.com> <56D58326.6050908@citrix.com> <56D583F8.9070107@suse.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7633438979490472553==" Return-path: In-Reply-To: <56D583F8.9070107@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Juergen Gross , David Vrabel , xen-devel@lists.xen.org Cc: wei.liu2@citrix.com, stefano.stabellini@eu.citrix.com, george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, jbeulich@suse.com List-Id: xen-devel@lists.xenproject.org --===============7633438979490472553== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-PTb41+iuhKQWQhudYcf1" --=-PTb41+iuhKQWQhudYcf1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2016-03-01 at 12:58 +0100, Juergen Gross wrote: > On 01/03/16 12:55, David Vrabel wrote: > >=20 > > On 01/03/16 09:02, Juergen Gross wrote: > > >=20 > > > Some hardware (e.g. Dell studio 1555 laptops) require SMIs to be > > > called on physical cpu 0 only. Linux drivers like dcdbas or i8k > > > try > > > to achieve this by pinning the running thread to cpu 0, but in > > > Dom0 > > > this is not enough: the vcpu must be pinned to physical cpu 0 via > > > Xen, too. > > >=20 > > > Add a stable hypercall option SCHEDOP_pin_temp to the sched_op > > > hypercall to achieve this. It is taking a physical cpu number as > > > parameter. If pinning is possible (the calling domain has the > > > privilege to make the call and the cpu is available in the > > > domain's > > > cpupool) the calling vcpu is pinned to the specified cpu. The old > > > cpu affinity is saved. To undo the temporary pinning a cpu -1 is > > > specified. This will restore the original cpu affinity for the > > > vcpu. > > I suggest SCHEDOP_pin_override as a name. > > I'm fine with that. Any objections? >=20 Not at all. I actually like it a lot. Thanks and Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-PTb41+iuhKQWQhudYcf1 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 iEYEABECAAYFAlbVh9gACgkQk4XaBE3IOsQ56ACeNKBR0B3l8kxMvfLPIwFd7c0M NHUAni/g2v7gAGg3RwvJFcuvz6RTPqjP =wKqE -----END PGP SIGNATURE----- --=-PTb41+iuhKQWQhudYcf1-- --===============7633438979490472553== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============7633438979490472553==--