From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH v4 3/3] libxl: add force option for xl vcpu-pin Date: Thu, 14 Apr 2016 19:18:06 +0200 Message-ID: <1460654286.13871.179.camel@citrix.com> References: <1457587634-22819-1-git-send-email-jgross@suse.com> <1457587634-22819-4-git-send-email-jgross@suse.com> <22287.49384.498578.713988@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1410918716415037091==" Return-path: In-Reply-To: <22287.49384.498578.713988@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Ian Jackson , Juergen Gross Cc: Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============1410918716415037091== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-FT0dVNAHOT+DFntanrbX" --=-FT0dVNAHOT+DFntanrbX Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2016-04-14 at 17:10 +0100, Ian Jackson wrote: > Juergen Gross writes ("[PATCH v4 3/3] libxl: add force option for xl > vcpu-pin"): > >=20 > >=C2=A0 > > +Specifying I<-f> or I<--force> will remove a temporary pinning > > done by the > > +operating system (normally this should be done by the operating > > system). > > +In case a temporary pinning is active for a vcpu the affinity of > > this vcpu > > +can't be changed without this option. > This documentation needs to confirm that this can only happen to > dom0, > or other domains which have been granted hardware access. >=20 > Assuming that this is actually true.=C2=A0=C2=A0If not then surely it sho= uld > be. >=20 AFAIUI, it's like that already. =46rom commit 8fa0fca9f3fdaac1aead9cf61d678a0d8cce02e2: +=C2=A0=C2=A0=C2=A0=C2=A0case SCHEDOP_pin_override: +=C2=A0=C2=A0=C2=A0=C2=A0{ +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0struct sched_pin_override = sched_pin_override; + +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ret =3D -EPERM; +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if ( !is_hardware_domain(c= urrent->domain) ) +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0br= eak; + +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ret =3D -EFAULT; +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if ( copy_from_guest(&sche= d_pin_override, arg, 1) ) +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0br= eak; + +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ret =3D vcpu_pin_override(= current, sched_pin_override.pcpu); + +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0break; +=C2=A0=C2=A0=C2=A0=C2=A0} Better saying that in the documentation makes sense, I guess. Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-FT0dVNAHOT+DFntanrbX 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 iEYEABECAAYFAlcP0M4ACgkQk4XaBE3IOsRx7gCfeUQugg4vHNWG2nBhF4+xf/E6 P9YAoKYtmoORexJ+GTnlOUkToBha4lbb =IGrv -----END PGP SIGNATURE----- --=-FT0dVNAHOT+DFntanrbX-- --===============1410918716415037091== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============1410918716415037091==--