From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH v6 6/9] libxl: get and set soft affinity Date: Wed, 28 May 2014 16:15:15 +0100 Message-ID: <1401290115.7504.42.camel@Abyss> References: <1401237770-7003-1-git-send-email-dario.faggioli@citrix.com> <1401237770-7003-7-git-send-email-dario.faggioli@citrix.com> <1401289992.10916.21.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4717984175537053637==" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WpfZx-0003ns-Hb for xen-devel@lists.xenproject.org; Wed, 28 May 2014 15:15:45 +0000 In-Reply-To: <1401289992.10916.21.camel@kazak.uk.xensource.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: Ian Campbell Cc: KeirFraser , George Dunlap , AndrewCooper , Ian Jackson , Jan Beulich , xen-devel List-Id: xen-devel@lists.xenproject.org --===============4717984175537053637== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-4lX6iXIsWzhxSy0rGce5" --=-4lX6iXIsWzhxSy0rGce5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2014-05-28 at 16:13 +0100, Ian Campbell wrote: > On Wed, 2014-05-28 at 01:42 +0100, Dario Faggioli wrote: > > diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h > > index 80947c3..e761881 100644 > > --- a/tools/libxl/libxl.h > > +++ b/tools/libxl/libxl.h > > @@ -82,6 +82,15 @@ > > #define LIBXL_HAVE_DOMAIN_NODEAFFINITY 1 > > =20 > > /* > > + * LIBXL_HAVE_SOFT_AFFINITY indicates that a 'cpumap_soft' > > + * field (of libxl_bitmap type) is present in: > > + * - libxl_vcpuinfo, containing the soft affinity of a vcpu; > > + * - libxl_domain_build_info, for setting the soft affinity od >=20 > s/od/of/ >=20 Ok! > > int libxl_get_physinfo(libxl_ctx *ctx, libxl_physinfo *physinfo); > > int libxl_set_vcpuaffinity(libxl_ctx *ctx, uint32_t domid, uint32_t vc= puid, > > - libxl_bitmap *cpumap); > > + const libxl_bitmap *cpumap_hard, > > + const libxl_bitmap *cpumap_soft); > > int libxl_set_vcpuaffinity_all(libxl_ctx *ctx, uint32_t domid, > > - unsigned int max_vcpus, libxl_bitmap *c= pumap); > > + unsigned int max_vcpus, > > + const libxl_bitmap *cpumap_hard, > > + const libxl_bitmap *cpumap_soft); > > + > > +#if defined (LIBXL_API_VERSION) && LIBXL_API_VERSION < 0x040400 >=20 > This now needs to be 0x040500 I think. >=20 Indeed it does. :-) Thanks, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-4lX6iXIsWzhxSy0rGce5 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.0.22 (GNU/Linux) iEYEABECAAYFAlOF/YMACgkQk4XaBE3IOsSqCgCfQxG1/WegDEsiK9t720zAjAHn sNwAn1o/LvIC7BMHL02TWmoOpSZMryse =Vt4C -----END PGP SIGNATURE----- --=-4lX6iXIsWzhxSy0rGce5-- --===============4717984175537053637== 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 --===============4717984175537053637==--