Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-21 Thread Amit Shah
On (Mon) 21 May 2012 [12:29:52], Daniel P. Berrange wrote: > On Mon, May 21, 2012 at 04:44:38PM +0530, Amit Shah wrote: > > On (Thu) 17 May 2012 [08:49:44], Daniel P. Berrange wrote: > > > On Wed, May 16, 2012 at 01:58:34PM -0500, Anthony Liguori wrote: > > > > On 05/16/2012 01:42 PM, Luiz Capituli

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-21 Thread Daniel P. Berrange
On Mon, May 21, 2012 at 04:44:38PM +0530, Amit Shah wrote: > On (Thu) 17 May 2012 [08:49:44], Daniel P. Berrange wrote: > > On Wed, May 16, 2012 at 01:58:34PM -0500, Anthony Liguori wrote: > > > On 05/16/2012 01:42 PM, Luiz Capitulino wrote: > > > >On Wed, 16 May 2012 11:10:47 +0100 > > > >"Daniel

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-21 Thread Amit Shah
On (Thu) 17 May 2012 [08:49:44], Daniel P. Berrange wrote: > On Wed, May 16, 2012 at 01:58:34PM -0500, Anthony Liguori wrote: > > On 05/16/2012 01:42 PM, Luiz Capitulino wrote: > > >On Wed, 16 May 2012 11:10:47 +0100 > > >"Daniel P. Berrange" wrote: > > > > > >>From: "Daniel P. Berrange" > > >> >

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-18 Thread Luiz Capitulino
On Thu, 17 May 2012 16:20:42 -0500 Anthony Liguori wrote: > >> Hmm, that's a good point, but my concern was that if we only emit > >> the event when the target is reached, what happens if the guest > >> gets very close to the target but never actually reaches it for > >> some reason. > > > > Havi

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-17 Thread Anthony Liguori
On 05/17/2012 07:56 AM, Luiz Capitulino wrote: On Thu, 17 May 2012 08:49:44 +0100 "Daniel P. Berrange" wrote: On Wed, May 16, 2012 at 01:58:34PM -0500, Anthony Liguori wrote: On 05/16/2012 01:42 PM, Luiz Capitulino wrote: On Wed, 16 May 2012 11:10:47 +0100 "Daniel P. Berrange" wrote: Fro

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-17 Thread Luiz Capitulino
On Thu, 17 May 2012 08:49:44 +0100 "Daniel P. Berrange" wrote: > On Wed, May 16, 2012 at 01:58:34PM -0500, Anthony Liguori wrote: > > On 05/16/2012 01:42 PM, Luiz Capitulino wrote: > > >On Wed, 16 May 2012 11:10:47 +0100 > > >"Daniel P. Berrange" wrote: > > > > > >>From: "Daniel P. Berrange" > >

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-17 Thread Daniel P. Berrange
On Wed, May 16, 2012 at 01:58:34PM -0500, Anthony Liguori wrote: > On 05/16/2012 01:42 PM, Luiz Capitulino wrote: > >On Wed, 16 May 2012 11:10:47 +0100 > >"Daniel P. Berrange" wrote: > > > >>From: "Daniel P. Berrange" > >> > >>After setting a balloon target value, applications have to > >>continua

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-16 Thread Luiz Capitulino
On Wed, 16 May 2012 13:58:34 -0500 Anthony Liguori wrote: > On 05/16/2012 01:42 PM, Luiz Capitulino wrote: > > On Wed, 16 May 2012 11:10:47 +0100 > > "Daniel P. Berrange" wrote: > > > >> From: "Daniel P. Berrange" > >> > >> After setting a balloon target value, applications have to > >> continua

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-16 Thread Anthony Liguori
On 05/16/2012 01:42 PM, Luiz Capitulino wrote: On Wed, 16 May 2012 11:10:47 +0100 "Daniel P. Berrange" wrote: From: "Daniel P. Berrange" After setting a balloon target value, applications have to continually poll 'query-balloon' to determine whether the guest has reacted to this request. The

Re: [Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-16 Thread Luiz Capitulino
On Wed, 16 May 2012 11:10:47 +0100 "Daniel P. Berrange" wrote: > From: "Daniel P. Berrange" > > After setting a balloon target value, applications have to > continually poll 'query-balloon' to determine whether the > guest has reacted to this request. The virtio-balloon backend > knows exactly

[Qemu-devel] [PATCH] Add event notification for guest balloon changes

2012-05-16 Thread Daniel P. Berrange
From: "Daniel P. Berrange" After setting a balloon target value, applications have to continually poll 'query-balloon' to determine whether the guest has reacted to this request. The virtio-balloon backend knows exactly when the guest has reacted though, and thus it is possible to emit a JSON eve