From: Alejandro Vallejo <alejandro.vallejo@cloud.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v6 1/3] x86/microcode: Ignore microcode loading interface for revision = -1
Date: Fri, 28 Jul 2023 12:45:44 +0100 [thread overview]
Message-ID: <64c3aa72.7b0a0220.ec31.f864@mx.google.com> (raw)
In-Reply-To: <64bfc52e.050a0220.14646.cb0d@mx.google.com>
On Tue, Jul 25, 2023 at 01:50:52PM +0100, Alejandro Vallejo wrote:
> On Tue, Jul 25, 2023 at 08:40:31AM +0200, Jan Beulich wrote:
> > > --- 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",
> >
> [snip]
>
> > As it stands this message
> > will be invisible by default.
> Arguably, that's not necessarily a bad thing. The fact that microcode
> cannot be updated is expected behaviour and it makes little sense to warn
> about it. If only because they should already be aware of it through their
> agreement with their provider.
>
> The case I can think of where a warning would be sensible is where the
> system has a microcode blob more recent than the currently installed
> revision. This is something the admin may want to be aware of in order to
> pester their provider for updates. In the common case the machine won't
> even need such an update, so sending unconditional warnings per boot seems
> unwarranted.
Actually, the previous message probably ought to be an INFO too. It's an
unconditional warning on old AMD and anything non AMD/Intel for no good
reason.
Alejandro
next prev parent reply other threads:[~2023-07-28 11:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-24 16:52 [PATCH v6 0/3] Prevent attempting updates known to fail Alejandro Vallejo
2023-07-24 16:52 ` [PATCH v6 1/3] x86/microcode: Ignore microcode loading interface for revision = -1 Alejandro Vallejo
2023-07-25 6:40 ` Jan Beulich
2023-07-25 6:43 ` Jan Beulich
2023-07-25 12:50 ` Alejandro Vallejo
2023-07-28 11:45 ` Alejandro Vallejo [this message]
2023-07-24 16:52 ` [PATCH v6 2/3] x86: Read MSR_ARCH_CAPS immediately after early_microcode_init() Alejandro Vallejo
2023-07-24 16:52 ` [PATCH v6 3/3] x86/microcode: Disable microcode update handler if DIS_MCU_UPDATE is set Alejandro Vallejo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=64c3aa72.7b0a0220.ec31.f864@mx.google.com \
--to=alejandro.vallejo@cloud.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.