linux-stable/arch/x86/power
Zhimin Gu 32aa276437 x86-32, hibernate: Switch to original page table after resumed
After all the pages are restored to previous address, the page
table switches back to current swapper_pg_dir. However the
swapper_pg_dir currently in used might not be consistent with
previous page table, which might cause issue after resume.

Fix this issue by switching to original page table after resume,
and the address of the original page table is saved in the hibernation
image header.

Move the manipulation of restore_cr3 into common code blocks.

Signed-off-by: Zhimin Gu <kookoo.gu@intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2018-10-03 11:56:34 +02:00
..
cpu.c Merge branch 'WIP.x86-pti.entry-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-12-18 08:59:15 -08:00
hibernate.c x86-32, hibernate: Switch to original page table after resumed 2018-10-03 11:56:34 +02:00
hibernate_32.c x86-32, hibernate: Use temp_pgt as the temporary page table 2018-10-03 11:56:34 +02:00
hibernate_64.c x86, hibernate: Rename temp_level4_pgt to temp_pgt 2018-10-03 11:56:34 +02:00
hibernate_asm_32.S x86-32, hibernate: Switch to original page table after resumed 2018-10-03 11:56:34 +02:00
hibernate_asm_64.S x86, hibernate: Rename temp_level4_pgt to temp_pgt 2018-10-03 11:56:34 +02:00
Makefile x86, hibernate: Extract the common code of 64/32 bit system 2018-10-03 11:56:33 +02:00