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

RE: [QUESTION] Minimal Xen Configuration


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
  • From: "Kwon, Gihwan" <gihwan.kwon@xxxxxxxxxx>
  • Date: Tue, 8 Apr 2025 06:25:20 +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=WoDTeEyU7d7mtmlWrzsmr8QzD3GpVbhHENRMwROJlQA=; b=RKbsMOwJy6e+WWMbK8DwWKOtYOOoWfOxY0WUvYvfDgtVKTjgHWgpB+VHHiKzGXC7GeLQHE9m5FLURHfO1oYrDNLPcMqie59pfzACI2vZXM/egfNHPEIcUui5X/6aCa4NYUaZjlgFM1FXkGQQVIfKtG18OCHIviSF50HX/PdOXK/G1ml/V9ZH3mbN3IZdpO+Ag90shsw3AdYBGd02b1JSCg/gYic39Muah3gEEjCUEGRamPHWWO7ONa0ylMWJF5JwN/eK8PhclGc2X4dCdaeiYMGj84lzaTOS+c4P5II1Y9A6s0C9hx6GpiXZKaU7diMZRXC7MC6jesx7MHf9/4eoqg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=WaMw1La/kfA2VL2bWXzuPrdv3xSkeqvmFEdY61S4mZ8fI8SvGBv1GaOyBIep78YXKKAWWLG6QyY6Lkn2UP7qgcZXWH8x7h9H6IOtZIumCjjKI2oeyyE2ng24QRFSIkjvRj6Ag1CW1ONvOowubp6e/pKlSscjcx9f6AowNY3lwn41Db/DTFBh71T6r4qcYraq4oNBWmpg4BLHBQlEQGTlOzLI88dDA6GzAxnMne2YNvTrpOsgU5vybqdyQiv49ipdY0WCgdxzuU0A9axTr40jtHBfi7cyQimMCoHfnl/wPESJKzfDF/VRW8lVpwWrPLO+UuA/craEMqINbwu+hCx6jw==
  • 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>, "stewart.hildebrand@xxxxxxx" <stewart.hildebrand@xxxxxxx>
  • Delivery-date: Tue, 08 Apr 2025 06:25:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbp4d8CTfihWvrfUi9wdjpxoA8O7OZTdEw
  • Thread-topic: [QUESTION] Minimal Xen Configuration

Stefano and Nicola,

> Stefano, Nicola
> 
>> On Wed, 2 Apr 2025, Nicola Vetrini wrote:
>>> On 2025-03-28 07:43, Kwon, Gihwan wrote:
>>>> Dear Xen Community,
>>>> 
>>>> I hope this message finds you well.
>>>> 
>>>> I have heard that there exists a minimal Xen configuration optimized
>>>> for safety-critical products, particularly in automotive applications,
>>>> with the code size reduced to approximately 50k SLOC.
>>>> 
>>>> Could anyone provide guidance or point me to relevant resources
>>>> regarding this minimal Xen configuration? Any insights or references
>>>> would be greatly appreciated.
>>>> 
>>>> Thank you in advance for your assistance.
>>>> 
>>>> Best regards,
>>>> Gihwan Kwon
>>> 
>>> Hello,
>>> 
>>> I am part of the team that provides static analysis for Xen, mainly
>>> towards the objective to make Xen compliant with MISRA C guidelines.
>>> As part of that effort, a minimal Xen configuration has been defined
>>> (for Arm and x86_64) at [1], which is the one currently analyzed for
>>> static analysis for each commit [2]. It starts from the default
>>> configuration for the architecture (i.e., make defconfig) and then
>>> turns on or off various Kconfig options, as specified by
>>> EXTRA_XEN_CONFIG.
>>> 
>>> @Stefano Stabellini (Cc'ed) is the main driving force behind the Xen
>>> certification effort for automotive, therefore he's probably the best
>>> person to approach to get more information on this matter.
>> 
>> Thanks Nicola. In addition to what Nicola wrote, there is an outstanding
>> activity to further reduce the code size by adding more kconfig options.
>> There are a couple of patch series on the list right now to that effect.
>> 
>> https://marc.info/?l=xen-devel&m=173745442831026
>> 
>> Last year we ran some experiments and for ARM we should be able to go
>> below 35K LOC. The tools measuring LOC are very imprecise as they do
>> not account for #ifdefs and kconfig options. So we switched to text
>> binary size for measurements as it is more accurate. do not account for
>> kconfig options and #ifdefs. Hence, we switch to using text size as
>> size measurement for Xen. One of the figure was XXX.
> 
> Thank you for sharing information regarding the current minimal config
> and additional activities. I have reviewed the configuration applied to the
>  CI and have a question.
> Currently, `CONFIG_SCHED_RTDS` is enabled instead of
> `CONFIG_SCHED_CREDIT2` and `CONFIG_SCHED_CREDIT`. Is this because
> ARINC653 scheduler cannot be used as default scheduler, as well as, rt
> scheduler is smaller than credit2 or credit scheduler?

Please disregard my previous message. I have double checked that 
mentioned configurations are set 'n'. Therefore,  `CONFIG_SCHED_NULL` 
and  `CONFIG_SCHED_CREDIT2` is being set and used in the minimal xen 
configuration.

> 
> - Gihwan
> 
>

- Gihwan





 


Rackspace

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