diff options
author | Zhimin Gu <[email protected]> | 2018-09-21 14:28:11 +0800 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2018-10-03 11:56:34 +0200 |
commit | 32aa276437f6128df63111af13e57fe8f0272af3 (patch) | |
tree | 58a65d9e86baba9db8ba38c66eea8bd0a7d8e3fd /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0b0a6b1f76835cbaf746e7c72edd374ec0fe818b (diff) |
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 <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Chen Yu <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions