Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Michael Roth
On 12/14/2011 05:56 PM, Luiz Capitulino wrote: On Wed, 14 Dec 2011 15:14:40 -0600 Michael Roth wrote: On 12/14/2011 02:56 PM, Michael Roth wrote: On 12/14/2011 02:06 PM, Luiz Capitulino wrote: On Wed, 14 Dec 2011 13:43:23 -0600 Michael Roth wrote: On 12/14/2011 12:17 PM, Luiz Capitulino w

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Luiz Capitulino
On Wed, 14 Dec 2011 15:14:40 -0600 Michael Roth wrote: > On 12/14/2011 02:56 PM, Michael Roth wrote: > > On 12/14/2011 02:06 PM, Luiz Capitulino wrote: > >> On Wed, 14 Dec 2011 13:43:23 -0600 > >> Michael Roth wrote: > >> > >>> On 12/14/2011 12:17 PM, Luiz Capitulino wrote: > On Wed, 14 Dec

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Luiz Capitulino
On Wed, 14 Dec 2011 12:06:13 -0600 Michael Roth wrote: > On 12/14/2011 10:38 AM, Luiz Capitulino wrote: > > On Wed, 14 Dec 2011 09:54:29 -0600 > > Michael Roth wrote: > > > >> On 12/14/2011 07:00 AM, Luiz Capitulino wrote: > >>> On Tue, 13 Dec 2011 14:03:08 -0600 > >>> Michael Roth wrote: > >>

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Michael Roth
On 12/14/2011 02:56 PM, Michael Roth wrote: On 12/14/2011 02:06 PM, Luiz Capitulino wrote: On Wed, 14 Dec 2011 13:43:23 -0600 Michael Roth wrote: On 12/14/2011 12:17 PM, Luiz Capitulino wrote: On Wed, 14 Dec 2011 14:38:55 -0200 Luiz Capitulino wrote: I'm also wondering if we could use g_chi

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Michael Roth
On 12/14/2011 02:06 PM, Luiz Capitulino wrote: On Wed, 14 Dec 2011 13:43:23 -0600 Michael Roth wrote: On 12/14/2011 12:17 PM, Luiz Capitulino wrote: On Wed, 14 Dec 2011 14:38:55 -0200 Luiz Capitulino wrote: I'm also wondering if we could use g_child_watch_add(), but it's not clear to me i

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Michael Roth
On 12/14/2011 10:38 AM, Luiz Capitulino wrote: On Wed, 14 Dec 2011 09:54:29 -0600 Michael Roth wrote: On 12/14/2011 07:00 AM, Luiz Capitulino wrote: On Tue, 13 Dec 2011 14:03:08 -0600 Michael Roth wrote: On 12/13/2011 12:28 PM, Luiz Capitulino wrote: It supports two modes: "hibernate" (w

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Luiz Capitulino
On Wed, 14 Dec 2011 13:43:23 -0600 Michael Roth wrote: > On 12/14/2011 12:17 PM, Luiz Capitulino wrote: > > On Wed, 14 Dec 2011 14:38:55 -0200 > > Luiz Capitulino wrote: > > > I'm also wondering if we could use g_child_watch_add(), but it's not > clear > to me if it works with pr

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Michael Roth
On 12/14/2011 12:17 PM, Luiz Capitulino wrote: On Wed, 14 Dec 2011 14:38:55 -0200 Luiz Capitulino wrote: I'm also wondering if we could use g_child_watch_add(), but it's not clear to me if it works with processes not created with g_spawn_*() functions. GPid's map to something other than PIDs

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Luiz Capitulino
On Wed, 14 Dec 2011 14:38:55 -0200 Luiz Capitulino wrote: > > > I'm also wondering if we could use g_child_watch_add(), but it's not clear > > > to me if it works with processes not created with g_spawn_*() functions. > > > > GPid's map to something other than PIDs on Windows, so I think we'd ha

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Luiz Capitulino
On Wed, 14 Dec 2011 09:54:29 -0600 Michael Roth wrote: > On 12/14/2011 07:00 AM, Luiz Capitulino wrote: > > On Tue, 13 Dec 2011 14:03:08 -0600 > > Michael Roth wrote: > > > >> On 12/13/2011 12:28 PM, Luiz Capitulino wrote: > >>> It supports two modes: "hibernate" (which corresponds to S4) and >

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Michael Roth
On 12/14/2011 07:00 AM, Luiz Capitulino wrote: On Tue, 13 Dec 2011 14:03:08 -0600 Michael Roth wrote: On 12/13/2011 12:28 PM, Luiz Capitulino wrote: It supports two modes: "hibernate" (which corresponds to S4) and "sleep" (which corresponds to S3). It will try to execute the pm-hibernate or p

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Michael Roth
On 12/14/2011 07:07 AM, Luiz Capitulino wrote: On Tue, 13 Dec 2011 14:27:56 -0600 Michael Roth wrote: On 12/13/2011 12:28 PM, Luiz Capitulino wrote: It supports two modes: "hibernate" (which corresponds to S4) and "sleep" (which corresponds to S3). It will try to execute the pm-hibernate or p

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Luiz Capitulino
On Tue, 13 Dec 2011 14:27:56 -0600 Michael Roth wrote: > On 12/13/2011 12:28 PM, Luiz Capitulino wrote: > > It supports two modes: "hibernate" (which corresponds to S4) and > > "sleep" (which corresponds to S3). It will try to execute the > > pm-hibernate or pm-suspend scripts, if the scripts don

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Luiz Capitulino
On Tue, 13 Dec 2011 23:13:23 + "Daniel P. Berrange" wrote: > On Tue, Dec 13, 2011 at 04:28:50PM -0200, Luiz Capitulino wrote: > > It supports two modes: "hibernate" (which corresponds to S4) and > > "sleep" (which corresponds to S3). It will try to execute the > > pm-hibernate or pm-suspend s

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-14 Thread Luiz Capitulino
On Tue, 13 Dec 2011 14:03:08 -0600 Michael Roth wrote: > On 12/13/2011 12:28 PM, Luiz Capitulino wrote: > > It supports two modes: "hibernate" (which corresponds to S4) and > > "sleep" (which corresponds to S3). It will try to execute the > > pm-hibernate or pm-suspend scripts, if the scripts don

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-13 Thread Daniel P. Berrange
On Tue, Dec 13, 2011 at 04:28:50PM -0200, Luiz Capitulino wrote: > It supports two modes: "hibernate" (which corresponds to S4) and > "sleep" (which corresponds to S3). It will try to execute the > pm-hibernate or pm-suspend scripts, if the scripts don't exist > the command will try to suspend by d

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-13 Thread Michael Roth
On 12/13/2011 12:28 PM, Luiz Capitulino wrote: It supports two modes: "hibernate" (which corresponds to S4) and "sleep" (which corresponds to S3). It will try to execute the pm-hibernate or pm-suspend scripts, if the scripts don't exist the command will try to suspend by directly writing to the "

Re: [Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-13 Thread Michael Roth
On 12/13/2011 12:28 PM, Luiz Capitulino wrote: It supports two modes: "hibernate" (which corresponds to S4) and "sleep" (which corresponds to S3). It will try to execute the pm-hibernate or pm-suspend scripts, if the scripts don't exist the command will try to suspend by directly writing to the "

[Qemu-devel] [PATCH v2] qemu-ga: Add the guest-suspend command

2011-12-13 Thread Luiz Capitulino
It supports two modes: "hibernate" (which corresponds to S4) and "sleep" (which corresponds to S3). It will try to execute the pm-hibernate or pm-suspend scripts, if the scripts don't exist the command will try to suspend by directly writing to the "/sys/power/state" file. An interesting implement