suspend_hvm.c 359 B

12345678910111213141516171819
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/types.h>
  3. #include <xen/xen.h>
  4. #include <xen/features.h>
  5. #include <xen/interface/features.h>
  6. #include "xen-ops.h"
  7. void xen_hvm_post_suspend(int suspend_cancelled)
  8. {
  9. if (!suspend_cancelled) {
  10. xen_hvm_init_shared_info();
  11. xen_vcpu_restore();
  12. }
  13. xen_callback_vector();
  14. xen_unplug_emulated_devices();
  15. }