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

Re: [PATCH 02/12] x86: Add more granularity to the vendors in Kconfig


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Wed, 11 Feb 2026 18:51:43 +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=IyUdysUO+/Aj6zW6ycXlJSe1qFojlP8/6o7CifbAs9M=; b=SdYoy0o4Zgl6qBwQbE2RCsMcDO8N8WRN2xpLwAr9V4+eGJqdCzp3M47DG88u8ZyH2uZYC8AeW40Am5TQZXcyWdk3M0QvHSCRe33R86WBgIV2cYdsctMVZVRtm77PVbSYZ63B8yv6yNy5oPLLnN9pXZHr+5ybf5xG08JLdiAOTe3TeObevLW+JksynukpMWzR3/mgY19U9lyORMoTRYPDssfRGtawTV2XhtFxOaQhrxyortDkGog1IpwBw0UIgZBd8BRJGp7j4S8SSuticBP/d+wADFYP+H5ImpVQg1xtUeAGQziqiXld00EXFyuQazIZG+1/H2Hu2Yk8kjNYXlye0w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uxHgZyPqfnFUCu8wxhECOJLkTVG82Hw46b3XxSLz9zYk90mAjIGcqbWGRIgz7fYym35tMs1kOLx8eeJHsooEKbQulUFiPL29oklvLhbWH41mPqdnojgF9iIFbvhiXJrEIw6b0HESDl1mToCSwhQWnX9w5F1F1bMHPm2QIWOSIaDW7B4RtSBYhazT9GWxcurVoyXSaCWdjQoSBw+5xAmQtdCYLTnN1KJkaFoPAeipnFVhOCP+yMgFh30OP9kTRRaknXBBLJWaWwNIjlM4ZCMlfIzSzs4S+ymxSYhkQynbR0VqYEcFqLdHR2dLEF1QHRV/9I710FQQrUp5vtRgonQJTw==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 11 Feb 2026 17:52:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed Feb 11, 2026 at 5:06 PM CET, Jan Beulich wrote:
> On 06.02.2026 17:15, Alejandro Vallejo wrote:
>> --- a/xen/arch/x86/Kconfig.cpu
>> +++ b/xen/arch/x86/Kconfig.cpu
>> @@ -19,4 +19,47 @@ config INTEL
>>        May be turned off in builds targetting other vendors.  Otherwise,
>>        must be enabled for Xen to work suitably on Intel platforms.
>>  
>> +config HYGON
>> +    bool "Support Hygon CPUs"
>> +    select AMD
>> +    default y
>> +    help
>> +      Detection, tunings and quirks for Hygon platforms.
>> +
>> +      May be turned off in builds targetting other vendors.  Otherwise,
>> +      must be enabled for Xen to work suitably on Hygon platforms.
>> +
>> +
>> +config CENTAUR
>> +    bool "Support Centaur CPUs"
>> +    select INTEL
>> +    default y
>> +    help
>> +      Detection, tunings and quirks for Centaur platforms.
>> +
>> +      May be turned off in builds targetting other vendors.  Otherwise,
>> +      must be enabled for Xen to work suitably on Centaur platforms.
>> +
>> +config SHANGHAI
>> +    bool "Support Shanghai CPUs"
>> +    select INTEL
>> +    default y
>> +    help
>> +      Detection, tunings and quirks for Shanghai platforms.
>> +
>> +      May be turned off in builds targetting other vendors.  Otherwise,
>> +      must be enabled for Xen to work suitably on Shanghai platforms.
>> +
>> +config UNKNOWN_CPU_VENDOR
>> +    bool "Support unknown CPU vendors"
>> +    default y
>> +    help
>> +      This option prevents a panic on boot when the host CPU vendor isn't
>> +      supported by going into a legacy compatibility mode and not applying
>> +      any relevant tunings or quirks.
>> +
>> +      Not selecting this options while selecting multiple vendors doesn't 
>> have
>> +      any major effect on code size, but selecting a single vendor with this
>> +      option cleared produces a much smaller build.
>
> Shouldn't this option's prompt be suppressed when all other vendors were
> selected off? Else the degenerate case can result that I mentioned in
> reply to patch 03.
>
> Jan

You mean having the option disappear when any explicit vendor is enabled?

I guess we could. It wouldn't be very obvious to the user this can be toggled,
but now again, if they are unticking vendors they would end up noticing.

Cheers,
Alejandro



 


Rackspace

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