[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EXTERNAL] Re: [RFC PATCH 0/2] Propose an minimal xen-tools


  • To: Anthony PERARD <anthony@xxxxxxxxxxxxxx>, "ayan.kumar.halder@xxxxxxx" <ayan.kumar.halder@xxxxxxx>
  • From: "Weber (US), Matthew L" <matthew.l.weber3@xxxxxxxxxx>
  • Date: Tue, 8 Jul 2025 18:45:32 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=boeing.com; dmarc=pass action=none header.from=boeing.com; dkim=pass header.d=boeing.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector5401; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Cp+rlzGbTGczJK9tpO1twArHxZ09wjO3NdOFqdgIado=; b=WhiZX43/A9/FBDUNsb8xtYjfEgXwdvupPcFKRanGyxxzhwWhEZbcRAA56Zu//rJLbIzp1JP7LdFg7qWcMNW7hCFAIwoPETHF+NjuO2qIHtzimoZ8g0aGRKn/csOPP5cEZACSngMuiC0rABwqxAEwXJBdOhiEdes9cBXu1+GAq1hi/shQDjU4gsrOEL8eKDR1Ix6vaj1Dj2QdzOuQ0pqQpaJ1jqMkAidqizczOMdYjookjuBJMcq+O26raDC8T7iF2I4tVWiFF8D/tWx/gY7Dvc2ebF6FhzU9ahTNTiCtUJ9+OVb6lMB1mMNddPA5pGSicw6qWE6d7AKEkm1Lywp40g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=mpsZNjNNr40Me05CaGyvjVhC/U55SwGLxSyehedKbFFGKFcS4haw2NMNPoQeg0HrULWwKvOKQMiPBJDt8YaD4NZK42wZfi+AZZKMzA5jagG+2SRrZiVY6cPmAuOCOoB6abdlRBSEQrIcMEHOCyN8/0vW9p0aqdFQS9DiUCuS5UMMSY2plSpaNgbrMb9tQEqU0/4xX7chtHjv+gKH69v5sdU+vzm8jWVPMgXBo9ZFehTYK+idKUEifYxMaffV0sX4V92NT0eXTHJm4MI002g27dixq4l3oEKw3UeVVz3HKrrlXtQKV4gHbIbe4SrgnH91uHHf8CyGclAkeH08aCZSHw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=boeing.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Whitehead (US), Joshua C" <joshua.c.whitehead@xxxxxxxxxx>, "Choi, Anderson" <Anderson.Choi@xxxxxxxxxx>, "Wood (US), Brian J" <brian.j.wood2@xxxxxxxxxx>, "Kim, Haesun" <haesun.kim@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Ahn, Sookyung" <sookyung.ahn@xxxxxxxxxx>
  • Delivery-date: Tue, 08 Jul 2025 18:46:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbxJ+rU1WRHkBjOE2Z4lnnftilU7PdL4mAgEu0HLA=
  • Thread-topic: [EXTERNAL] Re: [RFC PATCH 0/2] Propose an minimal xen-tools

Anthony & Ayan,

> -----Original Message-----
> From: Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of Anthony 
> PERARD
> Sent: Wednesday, May 21, 2025 9:27 AM
> To: Ahn, Sookyung <sookyung.ahn@xxxxxxxxxx>
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; Weber (US), Matthew L 
> <matthew.l.weber3@xxxxxxxxxx>; Whitehead (US), Joshua C 
> <joshua.c.whitehead@xxxxxxxxxx>; Choi, Anderson <Anderson.Choi@xxxxxxxxxx>; 
> Wood (US), Brian J > <brian.j.wood2@xxxxxxxxxx>; Kim, Haesun 
> <haesun.kim@xxxxxxxxxx>
> Subject: [EXTERNAL] Re: [RFC PATCH 0/2] Propose an minimal xen-tools
>

<snip>
 
> > The proposed implementation includes:
> > - Introducing the `ENABLE_MINIMAL_XEN_TOOLS` configuration flag.
> > - Modifying the build process to selectively include only the necessary 
> > components based on the configuration.
> > 

@ayan.kumar.halder@xxxxxxx  what is automotive planning to do for XL tool stack 
in a FuSa configuration?


> > This implementation can be effectively applied to the following use cases. 
> > - Minimal APIs for `dom0less` operation. This involves taking existing Xen 
> > functions and shrinking them to minimal needed parts. For example, we can 
> > use static device tree instead of XenStore. 
> > - By retaining `libxencall` and minimum part of `libxencrtl`, the Hypercall 
> > interface can be utilized, enabling support for the Xen ARINC653 Multiple 
> > Module Schedules service. 
> > - Addition of ARINC653 Part1&2 APIs and services (hosted on the domain 
> > OS.)
>
> I don't quite like this approach. What is "minimal"? Whatever definition we 
> can come up with isn't going to fit other's expectation of a minimal set of 
> tools. Also, the minimum set of tools needed might be 0, if you only need the 
> hypervisor.
>
> Also, the implementation is quite invasive, with `CONFIG_MINIMAL_TOOLS` 
> spread through the build system. It also duplicates configurations, with like 
> "SUBDIRS-y += libs" been written twice in tools/Makefile.
>

This is good feedback.  The other route we had looked at is establishing a new 
library that's specifically focused on ARINC653.  The Xen existing ARINC653 
scheduling support has some out of tree tools we're looking to integrate in and 
we're working to finish implementing the standard.  So maybe the basis for this 
new library is more around ARINC653 and not minimizing the existing XL tool 
stack.  (We'd have the XL tools disabled in a dom0less safety certification 
configuration.)

> I feel like a better approach would be to have something like:
>     ./configure --no-default --enable-flask --enable-hotplug ...
>
> As for the makefiles, instead of having to invent a config option for every 
> single `SUBDIRS-y` we could have a generic
> SUBDIRS-$(subdir-default) where subdir_default is 'y' unless we want to 
> select a handful of subdirectory. 
>
> It might not be necessary to have a config option for everything, you could 
> deal with some of the stray binary with the tool use to make package, like 
> RPM where you select which files to packages (as already suggested), and for 
> other tool just `rm` the few files not needed.
>
> Then, there's `libxenctrl`. For this one, it doesn't feel like a good idea to 
> make it selectively smaller. Maybe there's a way to extract the functionality 
> you need into a new lib? We kind of tried in the past to extract piece of it 
> into lib with a stable interface, like libdevicemodel, libcall. So it might 
> be a better approach to remove the need of libxenctrl in your environment.

I see, sounds like the possible way forward is for us to make a libxenarinc 
static library that pulls in only what's needed.  Then look at the ./configure 
approach to enabling that library and seeing if we can selectively build solely 
that new library.

Best Regards,
-
Matthew L. Weber
Associate Technical Fellow / LXF ELISA Aerospace WG Chair



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.