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

Re: [PATCH v6 1/3] x86/microcode: Ignore microcode loading interface for revision = -1


  • To: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 25 Jul 2023 08:40:31 +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=zra/HTMP5ef0ZgjtY/CGV/K/31/jxct9cpzrwEqCzm8=; b=SlYrGZr5nMENqw4rdLpOmFYH3yVZrcp5SswLOPZDQRSX+0XyuovrafQDz4Jsh2CwdEZDfzBntVX1p9+SjHSm2P1CDlD2p9HhkRCiJ9azBtgU4RUzREKWH3mbPXZOBwS5BTxbShFPIVz7ab+NlO7nFo3dVU7VN7yGlZuzLZ+PyPXiJ1RpUYr20ZgaACNIvwIxUZL4/trzG8j6GgTZXK2qtQtCIw5cUL0qq6FAPn7y3prZGWSeiYMgtWtYg+QAxB86yfjNB7x6Ji7L/A8zw1m5hoiuQ3UOevxCTY/Qhe2ksy9QzGkUCYLEQCU6rArXePGdFEMhDOB9clJdjuySlEFsnQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PiSbbsIYWCp1pRiCNRAJfJITcAYpnwuoumh4rSu3P6c+IYvPU90ETjoVfD97K49Fo11wGViKQAwYOMdRfOukkSO3tIY278RjX65H9jELSU9R+LW+iUcFBa09QUSxRF2CLwM6XXsfPnwlEBQylS32EpJ/KOi7ee2DEmBzp4SF793oXODmiTvC80vNKhNU+ndaJLtgIRMr+rHMXZY8ls/hhj3V55D3V1FIcBAbBcjgyVd9K6mkoaaRAoz2FORJiI2vzF2u0eR922OQvb6+mHGRh7bVjbRXNncbMBarsnwq4PTYcdSBDYLye5HeZ7Y/uQVZWBEqO7C+f5c6eLeBGYwvVw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 25 Jul 2023 06:41:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 24.07.2023 18:52, Alejandro Vallejo wrote:
> Some hypervisors report ~0 as the microcode revision to mean "don't issue
> microcode updates". Ignore the microcode loading interface in that case.
> 
> Signed-off-by: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

Hmm.

> --- a/xen/arch/x86/cpu/microcode/core.c
> +++ b/xen/arch/x86/cpu/microcode/core.c
> @@ -867,10 +867,23 @@ int __init early_microcode_init(unsigned long 
> *module_map,
>          return -ENODEV;
>      }
>  
> -    microcode_grab_module(module_map, mbi);
> -
>      ucode_ops.collect_cpu_info();
>  
> +    /*
> +     * Some hypervisors deliberately report a microcode revision of -1 to
> +     * mean that they will not accept microcode updates. We take the hint
> +     * and ignore the microcode interface in that case.
> +     */
> +    if ( this_cpu(cpu_sig).rev == ~0 )
> +    {
> +        printk(XENLOG_INFO "Microcode loading disabled due to: %s",

While we have tentatively agreed to adjust what _will_ be emitted by
default (subject to suitable justification in that change's
description), such a patch is yet to be sent. As it stands this message
will be invisible by default.

> +                           "HW toggle");

With the comment talking about hypervisors, what is this string supposed
to tell an observer of the message in a log file?

Jan



 


Rackspace

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