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

Re: [RFC PATCH 2/2] add document minimal_xen_tools.pandoc


  • To: Sookyung Ahn <sookyung.ahn@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 14 May 2025 09:28:37 +0200
  • Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
  • Cc: matthew.l.weber3@xxxxxxxxxx, joshua.c.whitehead@xxxxxxxxxx, Anderson.Choi@xxxxxxxxxx, brian.j.wood2@xxxxxxxxxx, haesun.kim@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 14 May 2025 07:28:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 14.05.2025 09:12, Sookyung Ahn wrote:
> --- /dev/null
> +++ b/docs/designs/minimal_xen_tools.pandoc
> @@ -0,0 +1,147 @@
> +- [Minimal Xen-tools](#minimal-xen-tools)
> +  - [`xen-tools` : full vs minimal](#xen-tools--full-vs-minimal)
> +  - [Components of minimal `xen-tools`](#components-of-minimal-xen-tools)
> +  - [How to enable minimal `xen-tools`](#how-to-enable-minimal-xen-tools)
> +  - [How to include a component which is 
> excluded](#how-to-include-a-component-which-is-excluded)
> +    - [Library](#library)
> +    - [Tool](#tool)
> +
> +# Minimal Xen-tools
> +
> +Purpose : To enhance `xen-tools` for users who require only a minimal subset 
> of its functionality, particularly in safety-critical domains such as 
> aerospace. 
> +
> +## `xen-tools` : full vs minimal
> +
> +- total size of **full** `xen-tools` and **minimal** `xen-tools`
> +
> +|      | full         | minimal        |
> +|------| ------------ | ------------ |
> +|ipks  | 8.1M (8216K) | **1.3M** (1276K) |
> +|image | 26M (25944K) | **4.6M** (4664)K |
> +
> +## Components of minimal `xen-tools`
> +
> +| `xen-tools-`        | included | Rationale                                 
>                    | remark  |
> +|---------------------| -------- | 
> ------------------------------------------------------------ | ------- |
> +| libxencall          | yes      | library to provide hypercall interface    
>                    |         |
> +| libxenctrl          | yes      | library to provide interface for the 
> ARINC 653 scheduler     | partially included |
> +| libxendevicemodel   | no       | library to support device model. Not 
> needed                  |         |
> +| libxenevtchn        | no       | library to support event channel. Not 
> needed with static event channel | |
> +| libxenforeignmemory | yes      | library to support  memory management for 
> hypercall buffer                       |         |
> +| libxengnttab        | no       | library to support grant table. We are 
> plainning to use static shared memory instaed of grant table to avoid dynamic 
> memory allocation. | |
> +| libxenguest         | no       | library to support control and manage the 
> domUs. Not required with dom0less | |
> +| libxenhypfs         | no       | library to provide interface for 
> hypervisor fs. We don't access hypervisor fs. | |
> +| libxenlight         | no       | library to support `xl`. We don't use 
> `xl` at all            | |
> +| libxenstat          | no       | library to monitor statistic data of 
> domUs with `xentop`. We don't use it | |
> +| libxenstore         | no       | library to access `XenStore`. We don't 
> use `XenStore`. | |
> +| libxenutil          | no       | library to provide common utilities. | |
> +| libxenvchan         | no       | library to provide interface for 
> vchan(vitual channel). We don't use vchan | |
> +| libxentoolcore      | yes      | managing libraries' handlers              
>                    |         |
> +| libxentoollog       | yes      | library to provide logging interface      
>                    | can be removed |
> +| 9pfsd               | no       | network file system protocol.             
>                    | had dependency on `XenStore` |
> +| consold             | no       | `ctrl-a` ×3 replaces it                   
>                      |         |
> +| dev                 | yes      | header files                              
>                    |         |
> +| flask               | yes      | Xen security policy framework (XSM/FLASK) 
>                    | disabled |
> +| flask-tools         | yes      | tools to manage FLASK policy              
>                    | disabled |
> +| fuzz                | no       | FUZZ test tool                            
>                    |         |
> +| fsimage             | yes      | file system image generator for domUs; 
> depends on `pygrub`   |         |
> +| hvmloader           | no       | legacy BIOS loader for HVM guests         
>                    |         |
> +| libacpi             | no       | Advanced Configuration and Power 
> Interface                   | disabled |
> +| pygrub              | yes      | bootloader parser for domU kernels        
>                    | enabled |
> +| reums               | yes      | tool for failover of domUs via periodic 
> backup; requires `libnl3` | need to check dependency with `libxenlight` (xl) |
> +| scripts-block       | yes      | scripts for block device                  
>                    |         |
> +| scripts-common      | yes      | scripts for common utilities              
>                    |         |
> +| scripts-network     | yes      | scripts for domU network setup            
>                    |         |
> +| shim                | yes      | EFI loader to launch Xen as a bootloader  
>                    | disabled  |
> +| xenpaging           | no       | domain paging tools not used              
>                    |           |
> +| xenpmd              | no       | xen power management daemon               
>                    | had dependency on `XenStore` |
> +| xenstored           | no       | Xen Store Daemon providing simple 
> tree-like database         | had dependency on `XenStore`, and event channel |
> +| xenwatchdogd        | no       | watchdog daemon. Not needed               
>                    |           |
> +| volatiles           | yes      | runtime files (e.g. sockets, pid) for Xen 
> tools              |           |
> +| xencommons          | yes      | startup script for Xen toolstack          
>                    |           |
> +| xendomains          | yes      | init scirpt to autostart and shutdown 
> domUs at boot/shutdown |           |
> +| xentrace            | no       | trace Xen internal events. kind of 
> debugging and monitoring tool. Not needed |  |
> +| xenmon              | no       | live trace monitor                        
>                    | requires `xentrace` |

While I trust you that this properly summarizes what patch 1 does, I wonder
whether this simple "full" vs "minimal" can really cover everyone's needs.
Furthermore, is it really a requirement to limit what's being _built_? I.e.
isn't what you care about what ends up on the target system(s)? In e.g. the
RPM world that would be controlled by the .spec file, not by changes to the
build infrastructure.

Jan



 


Rackspace

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