[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: Mon, 7 Apr 2025 06:37:09 +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=D0LxvK9aqZ+NAQzIQmU8t2yZ6PkChepAB6P4JhqjNwc=; b=1W3+wy+PMnAikBITZHGxXXHMrN5xOGhO2A6eClIADLkhGj/iYJAmeflrU4KheIgM2lC3tln0ztFs2FhxdTJ/FQKNOMVmR1xRYA1mXEWDmmr77+tLo+v/QXkfzWImS6Cz2DO40Ngg2Fqo+sAiFJUXqUx+lqM8SWgpWyCjaU+0SK1WV07gQKkbOkgSj/e+Cwmp845fw2tUBNfEyHmcwP7AbXFX0niGfbuS48+QlFh1p1FoA4Qjv5+g2vCkSlFtZiZ1c/7rvus0/uHn6urvgBtiwEi8rviGXbhWSY5HS6bIhQbOrVKltVBCgOwjeKX6OKnrUNVR2sDkp1zQkJZATVtdZg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=gg8JfXrgbLh7qgLWTdWE4j1gd17yLdZewg+sledJeVcR7wEvTNa4QziDlysVm3U/GvebEpBVwfMXaZ3mWS9dZpb6lQvubhBCcSz7p24mKzLSbihFg3DKXbX1g7Q4CIamr+Utv47nV4sRlw3Xk2LNUB6TstKTrflknqAoy6PCGkgD/AhfjmJaLeO/VGxSkJZP6W0O2axoqpRsgLko1Omq3p8qNzmiXH+l7TpS9ACVhrbRX+96wDCutg7In6vSHNZfHiuuDFfBjxfCpeBfTx7wkGPAim4oFMw5vb7TdUhOqbQa7E7Ik3LnznpkV1Vfo1Bo9BwKKtvUUyVja3B8iNSmDQ==
  • 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: Mon, 07 Apr 2025 06:37:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbp4d8CTfihWvrfUi9wdjpxoA8Ow==
  • Thread-topic: [QUESTION] Minimal Xen Configuration

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?

- Gihwan





 


Rackspace

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