From 5d1646d90e1f2cceb9f0828f4b28318cd0ec7744 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 12:05:51 +0200 Subject: Adding upstream version 5.10.209. Signed-off-by: Daniel Baumann --- arch/x86/xen/suspend_hvm.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 arch/x86/xen/suspend_hvm.c (limited to 'arch/x86/xen/suspend_hvm.c') diff --git a/arch/x86/xen/suspend_hvm.c b/arch/x86/xen/suspend_hvm.c new file mode 100644 index 000000000..9d548b0c7 --- /dev/null +++ b/arch/x86/xen/suspend_hvm.c @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0 +#include + +#include +#include +#include +#include + +#include "xen-ops.h" + +void xen_hvm_post_suspend(int suspend_cancelled) +{ + if (!suspend_cancelled) { + xen_hvm_init_shared_info(); + xen_vcpu_restore(); + } + xen_setup_callback_vector(); + xen_unplug_emulated_devices(); +} -- cgit v1.2.3