x86/xen: split suspend.c for PV and PVHVM guests
Slit the code in suspend.c into suspend_pv.c and suspend_hvm.c. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
This commit is contained in:

committed by
Juergen Gross

szülő
7e0563dea9
commit
9963236d7c
@@ -155,5 +155,18 @@ void xen_pin_vcpu(int cpu);
|
||||
|
||||
void xen_reboot(int reason);
|
||||
void xen_emergency_restart(void);
|
||||
#ifdef CONFIG_XEN_PV
|
||||
void xen_pv_pre_suspend(void);
|
||||
void xen_pv_post_suspend(int suspend_cancelled);
|
||||
#else
|
||||
static inline void xen_pv_pre_suspend(void) {}
|
||||
static inline void xen_pv_post_suspend(int suspend_cancelled) {}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XEN_PVHVM
|
||||
void xen_hvm_post_suspend(int suspend_cancelled);
|
||||
#else
|
||||
static inline void xen_hvm_post_suspend(int suspend_cancelled) {}
|
||||
#endif
|
||||
|
||||
#endif /* XEN_OPS_H */
|
||||
|
Reference in New Issue
Block a user