mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 13:21:45 +00:00
xen: Add suspend/resume support for PV on HVM guests.
Suspend/resume requires few different things on HVM: the suspend hypercall is different; we don't need to save/restore memory related settings; except the shared info page and the callback mechanism. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
parent
183d03cc4f
commit
016b6f5fe8
6 changed files with 90 additions and 11 deletions
|
@ -7,6 +7,7 @@ DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
|
|||
|
||||
void xen_pre_suspend(void);
|
||||
void xen_post_suspend(int suspend_cancelled);
|
||||
void xen_hvm_post_suspend(int suspend_cancelled);
|
||||
|
||||
void xen_mm_pin_all(void);
|
||||
void xen_mm_unpin_all(void);
|
||||
|
@ -14,4 +15,6 @@ void xen_mm_unpin_all(void);
|
|||
void xen_timer_resume(void);
|
||||
void xen_arch_resume(void);
|
||||
|
||||
int xen_setup_shutdown_event(void);
|
||||
|
||||
#endif /* INCLUDE_XEN_OPS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue