Skip to contentSkip to conversation

linux, suspend/resume logic

DISCUSSION Jan Beulich 2 participants 3 messages Mar 13, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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 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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

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 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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel