All of lore.kernel.org
 help / color / mirror / Atom feed
* Resume from suspend to RAM broken when using early microcode updates
@ 2018-04-11 11:48 Simon Gaiser
  2018-04-11 11:51 ` Andrew Cooper
  0 siblings, 1 reply; 17+ messages in thread
From: Simon Gaiser @ 2018-04-11 11:48 UTC (permalink / raw)
  To: xen-devel; +Cc: Andrew Cooper, Jan Beulich


[-- Attachment #1.1.1: Type: text/plain, Size: 889 bytes --]

Hi,

when I use early microcode loading with the microcode update with the
BTI mitigations, resuming from suspend to RAM is broken.

Based on added logging to enter_state() (from power.c) it doesn't
survive the local_irq_restore(flags) call (at least a printk() after the
call doesn't output anything on the serial console).

I guess that some irq handler tries to use IBRS/IBPB. But the microcode
is only loaded later.

If I simply move the microcode_resume_cpu(0) directly before the
local_irq_restore(flags) everything seems to work fine. But I'm not sure
if this has unintended consequences.

I tested the above with Xen 4.8.3 from Qubes which includes the BTI and
microcode patches from staging-4.8. AFAICS there are no commits which
changes the affected code or other commits which sound relevant so this
probably affected also all the newer branches.

Simon


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-04-12  7:12 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11 11:48 Resume from suspend to RAM broken when using early microcode updates Simon Gaiser
2018-04-11 11:51 ` Andrew Cooper
2018-04-11 12:01   ` Simon Gaiser
2018-04-11 12:11     ` Jan Beulich
2018-04-11 12:17       ` Jan Beulich
2018-04-11 12:46         ` Simon Gaiser
2018-04-11 13:45           ` Jan Beulich
2018-04-11 20:14             ` [PATCH 1/2] x86/microcode: Indicate "not found" in rc of microcode_resume_cpu() Simon Gaiser
2018-04-11 20:14               ` [PATCH 2/2] x86: correct ordering of operations during S3 resume Simon Gaiser
2018-04-11 20:21                 ` [PATCH v2 " Simon Gaiser
     [not found]                   ` <5ACE6EA10200005203786DDD@prv1-mh.provo.novell.com>
2018-04-12  7:12                     ` Jan Beulich
2018-04-12  6:56               ` [PATCH 1/2] x86/microcode: Indicate "not found" in rc of microcode_resume_cpu() Jan Beulich
2018-04-11 12:12     ` Resume from suspend to RAM broken when using early microcode updates Andrew Cooper
2018-04-11 14:49       ` Konrad Rzeszutek Wilk
2018-04-11 15:05         ` Andrew Cooper
2018-04-11 15:32           ` Jan Beulich
2018-04-11 12:04   ` Jan Beulich

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.