From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH RFC v2 5/7] libxl/vNUMA: VM config parsing functions Date: Thu, 10 Oct 2013 10:38:13 +0200 Message-ID: <1381394293.4389.81.camel@Abyss> References: <1379062224-13894-1-git-send-email-ufimtseva@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5221170511493625199==" 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: Elena Ufimtseva Cc: Ian Campbell , Li Yechen , George Dunlap , Stefano Stabellini , Ian Jackson , "xen-devel@lists.xen.org" , sw@linux.com List-Id: xen-devel@lists.xenproject.org --===============5221170511493625199== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-V/6sfyxurkcZRnGTkkMp" --=-V/6sfyxurkcZRnGTkkMp Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On mer, 2013-10-09 at 14:45 -0400, Elena Ufimtseva wrote: > The other simplified way is to specify only two values. One for the > distance between same node and another between not the same nodes. > like this: >=20 > vdistance =3D [10, 20] >=20 Mmm... I like it... > and this will expand to >=20 > 10 20 20 20 > 20 10 20 20 > 20 20 10 20 > 20 20 20 10 >=20 > for 4 nodes. > Nice. > There is a loss in flexibility of course and other parsing can remain > the same or as George proposed, using lists. >=20 Well, can't we support both? I mean, even if you configure 2 nodes you'd need 4 values, right? So, there are no cases where you only specify 2 values. Well, let's make it like this: if you provide 2 values, it acts as you say above; otherwise you have to specify all of them. If you should have specified 4 (or 16) values, and you specify, say, 3 (or, say, 10) all the unspecified ones will have the same default value (e.g., 10). How do you like this? Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-V/6sfyxurkcZRnGTkkMp 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 v1.4.14 (GNU/Linux) iEYEABECAAYFAlJWZ3UACgkQk4XaBE3IOsQICQCfdnIBdTKc+hu+HNRQT6wvC1MF c78An0zjrrkJjc7TSjAwwX5SUq1TLlrx =XkM6 -----END PGP SIGNATURE----- --=-V/6sfyxurkcZRnGTkkMp-- --===============5221170511493625199== 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 --===============5221170511493625199==--