From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH 3 of 3] xl: allow for node-wise specification of vcpu pinning Date: Fri, 19 Oct 2012 00:35:32 +0200 Message-ID: <1350599732.26152.77.camel@Solace> References: <6d7a403305dd057f61bd.1350408388@Solace> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7202025049269973123==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Andre Przywara , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============7202025049269973123== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Y/SO53KfmecvzmEBwZ5m" --=-Y/SO53KfmecvzmEBwZ5m Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2012-10-18 at 16:30 +0100, George Dunlap wrote: > On Tue, Oct 16, 2012 at 6:26 PM, Dario Faggioli > wrote: > > Making it possible to use something like the following: > > * "nodes:0-3": all pCPUs of nodes 0,1,2,3; > > * "nodes:0-3,^node:2": all pCPUS of nodes 0,1,3; > > * "1,nodes:1-2,^6": pCPU 1 plus all pCPUs of nodes 1,2 but not pCPU 6; > > * ... > > > > In both domain config file and `xl vcpu-pin'. > > > > Signed-off-by: Dario Faggioli >=20 > Is it OK if I give this an "I'm OK with the idea but I'm too lazy to > figure out if the parsing code is doing the right thing" Ack? :-) >=20 Well, it's certainly ok with me... :-) Actually, the new parsing code is nothing particularly sexy, and the only relevant bit is the one IanC commented about, i.e., checking for a "node:" substring at the beginning of each ',' separated element of the original string. That's it. The reason why this requires this whole lot of + lines is that I need a couple of nodemap where to store the data, and declaring, initializing, allocating and freeing them requires that. :-( Thanks and Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-Y/SO53KfmecvzmEBwZ5m Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlCAhDQACgkQk4XaBE3IOsTFSACfbt9glAKOeQ5HydPmgE/CLPJX vCsAn0ahqhbyv5H9Qk1HJ2pvcT2KGlGE =jo6f -----END PGP SIGNATURE----- --=-Y/SO53KfmecvzmEBwZ5m-- --===============7202025049269973123== 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 --===============7202025049269973123==--