Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Vitaly Kuznetsov | 9963236 | 2017-03-14 18:35:49 +0100 | [diff] [blame] | 2 | #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 | |
| 10 | void xen_hvm_post_suspend(int suspend_cancelled) |
| 11 | { |
Ankur Arora | 0b64ffb | 2017-06-02 17:05:59 -0700 | [diff] [blame] | 12 | if (!suspend_cancelled) { |
Vitaly Kuznetsov | 9963236 | 2017-03-14 18:35:49 +0100 | [diff] [blame] | 13 | xen_hvm_init_shared_info(); |
Ankur Arora | 0b64ffb | 2017-06-02 17:05:59 -0700 | [diff] [blame] | 14 | xen_vcpu_restore(); |
| 15 | } |
Vitaly Kuznetsov | 9963236 | 2017-03-14 18:35:49 +0100 | [diff] [blame] | 16 | xen_callback_vector(); |
| 17 | xen_unplug_emulated_devices(); |
Vitaly Kuznetsov | 9963236 | 2017-03-14 18:35:49 +0100 | [diff] [blame] | 18 | } |