xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Eslam Elnikety <elnikety@amazon.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Stefano Stabellini" <sstabellini@kernel.org>,
	"Julien Grall" <julien@xen.org>, "Wei Liu" <wl@xen.org>,
	"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
	"George Dunlap" <George.Dunlap@eu.citrix.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Ian Jackson" <ian.jackson@eu.citrix.com>,
	"Paul Durrant" <pdurrant@amazon.co.uk>,
	xen-devel@lists.xenproject.org,
	"David Woodhouse" <dwmw@amazon.co.uk>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [Xen-devel] [PATCH v1 2/4] x86/microcode: Improve parsing for ucode=
Date: Mon, 27 Jan 2020 20:34:26 +0100	[thread overview]
Message-ID: <54470337-d6ba-64a4-e873-5954db070278@amazon.com> (raw)
In-Reply-To: <5a5fb1af-6405-9052-6f6b-0cc650f1e424@suse.com>

Thanks for getting the other patches in the series onto master, Jan.

This is the only patch out of this series that did not make it through, 
so I keeping my comments here.

On 23.01.20 11:26, Jan Beulich wrote:
> On 22.01.2020 23:30, Eslam Elnikety wrote:
>> Decouple the microcode indexing mechanism when using GRUB to that
>> when using EFI. This allows us to avoid the "unspecified effect" of
>> using `<integer>` when booting via EFI.
> 
> Personally I'd prefer us to continue call this unspecified. It
> simply shouldn't be used. People shouldn't rely on it getting
> ignored. (Iirc, despite this being v1, you had previously
> submitted a patch to this effect, with me replaying about the
> same.)
> 
>> With that, Xen can explicitly ignore that option when using EFI.
> 
> Don't we do so already, by way of the "if ( !ucode_mod_forced )"
> you delete?
> 

Not quite. If cfg.efi does not specify "ucode=<filename>", then a 
`ucode=<integer>` from the commandline gets parsed, resulting in the 
"unspecified" behaviour. Here, the ucode_mod_idx will hold the <integer> 
which will be used as index into the modules prepared in whatever order 
the efi/boot.c defines.

In any case, let me know (and others too) if, later on, you may want to 
favor the explicitly ignore (opposed to unspecified) semantic and I will 
be happy to send another revision of this patch while addressing your 
comment below.

>> --- a/docs/misc/xen-command-line.pandoc
>> +++ b/docs/misc/xen-command-line.pandoc
>> @@ -2147,9 +2147,9 @@ for updating CPU micrcode. When negative, counting starts at the end of
>>   the modules in the GrUB entry (so with the blob commonly being last,
>>   one could specify `ucode=-1`). Note that the value of zero is not valid
>>   here (entry zero, i.e. the first module, is always the Dom0 kernel
>> -image). Note further that use of this option has an unspecified effect
>> -when used with xen.efi (there the concept of modules doesn't exist, and
>> -the blob gets specified via the `ucode=<filename>` config file/section
>> +image). This option should be used only with legacy boot, as it is explicitly
>> +ignored in EFI boot. When booting via EFI, the microcode update blob for
>> +early loading can be specified via the `ucode=<filename>` config file/section
>>   entry; see [EFI configuration file description](efi.html)).
> 
> Just like in patch 1, please distinguish "EFI boot" in general from
> "use of xen.efi" (relevant here of course only if indeed we went
> with this patch).
> 
> Jan
> 
You have mentioned this very same remark on the other patch too. My 
understanding is that "EFI boot" may be ambiguous between (a) we are 
actually booting from xen.efi or (b) a system with EFI support (and the 
latter may still be falling onto grub for booting). Let me know if 
that's not actually what your remark is about.

Cheers,
Eslam

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2020-01-27 19:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-22 22:30 [Xen-devel] [PATCH v1 0/4] x86/microcode: Improve documentation and code Eslam Elnikety
2020-01-22 22:03 ` Eslam Elnikety
2020-01-22 22:30 ` [Xen-devel] [PATCH v1 1/4] x86/microcode: Improve documentation for ucode= Eslam Elnikety
2020-01-22 22:03   ` Eslam Elnikety
2020-01-23 10:20   ` Jan Beulich
2020-01-22 22:30 ` [Xen-devel] [PATCH v1 2/4] x86/microcode: Improve parsing " Eslam Elnikety
2020-01-22 22:03   ` Eslam Elnikety
2020-01-23 10:26   ` Jan Beulich
2020-01-27 19:34     ` Eslam Elnikety [this message]
2020-01-28 13:05       ` Jan Beulich
2020-01-22 22:30 ` [Xen-devel] [PATCH v1 3/4] x86/microcode: avoid unnecessary xmalloc/memcpy of ucode data Eslam Elnikety
2020-01-22 22:03   ` Eslam Elnikety
2020-01-23 10:29   ` Jan Beulich
2020-01-22 22:30 ` [Xen-devel] [PATCH v1 4/4] x86/microcode: use const qualifier for microcode buffer Eslam Elnikety
2020-01-22 22:03   ` Eslam Elnikety

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=54470337-d6ba-64a4-e873-5954db070278@amazon.com \
    --to=elnikety@amazon.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dwmw@amazon.co.uk \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=konrad.wilk@oracle.com \
    --cc=pdurrant@amazon.co.uk \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).