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 D3BB8C433F5 for ; Fri, 22 Apr 2022 01:52:27 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.310617.527522 (Exim 4.92) (envelope-from ) id 1nhiSo-0006dj-1V; Fri, 22 Apr 2022 01:52:02 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 310617.527522; Fri, 22 Apr 2022 01:52:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nhiSn-0006dc-U3; Fri, 22 Apr 2022 01:52:01 +0000 Received: by outflank-mailman (input) for mailman id 310617; Fri, 22 Apr 2022 01:52:00 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nhiSm-0006dU-JP for xen-devel@lists.xenproject.org; Fri, 22 Apr 2022 01:52:00 +0000 Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id cb0eebeb-c1de-11ec-a405-831a346695d4; Fri, 22 Apr 2022 03:51:58 +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 23M1phrv007102 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 21 Apr 2022 21:51:49 -0400 (EDT) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.16.1/8.15.2/Submit) id 23M1ph7Q007101; Thu, 21 Apr 2022 18:51:43 -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: cb0eebeb-c1de-11ec-a405-831a346695d4 Date: Thu, 21 Apr 2022 18:51:43 -0700 From: Elliott Mitchell To: xen-devel@lists.xenproject.org Cc: Wei Liu , Anthony PERARD Subject: Xen Domain Configuration file issue Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've been considering weaknesses with the `xendomains` script and how one might address them. In the process I've run head-on into some rather odd design choices with Xen domain configuration handling. The obvious place to dump domain start/stop configuration information is into the domain.cfg files themselves. One favored way to do this is to stick the configuration information into comment sections. This has advantages and disadvantages. Another way is if the file format syntax allows it, simply stick the information into the main portion of the files. This lead to two observations. First, domain.cfg files can have arbitrary extra sections added and `xl create` doesn't complain about unknown sections. Second, unrecognized settings in domain.cfg files are *completely* ignored. Having these two characteristics combined is extremely odd. Complaining about unknown settings is the most common UI choice. This alerts users they've misconfigured things. Sticking "colonel=XEN_EFI.fd" is likely a configuration error. On the flip side, since `xenstored` can hold more or less arbitrary values, depositing unrecognized options there also seems reasonable. Might the best behavior be for `xl create` to default to producing an error if unrecognized options are found? Then add a "-U" option to `xl create` which places unrecognized options into the XenStore? A replacement for `xendomains` script could then use `xl create -U` to load domain.cfg files. Configuration options it recognized could then be consumed and if unrecognized options were left it would then complain. Either approach is going to need some work on libxlutil. -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | ehem+sigmsg@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445