From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40791 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOZDt-0005J3-N7 for qemu-devel@nongnu.org; Tue, 15 Jun 2010 12:42:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOZDs-00021v-Lj for qemu-devel@nongnu.org; Tue, 15 Jun 2010 12:42:49 -0400 Received: from mail-iw0-f173.google.com ([209.85.214.173]:49147) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOZDs-00021m-Ir for qemu-devel@nongnu.org; Tue, 15 Jun 2010 12:42:48 -0400 Received: by iwn10 with SMTP id 10so5543695iwn.4 for ; Tue, 15 Jun 2010 09:42:47 -0700 (PDT) Message-ID: <4C17AD92.2010104@codemonkey.ws> Date: Tue, 15 Jun 2010 11:42:58 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [CFR 1/10] qmp: balloon command References: <1276619430-15871-1-git-send-email-aliguori@us.ibm.com> <1276619430-15871-2-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1276619430-15871-2-git-send-email-aliguori@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Luiz Capitulino , qemu-devel@nongnu.org, Stefan Hajnoczi , Markus Armbruster On 06/15/2010 11:30 AM, Anthony Liguori wrote: > balloon > ------- > > Request VM to change its memory allocation (in bytes). > We ought to clarify a few points: 1) What happens if there isn't a balloon device? 2) What happens upon reboot? 3) What is the valid range for value? 4) How does a user determine when the guest has actually responded to the balloon request? This is a case where I think we ought to use async events because the guest can adjust it's balloon allotment without an explicit request from the host. In fact, if we add a shrinker callback to the balloon driver (and we should) it will do exactly this. Regards, Anthony Liguori > Arguments: > > - "value": New memory allocation (json-int) > > Example: > > -> { "execute": "balloon", "arguments": { "value": 536870912 } } > <- { "return": {} } > > >