]> 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)
commit98e292da8cc558d3b2627e3ffb50560cadf467e9
tree2d57c64414c177b58c45541cf06b6777e79c9713
parent1022e1786a893a6dfea2952d0010f5673682bcbf
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