From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= Subject: Re: [PATCH] tools: remove unused wrappers for python Date: Wed, 7 Oct 2015 04:58:05 +0200 Message-ID: <20151007025805.GA2267@mail-itl> References: <1444128368-31585-1-git-send-email-jgross@suse.com> <20151006111849.GW29124@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8712262494369071557==" Return-path: In-Reply-To: <20151006111849.GW29124@zion.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: Wei Liu Cc: Juergen Gross , Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, Andrew Cooper , ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, zhigang.x.wang@oracle.com List-Id: xen-devel@lists.xenproject.org --===============8712262494369071557== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5vNYLRcllDrimb99" Content-Disposition: inline --5vNYLRcllDrimb99 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 06, 2015 at 12:18:50PM +0100, Wei Liu wrote: > On Tue, Oct 06, 2015 at 12:46:08PM +0200, Juergen Gross wrote: > > Remove lots of functions in tools/python/xen/lowlevel/xc/xc.c as they > > are not used anywhere in the tree. In fact only one function is still > > being used from pygrub, namely "xeninfo". All other users seem to have > > gone with nuking xm/xend. > >=20 > > Signed-off-by: Juergen Gross >=20 > Andrew said the python module is useful for debugging purpose. There are > out-of-tree users as well. >=20 > I'm not too fussed about either keeping these functions or removing > them. But I would like to leave some time for other people to object. In QubesOS we use xc bindings. In the most recent version only for memory managing (domain_set_target_mem, domain_setmaxmem, domain_getinfo, physinfo). https://github.com/QubesOS/qubes-core-admin/blob/master/qmemman/qmemman.py This is used for real-time memory adjustment based on domain needs (think: give domain more memory when needed, before it start swapping), so directly manipulating with xc/xs is preferred over much slower alternatives like libvirt. Libxl would be probably enough, but libxl python bindings effectively doesn't exists. --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --5vNYLRcllDrimb99 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCAAGBQJWFIo9AAoJENuP0xzK19csoIUH/1RT5atI/wfxbpc4qeUPwad5 lPAPaMNnz1gA8RXhaJNpmaaL3Kk0dtukPI+6CCkiW2ui0LxmmbCQjv3vYL4XfC4d qu4zWjt2DVoxP5lWmxlqk0YSD/GXt3vppTUNcm4l7n9uBRgmz+TC2d7szj/zeaGC Cs/u5c1BAqttKx6z9i8bF3pxEnBBJHmzXWpIyokykK1J2YZSdItGuhyvN5hY03bt fFqbfiAulJpki7aHGeshXaDppwmTupRSmNFb0BTkW/d6kfnIvN1fnkrbABTKLlOQ aiKNTY+045Ya8seydesakADkwWIuFyxdK4eFU9RU/w8esjBzMRgwD3p4/a0BCPQ= =aA6k -----END PGP SIGNATURE----- --5vNYLRcllDrimb99-- --===============8712262494369071557== 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 --===============8712262494369071557==--