search for: thaw_process

Displaying 2 results from an estimated 2 matches for "thaw_process".

Did you mean: tar_process
2007 Jan 17
6
Ehancement to domU suspend/resume
...this case, we need borrow some Linux PM stuff into xen suspend path, something like: Smp_suspend(); freeze_processes(); device_suspend(); device_power_down(); xenbus_suspend(); ... HYPERVISOR_suspend(virt_to_mfn(xen_start_info)); ... xenbus_resume(); device_power_up(); device_resume(); thaw_processes(); smp_resume(); It may be more difficult if we want to support wake-on-LAN when that NIC is assigned to domU, which is more tightly related to ACPI. So we will simply consider normal device suspend here. One interesting question is, why doesn''t current __xen_suspend freeze runni...
2013 Nov 08
4
[PATCH 3/4] xen/manage: Guard against user-space initiated poweroff and XenBus.
...109,7 +117,7 @@ static void do_suspend(void) int err; struct suspend_info si; - shutting_down = SHUTDOWN_SUSPEND; + atomic_set(&shutting_down, SHUTDOWN_SUSPEND); #ifdef CONFIG_PREEMPT /* If the kernel is preemptible, we need to freeze all the processes @@ -173,7 +181,7 @@ out_thaw: thaw_processes(); out: #endif - shutting_down = SHUTDOWN_INVALID; + atomic_set(&shutting_down, SHUTDOWN_INVALID); } #endif /* CONFIG_HIBERNATE_CALLBACKS */ @@ -184,7 +192,7 @@ struct shutdown_handler { static void do_poweroff(void) { - shutting_down = SHUTDOWN_POWEROFF; + atomic_set(&shutting_...