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

Re: [PATCH 2/2] x86/Kconfig: Introduce CONFIG_{AMD,INTEL} and conditionalise ucode


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 26 Oct 2023 09:55:53 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=KperA67NHhVdPhHvryRtO/eew4wsEJq0Eq9CIUinfPg=; b=Sw+ZXJaM1ybiPB0CpnMBv7hXFU4zzgLn76P04LZa+uAg1KevVi4EDXheFDTSu9c+aGqrzfkmws13pg9ng1blncxN1tw4DacwvqjS2pyHehkHwju1/dg7ymk2qm1DsVK4zMoJ+SMftyPgkmeieEeGxphUGYJ8hgq7QtO1nzrpb1COYvBjmJG6nClYPeHZS/HjaDO9pbm1ZHCkJwEbqZJI3k9MLuk6JyCLrMLvv+kzvAc4v7VAU9JSIxgc27S0qtnefs7jABA8kwqXvt/v8y8HFTAaWuduqjOhD/ckpwV7tbU3tPuoZwyqWYZiRxjWX+JeCYQkKtuXvenp+73qzoy+pg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UJIxU6moI95qNz/+6KRy4fP9MNR2slEka8C9SyjAoPg6XkOVhJwuqa/XCV2/A0BZsfnU9sFbPc1ZMsWqY1RKsE/Qlly7Tg9iv9C4f2JprWQYgUzwJQoWJs0CcJK7r+sLESr3+dwjEtFNtZDxNE856qJxWKKiJHGn7O9uUVHIpBmmm9yHcqqxhW5bJ6LyaA1RoShw1Ths4OhtrjHczQik+5J1eLHZqzvL2KoteynG3HuUaxeb7+JqMHTJzIH5WV32GkUvvyutkWQWRtED1u9njrWrnfprfnL/84FwnRuTmjMvUWg5eqZaImfzBL633ooveZHHCCVcwI81SPLfU6zjlg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>, Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 26 Oct 2023 07:56:19 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25.10.2023 20:06, Andrew Cooper wrote:
> We eventually want to be able to build a stripped down Xen for a single
> platform.  Make a start with CONFIG_{AMD,INTEL} (hidden behind EXPERT, but
> available to randconfig), and adjust the microcode logic.

Linux uses different names for the Kconfig symbols. While I'm unconvinced
of the SUP part, I wonder whether we wouldn't better use CPU in the names.
One immediate question here is how the IOMMU interaction is intended to
end up: Do we want to permit either vendor's CPUs with the other vendor's
IOMMUs to be usable?

> --- /dev/null
> +++ b/xen/arch/x86/Kconfig.cpu
> @@ -0,0 +1,22 @@
> +menu "Supported processor vendors"
> +     visible if EXPERT
> +
> +config AMD
> +     bool "AMD"
> +        default y
> +        help
> +          Detection, tunings and quirks for AMD processors.
> +
> +       May be turned off in builds targetting other vendors.  Otherwise,
> +       must be enabled for Xen to work suitably on AMD processors.
> +
> +config INTEL
> +     bool "Intel"
> +        default y
> +        help
> +          Detection, tunings and quirks for Intel processors.
> +
> +       May be turned off in builds targetting other vendors.  Otherwise,
> +       must be enabled for Xen to work suitably on Intel processors.
> +
> +endmenu

Nit: Throughout this hunk there's an inconsistency with indentation
(hard tabs not used in some places where they ought to be).

Also, depending on the verdict on the aspect mentioned at the top,
"processors" may want replacing by "systems" or "platforms" or some
such if we mean these to cover more than just the CPUs.

Jan



 


Rackspace

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