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

Re: [PATCH 0/4] Add Kconfig option to remove microcode loading support


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Thu, 13 Nov 2025 13:12:07 +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=v+FacR7mEg8qfbq9hx46rrqy8DywRwjvTi6AGMVrifM=; b=egYUoPsRDloWMwkb45iAmYZHOX6Ypv7OQVafU4utubCYxHX4j25EQP9/zvMLZzLprli28/qENEqkWVUNvCAow9IZu1Am90HndrWmvPDhJaVezzSSMRqYgiY89sKuUqBv55xdYAFmNLqSz39QI+Ls/GVBFTEw8V4sfLhH2F4HCglCAcGxHcUVFiRJAYOiV+1YNW/NVxS8H7j4efIzMF3D/3+Dimh6b4ihnWqX8N05EOVctGsHabLrq1Qdh2DF2G7/nY6xnwHrJy7yhF2kUJWVO9yVI6np7eSyQiZUd3ua7b18MBo8ZEeBcNQ5kjI46jQuUifVM8cuKRqxJvRYd029Xw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lcw8tbpiHCKVRDx+LDTx0XVPlBdk30DGYBcYgMir+yuJptkhMzVGoBoXhzw1zDHZIOQHc5H4rM5Fa8csXsHsvrpIbXT23AXZjnetGWc4WZm8vsu7tD8Gp+e+MSxWKYlwyIEOZXW5+JLFvnfqkk48J6nNVudTALcibLlnkiXkDn12n4NjvfshbuRVRAeupAYJ0LyRKdMxEw6ADzdDbEb6WVJjuVNj4UkJtojsPS/sRj+Z4xMBFucGDtrFiKZDXL8yAxpjLj3IgOcXkqv4tMFayKFHsLYnqAxfwvvoU5TyZSWULKeb6atTSjrpJIJ9k04KSwEsze1wVwTJyOWBnL8kSg==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 13 Nov 2025 12:12:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu Nov 13, 2025 at 8:36 AM CET, Jan Beulich wrote:
> On 12.11.2025 17:22, Alejandro Vallejo wrote:
>> Hi,
>> 
>> The series is mostly a refactor between everything needed to load microcode 
>> and
>> the bare minimum to probe the current microcode revision.
>> 
>> The Kconfig option keeps the reading of microcode rev data around, as it's 
>> very
>> relevant for security and debuggability in order to deduce which erratas 
>> apply
>> to the current platform.
>> 
>> The idea is to move everything that must still be compiled with !CONFIG_UCODE
>> onto {,amd-,intel-}base.c, then remove everything else conditionally at the
>> Makefile level.
>> 
>> Renaming files (e.g: s/base/core/ and s/core/common/) would better reflect
>> post-series reality, but it'd be annoying for later backports in this general
>> area.
>> 
>> Cheers,
>> Alejandro
>> 
>> Alejandro Vallejo (4):
>>   x86: Split out AMD-specific code to be executed without ucode loading
>>   x86: Split out Intel-specific code to be executed without ucode
>>     loading
>>   x86: Split out early_microcode_load() and microcode_load_one()
>>   x86: Add Kconfig option to disable microcode loading
>> 
>>  xen/arch/x86/Kconfig                    | 12 ++++
>>  xen/arch/x86/cpu/microcode/Makefile     |  9 ++-
>>  xen/arch/x86/cpu/microcode/amd-base.c   | 55 +++++++++++++++++++
>>  xen/arch/x86/cpu/microcode/amd.c        | 55 ++-----------------
>>  xen/arch/x86/cpu/microcode/amd.h        | 15 +++++
>>  xen/arch/x86/cpu/microcode/base.c       | 73 +++++++++++++++++++++++++
>>  xen/arch/x86/cpu/microcode/core.c       | 58 +-------------------
>>  xen/arch/x86/cpu/microcode/intel-base.c | 50 +++++++++++++++++
>>  xen/arch/x86/cpu/microcode/intel.c      | 56 +++----------------
>>  xen/arch/x86/cpu/microcode/intel.h      | 16 ++++++
>>  xen/arch/x86/cpu/microcode/private.h    | 14 +++++
>>  xen/arch/x86/efi/efi-boot.h             |  2 +-
>>  xen/arch/x86/platform_hypercall.c       |  2 +
>>  13 files changed, 259 insertions(+), 158 deletions(-)
>>  create mode 100644 xen/arch/x86/cpu/microcode/amd-base.c
>>  create mode 100644 xen/arch/x86/cpu/microcode/amd.h
>>  create mode 100644 xen/arch/x86/cpu/microcode/base.c
>>  create mode 100644 xen/arch/x86/cpu/microcode/intel-base.c
>>  create mode 100644 xen/arch/x86/cpu/microcode/intel.h
>
> Purely based on this diffstat: A doc update likely is necessary as well, as
> the ucode= command line option now becomes only conditionally applicable 
> (aiui,
> i.e. without having looked at the patches them selves).
>
> Jan

Yes, that sounds sensible.

Cheers,
Alejandro



 


Rackspace

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