blob: 484999416d8bd14d0863f1861c419436943fb3f0 [file] [log] [blame]
Vitaly Kuznetsov99632362017-03-14 18:35:49 +01001#include <linux/types.h>
2
3#include <xen/xen.h>
4#include <xen/features.h>
5#include <xen/interface/features.h>
6
7#include "xen-ops.h"
8
9void xen_hvm_post_suspend(int suspend_cancelled)
10{
Ankur Arora0b64ffb2017-06-02 17:05:59 -070011 if (!suspend_cancelled) {
Vitaly Kuznetsov99632362017-03-14 18:35:49 +010012 xen_hvm_init_shared_info();
Ankur Arora0b64ffb2017-06-02 17:05:59 -070013 xen_vcpu_restore();
14 }
Vitaly Kuznetsov99632362017-03-14 18:35:49 +010015 xen_callback_vector();
16 xen_unplug_emulated_devices();
Vitaly Kuznetsov99632362017-03-14 18:35:49 +010017}