]> git.baikalelectronics.ru Git - kernel.git/commit
x86/hyperv: Suspend/resume the hypercall page for hibernation
authorDexuan Cui <decui@microsoft.com>
Mon, 6 Jan 2020 22:42:39 +0000 (14:42 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 1 Feb 2020 08:41:16 +0000 (09:41 +0100)
commite7651619c4097ae5974dbc05a7196b062e5c09f9
tree2d57c64414c177b58c45541cf06b6777e79c9713
parent5b3aabe67e2a38c6a3ef56d486dc67447a52ba67
x86/hyperv: Suspend/resume the hypercall page for hibernation

For hibernation the hypercall page must be disabled before the hibernation
image is created so that subsequent hypercall operations fail safely. On
resume the hypercall page has to be restored and reenabled to ensure proper
operation of the resumed kernel.

Implement the necessary suspend/resume callbacks.

[ tglx: Decrypted changelog ]

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1578350559-130275-1-git-send-email-decui@microsoft.com
arch/x86/hyperv/hv_init.c