blob: e666b614cf6d2cb80ac956b0913baae65e50d30b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Vitaly Kuznetsov99632362017-03-14 18:35:49 +01002#include <linux/types.h>
3
4#include <xen/xen.h>
5#include <xen/features.h>
6#include <xen/interface/features.h>
7
8#include "xen-ops.h"
9
10void xen_hvm_post_suspend(int suspend_cancelled)
11{
Ankur Arora0b64ffb2017-06-02 17:05:59 -070012 if (!suspend_cancelled) {
Vitaly Kuznetsov99632362017-03-14 18:35:49 +010013 xen_hvm_init_shared_info();
Ankur Arora0b64ffb2017-06-02 17:05:59 -070014 xen_vcpu_restore();
15 }
Vitaly Kuznetsov99632362017-03-14 18:35:49 +010016 xen_callback_vector();
17 xen_unplug_emulated_devices();
Vitaly Kuznetsov99632362017-03-14 18:35:49 +010018}