Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5617EB64D9 for ; Fri, 7 Jul 2023 22:14:12 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.560628.876694 (Exim 4.92) (envelope-from ) id 1qHthr-00034U-TS; Fri, 07 Jul 2023 22:13:39 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 560628.876694; Fri, 07 Jul 2023 22:13:39 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qHthr-00034N-QY; Fri, 07 Jul 2023 22:13:39 +0000 Received: by outflank-mailman (input) for mailman id 560628; Fri, 07 Jul 2023 22:13:38 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qHthq-00034H-G0 for xen-devel@lists.xenproject.org; Fri, 07 Jul 2023 22:13:38 +0000 Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 833d7b01-1d13-11ee-8611-37d641c3527e; Sat, 08 Jul 2023 00:13:35 +0200 (CEST) Received: from m5p.com (mailhost.m5p.com [IPv6:2001:470:1f07:15ff:0:0:0:f7]) by mailhost.m5p.com (8.16.1/8.15.2) with ESMTPS id 367MD7H7068848 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 7 Jul 2023 18:13:13 -0400 (EDT) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.16.1/8.15.2/Submit) id 367MD7tF068847; Fri, 7 Jul 2023 15:13:07 -0700 (PDT) (envelope-from ehem) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 833d7b01-1d13-11ee-8611-37d641c3527e Date: Fri, 7 Jul 2023 15:13:07 -0700 From: Elliott Mitchell To: xen-devel@lists.xenproject.org Cc: iwj@xenproject.org, wl@xen.org, Anthony PERARD , Juergen Gross , Marek =?iso-8859-1?Q?Marczykowski-G=F3recki?= Subject: Python in Domain Configurations Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline There is a distinct weakness in Xen which ends up dragging in domain configuration limitations. I was thinking of using Python for parsing extra data out of domain configuration files. Only to find sample domain configuration files were in fact fully valid Python. Having experimented, it appears entirely feasible to use libpython to parse current domain configuration files. Looking further it appears Python was in fact used in the past to handle domain configuration files. Why was this removed? The only context I could find was 54fbaf446b and https://wiki.xenproject.org/wiki/PythonInXlConfig which don't explain the reasoning. Would the maintainers be amenable to revisiting the decision to remove support for full Python in domain configuration files? The obvious reason is having full Python would increase the size of `xl`. In most cases I'm unsure this would be too problematic. The case where it would matter is the daemon process. Issue here is plenty of other extra libraries are also bloating the runtime size of `xl`. I suspect the daemon process really needs to be split into a separate executable to reduce overhead anyway. -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | ehem+sigmsg@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445