All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: "Jürgen Groß" <jgross@suse.com>, "Jan Beulich" <jbeulich@suse.com>
Cc: Sergey Dyasli <sergey.dyasli@citrix.com>,
	Dario Faggioli <dfaggioli@suse.com>,
	Ross Lagerwall <ross.lagerwall@citrix.com>,
	George Dunlap <George.Dunlap@citrix.com>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [Xen-devel] Live-Patch application failure in core-scheduling mode
Date: Sat, 8 Feb 2020 12:19:28 +0000	[thread overview]
Message-ID: <81ce9fab-e19e-9a36-b855-3a591f3653cb@citrix.com> (raw)
In-Reply-To: <f7814499-920b-6d7f-1a39-bb4bfb4d69c6@suse.com>

On 07/02/2020 08:42, Jürgen Groß wrote:
>
>> Without it being entirely clear that there's no alternative to
>> it, I don't think I'd be fine with re-introduction of
>> continue_hypercall_on_cpu(0, ...) into ucode loading.
>
> I don't see a viable alternative. 

Sorry to interject in the middle of a conversation, but I'd like to make
something very clear.

continue_hypercall_on_cpu(0, ...) is, and has always been fundamentally
broken for microcode updates.  It causes real crashes on real systems,
and that is why the mechanism was replaced.

Changing back to it is going to break customer systems.

It is necessary to have the full system quiesced in practice, because
for a given piece of microcode, we don't know whether its a cross-thread
load (the common case which most people are familiar with), whether it
is a cross-core load (yes - it turns out this does exist - it
highlighted a bug in testing), and whether there an uncore/pcode/etc
update included as well.

I haven't come across a cross-socket load yet (and it likely doesn't
exists, given some aspects of loading which I think would be prohibitive
in this case), but there really are systems where loading microcode on
core 0 will flush and reload the MSROMs on all other cores in the
package, under the feet of whatever else is going on there.  This
includes making things like MSR_SPEC_CTRL disappear transiently.

We don't necessarily need to use stop_machine(), or use it exactly like
we currently do, but we do need a global rendezvous.

~Andrew

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

  parent reply	other threads:[~2020-02-08 12:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-05 16:03 [Xen-devel] Live-Patch application failure in core-scheduling mode Sergey Dyasli
2020-02-05 16:35 ` Jürgen Groß
2020-02-06  9:57 ` Jürgen Groß
2020-02-06 11:05   ` Sergey Dyasli
2020-02-06 14:02     ` Sergey Dyasli
2020-02-06 14:29       ` Jürgen Groß
2020-02-07  8:04       ` Jürgen Groß
2020-02-07  8:23         ` Jan Beulich
2020-02-07  8:42           ` Jürgen Groß
2020-02-07  8:49             ` Jan Beulich
2020-02-07  9:25               ` Jürgen Groß
2020-02-07  9:51                 ` Jan Beulich
2020-02-07  9:58                   ` Jürgen Groß
2020-02-07 11:44                 ` Roger Pau Monné
2020-02-07 12:58                   ` Jürgen Groß
2020-02-08 12:19             ` Andrew Cooper [this message]
2020-02-08 12:29               ` Jürgen Groß
2020-02-11  9:07         ` Sergey Dyasli
2020-02-11  9:23           ` Jürgen Groß

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=81ce9fab-e19e-9a36-b855-3a591f3653cb@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=George.Dunlap@citrix.com \
    --cc=dfaggioli@suse.com \
    --cc=jbeulich@suse.com \
    --cc=jgross@suse.com \
    --cc=ross.lagerwall@citrix.com \
    --cc=sergey.dyasli@citrix.com \
    --cc=xen-devel@lists.xen.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.