linux, suspend/resume logic
Instead of arbitrarily calling gnttab_suspend(), {gnttab,irq,time}_resume() from the resume path in drivers/xen/core/machine_reboot.c, wouldn't be more reasonable to do a more complete suspend/resume operation by calling sysdev_{suspend,resume} (and, I didn't check whether this is already done for all of them, setting up the necessary sys_device/ sysdev_class instances so everything gets called as needed)?
Thanks, Jan
Can we constrain the ordering then? I think it does matter (would have to double check exactly what the req'd constraints are though).
-- Keir
Quoted 14 lines · Jan Beulich
Instead of arbitrarily calling
gnttab_suspend(), {gnttab,irq,time}_resume() from the resume path indrivers/xen/core/machine_reboot.c, wouldn't be more reasonable to do a more complete suspend/resume operation by calling sysdev_{suspend,resume} (and, I didn't check whether this is already done for all of them, setting up the necessary sys_device/sysdev_classinstances so everything gets called as needed)?Thanks, Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
There ought to be ways, since I'm sure native suspend/resume is depending on some sort of ordering, too. Perhaps through using the right kind of initcall for registering the respective sysdev_class?
Jan
Quoted 1 line
Quoted 1 line
Quoted 1 line
Keir Fraser <[email protected]> 13.03.08 16:52 >>>
Can we constrain the ordering then? I think it does matter (would have to double check exactly what the req'd constraints are though).
-- Keir
Quoted 14 lines · Jan Beulich
Instead of arbitrarily calling
gnttab_suspend(), {gnttab,irq,time}_resume() from the resume path indrivers/xen/core/machine_reboot.c, wouldn't be more reasonable to do a more complete suspend/resume operation by calling sysdev_{suspend,resume} (and, I didn't check whether this is already done for all of them, setting up the necessary sys_device/sysdev_classinstances so everything gets called as needed)?Thanks, Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel