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:
committed by
Jeremy Fitzhardinge
parent
183d03cc4f
commit
016b6f5fe8
@@ -26,6 +26,12 @@ void xen_pre_suspend(void)
|
||||
BUG();
|
||||
}
|
||||
|
||||
void xen_hvm_post_suspend(int suspend_cancelled)
|
||||
{
|
||||
xen_hvm_init_shared_info();
|
||||
xen_callback_vector();
|
||||
}
|
||||
|
||||
void xen_post_suspend(int suspend_cancelled)
|
||||
{
|
||||
xen_build_mfn_list_list();
|
||||
|
Reference in New Issue
Block a user