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

Re: [PATCH v3 14/14] kconfig: Allow x86 to pick CONFIG_DOM0LESS_BOOT


  • To: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <agarciav@xxxxxxx>
  • Date: Mon, 16 Jun 2025 16:39:59 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=temperror action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=3qBU7Fg+QABi+iGcPxy3fjDFbaEAYIwssbUZIt3syaM=; b=AkElMJPTIX1VFQTKLbWTwwG30x7JCShgqCPaggtMt8jwPppPYtVr6Yf3mb+NDuCd0J+M7dCxCP1aGTzc5Q211x8U5DVb/6Mvwq8LcwoeO4em6foRH4dXMaT6emCGuOgT+ccUWbfIE7urWFNhfYRAhtRX7TXgur+qqwnW35Bl2HLQafW/EeVDdaXvctckqWywKTteLaPhxL/aTrBu/xW0+jblvNg0tAGDlE40axuSXKIFcjFbdDLWm+WVABNlg0Eolr47VRkul4yuKvnApoBekPBxBdYXROnDKdI8IDzyNVxdvRW3eJv7B9xR6A/IP6CNBzEzISrtLvbTWyCmPN2xDQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mHSP/lOeCPcf5A9YbQP1pzDY9ynoGoUXm+RfkihcwsTQJ/rv/UXq90QvCgjKBOAeb5qdxXbpL5SpkJmy0Kqt/vDB930IAOR67ksEtCbi9rLygXYGLFlyJeKTJ7r2gDsxoRWNne+61kA1TZrMDx8BY+HXKp/3Tu3mmgQ4U+8Zn/jSZh2L68ifNqWkuXKDqhecHM6Xuy1tiWnXrOg4f4gPc0ADtOkPD2374CG0c5o70UjnyS94YIt3+p8cAD1DsX70ctacGUnNsDy4GVJuiPdG+14xIlAst+wxYmR+yu2XVAQZJfFKCkA5WacgnNYDLiXu/wydgCucesprRRbUHzfMAA==
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Michal Orzel" <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 16 Jun 2025 14:40:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon Jun 16, 2025 at 10:00 AM CEST, Julien Grall wrote:
> Hi,
>
> On 13/06/2025 16:13, Alejandro Vallejo wrote:
>> Without picking CONFIG_HAS_DEVICE_TREE.
>> 
>> In order to do that. Allow CONFIG_DOM0LESS_BOOT to enable a subset
>> of the common/device-tree/ directory. 
>  > x86 doesn't want dom0less-build.c,> as that's tightly integrated 
> still to the ARM way of building domains.
>
> I don't understand this argument. dom0less-build.c was moved to common 
> and it will soon be used by RISC-V. This raises the question what's so 
> special with x86?

That's 2 separate matters:

  1. dom0less-build.c not being compiled in.
  2. CONFIG_DOM0LESS_BOOT enabling use of DT code without 
CONFIG_HAS_DEVICE_TREE.

(1) is a matter of not wanting to boil the ocean upfront. The way x86 and
everyone else build domains is just different and duplicated in non-trivially
consolidable ways. The goal here is to enable the domain builders in any arch
to use the same backbone. I don't want to go the extra mile just yet to unify
domain construction (though in time I will want to).

(2) has to do with compiling OUT things I really cannot have around. Anything
involving devices described in a DT must not exist on x86, because it has no
concept of a "struct device".

My intent is/was to repurpose CONFIG_HAS_DEVICE_TREE to mean "this hypervisor
goes on a platform that gives a platform-describing DT". On x86 that's given by
DSDT/SSDTs with ACPI.

>
> Note I don't particularly care if you don't want to use it on x86. 
> However, the argument provided is lacking some details... This will be 
> useful in the future if someone thinks about consolidating the two.

I very definitely will want it all unified, but I'm working one elephant at
a time.

Cheers,
Alejandro



 


Rackspace

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