Skip to content

__restore_processor_state() fixes

Andy Lutomirski lkml 1 version Applied

Status from this message: I have applied them to tip:x86/urgent with small changes to the changelogs, and

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86/power/64: Use struct desc_ptr for the IDT in struct saved_contextarch/x86/include/asm/suspend_64.h arch/x86/power/cpu.c+2 -120 replies
2/3x86/power/32: Move SYSENTER MSR restoration to fix_processor_context()arch/x86/power/cpu.c+3 -60 replies
3/3x86/power: Make restore_processor_context() sanearch/x86/include/asm/suspend_32.h arch/x86/include/asm/suspend_64.h arch/x86/power/cpu.c+62 -411 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJarkko NikulaPavel MachekRafael J. Wysocki
SeriesA-b
1/3T-b
2/3T-b
3/3T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH urgent 0/3] __restore_processor_state() fixes

__restore_processor_state() was spaghetti code, made no sense, and had bugs. And I broke resume on 32-bit systems. This series cleans it up and fixes it (hopefully!).

Andy Lutomirski (3):
x86/power/64: Use struct desc_ptr for the IDT in struct saved_context x86/power/32: Move SYSENTER MSR restoration to fix_processor_context() x86/power: Make restore_processor_context() sane

 arch/x86/include/asm/suspend_32.h |  8 +++-
 arch/x86/include/asm/suspend_64.h | 19 ++++++--
 arch/x86/power/cpu.c              | 99 ++++++++++++++++++---------------------
 3 files changed, 67 insertions(+), 59 deletions(-)
Signature · 1 line
2.13.6