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

Re: [PATCH v4 02/13] kconfig: introduce domain builder config options


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Alejandro Vallejo <agarciav@xxxxxxx>
  • Date: Thu, 17 Apr 2025 17:18:20 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) 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=lqCbXDOhyYZqP0FVhkwa4twXGcbYC2FGjV47Wm9R0Ho=; b=OwNDur63IiWkylBUb2Y/7INUxpLCtpVWcVFH6x1oDdC+7wI++p2aMOllubVfQSPaysDXmPgHifWk2a9UsmAHgP0Y1LPgkRwEcmWCPo3CYpkjN2pDxgmkGqU+X3XD0Nz01URjevibu30IG/U0stPW27cNSuM6g1gjPPORgmN5FzejFeWqifvHBpge2D8QTLUFDW6dSUjO5IPM8F+yETadpNsNwupgneGRxZvPVM0+37T9Mk8lrgWGY92KnTzBughWGOgtcRgfCG1h+m0bQTlXpHQUzNnW68zbXw13qp5W0nR6rJIz502ZMsoi0+/6vt8bsTWHG+JeNH8PW7Xa1g3LsQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=l1m4qDUjPruf5+T101fbVr5Q+T3nUSYsTlp3MAkoUBTN0/ywhq0AkAhhf1QQKSQ4sbN0SDQBtbntH1+nPZ0MEoiDPC9duvzcbf8dZ67ULmU9wcxZc8otfIEvKJFwWlJl16D9tioVPNfeI8+G84o+0OtUcoG0Fq3YJBkNcwHLaGsd/qJMYGYjGcTISo0YD0CQRbhZ9A/DqY9ZSu9PwLSDFxZiSDc8iUOQEniEFLmbORo+6wbLpoqNIqqPLLexQIhZa+3sYbRrYO3FPbHTplKBsQ+Zi9iFyXyELJ5RkOQL/bz0LhwfpSuPrGUqskXjne8rN6OnUm29V7l/DCeHdSFK5A==
  • Cc: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Michal Orzel" <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 17 Apr 2025 16:18:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu Apr 17, 2025 at 4:00 PM BST, Jan Beulich wrote:
> On 17.04.2025 14:48, Alejandro Vallejo wrote:
>> --- /dev/null
>> +++ b/xen/common/domain-builder/Kconfig
>> @@ -0,0 +1,18 @@
>> +
>> +menu "Domain Builder Features"
>> +depends on HAS_BOOT_INFO
>
> That is, what's going to further be added here will not ...
>
>> +config DOMAIN_BUILDER
>
> ...depend on this, but just on HAS_BOOT_INFO? Seems not very likely, but
> I'll be looking forward to learn what the plans are.

CONFIG_HAS_BOOT_INFO has nothing to do with future plans.  The domain
builder is tightly integrated with the boot_info infrastructure and
cannot be used (or linked) unless the arch-specific definitions are
present. It cannot function without it. And this movement from arch/ to
common/ forces this new Kconfig to gate core.c on boot_info existing
(because it's in asm/bootinfo.h atm). I _COULD_ also move the boot_info
elsewhere, but without a drive to actually use it, that seems a bit
pointless.

HAS_BOOT_INFO && !DOMAIN_BUILDER still links core.c, because that
contains the common initialiser for boot_info.

>
> Also, if the entire contents here is to depend on HAS_BOOT_INFO, can't
> the "source" line pulling in this Kconfig be put inside "if HAS_BOOT_INFO"?
> That would centralize definition and use of that symbol to a single file.

Sure.

>
>> +    bool "Domain builder (UNSUPPORTED)" if UNSUPPORTED
>> +    select LIBFDT
>> +    help
>> +      Xen has a built-in mechanisms to automatically construct domains
>> +      (like dom0) during the boot phase. The domain builder is an enhanced
>> +      form of that mechanism to enable constructing predefined domains
>> +      described on a flattened device tree.
>
> I'm not a native speaker, but (perhaps because of that) "on" here reads
> odd. More logical to me would be "by" or "via".
>
> Jan

Yes, you're right. I just felt the previous help wasn't very helpful
unless you knew in advance what you were toggling. Jason's more concrete
suggestion in the following reply sounds reasonable too, so I'll just
copy that on resend.

Cheers,
Alejandro



 


Rackspace

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