[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4] xen/arm, xen/common: Add Kconfig option to control Dom0 boot
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>
- Date: Fri, 26 Sep 2025 07:13:00 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=WJQxmK4vy5OunDTKz5gEJ4UhncBojmgKbB4Rq8HH8e0=; b=stj8PUaWRz1ipxVe7Uzye5fR4Sj66c1dR5YC2UKEuUUOc8hy/ZDwCu3hZ8qtCqVgttMjvmc7cZSJh+c4Z3KnP9foyz8U22tT21++L1lY2gSwS50U9xuOzYmW03MkfmRAPpP/tR5FdJL2qrQVoObLCsWzF8YAJLZXyEQTBZka9OhZHYBOUecfkOwP9Utl4odIZKMPr95bGzGEKhIhQyR4H1P2GAd5NzXguzIgDVQW01TVBfWlmALLtzcQqKRYk2qw/pl9tL+wB2BWLXdcZr4X8vNaLPpGNZ1vjnnw7eGsvDPZjz2eOo7tRtJXNnKPgchNRaVCkxpyCeLkA8CzLkTYzA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Xki7iCe14Sx7UxnMsLUuHukpQmftljYWy+dCWDAfP8EWAalsg03JE2iDa0yo+tdpYRax8rtMX30tq1LNro6AkNuOFMGEPFRaMZRACibNLk9Cw6/exSQ5cvkoY94mGtcMKRglFZF5swhNzFULpJzAQuUeQ+42Jg2EK+xPugmO/fOLqnXnODp5DqNCuUyOEIaxgwgsx2Fn50GdhWpqKFMepegSdpfHR/Kqjj8BxkhQ++iqwxBzXLG1KnooemWRnMJlqFf1efu1snd53qY5j9ei+Dld2Oj9MF1YL0/QkZGXsFKLIRXlKJ/NFEOPsx+ug/w//7up4e6mYd623I6LeYXu2g==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 26 Sep 2025 07:13:21 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcLiyQ3fkFbkmvJUapaW4Nz2vAh7SkD2WAgAD+OgA=
- Thread-topic: [PATCH v4] xen/arm, xen/common: Add Kconfig option to control Dom0 boot
On 25/09/2025 19:03, Jan Beulich wrote:
> On 25.09.2025 16:56, Oleksii Moisieiev wrote:
>> This commit introduces a new Kconfig option, `CONFIG_DOM0_BOOT`, to
>> allow for building Xen without support for booting a regular domain (Dom0).
>> This functionality is primarily intended for the ARM architecture.
>>
>> A new Kconfig symbol, `HAS_DOM0`, has been added and is selected by
>> default for ARM and X86 architecture. This symbol signifies that an
>> architecture has the capability to support a Dom0.
>>
>> The `DOM0_BOOT` option depends on `HAS_DOM0` and defaults to 'y'. For
>> expert users, this option can be disabled (`CONFIG_EXPERT=y` and no
>> `CONFIG_DOM0_BOOT` in the config), which will compile out the Dom0
>> creation code on ARM. This is useful for embedded or dom0less-only
>> scenarios to reduce binary size and complexity.
>>
>> The ARM boot path has been updated to panic if it detects a non-dom0less
>> configuration while `CONFIG_DOM0_BOOT` is disabled, preventing an invalid
>> boot.
>>
>> Signed-off-by: Oleksii Moisieiev <oleksii_moisieiev@xxxxxxxx>
>>
>> ---
>>
>> Changes in v4:
>> - change Misra rule to 2.1 from 2.2 in description
>> - remove extra dependencies for ARM architecture from DOM0_BOOT
>> - rephrase DOM0_BOOT help by adding hyperlaunch
>> - DOM0_BOOT is not mandatory for x86 architecture
> Luckily this is merely wrong here ("not" should be dropped), but correct
> in the actual Kconfig logic, so:
> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
>
> Jan
Yeah, I had word "now" in mind while typing this...
Oleksii
|