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)
commit05bd330a7fd8875c423fc07d8ddcad73c10e556e
tree2d57c64414c177b58c45541cf06b6777e79c9713
parent6f1a4891a5928a5969c87fa5a584844c983ec823
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