From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoSng-0000w4-2p for qemu-devel@nongnu.org; Tue, 10 Jul 2012 01:15:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoSne-0005A9-4s for qemu-devel@nongnu.org; Tue, 10 Jul 2012 01:15:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoSnd-0005A5-PU for qemu-devel@nongnu.org; Tue, 10 Jul 2012 01:15:50 -0400 Message-ID: <4FFBBA7C.6030609@redhat.com> Date: Tue, 10 Jul 2012 08:15:40 +0300 From: Orit Wasserman MIME-Version: 1.0 References: <1341858170-1903-1-git-send-email-owasserm@redhat.com> <1341858170-1903-9-git-send-email-owasserm@redhat.com> <4FFB4630.8010209@redhat.com> In-Reply-To: <4FFB4630.8010209@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v16 8/9] Add set_cachesize command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, quintela@redhat.com, stefanha@gmail.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, blauwirbel@gmail.com, Petter Svard , Benoit Hudzia , avi@redhat.com, Aidan Shribman , pbonzini@redhat.com, chegu_vinod@hp.com On 07/09/2012 11:59 PM, Eric Blake wrote: > On 07/09/2012 12:22 PM, Orit Wasserman wrote: >> Change XBZRLE cache size in bytes (the size should be a power of 2). >> If XBZRLE cache size is too small there will be many cache miss. >> >> Signed-off-by: Benoit Hudzia >> Signed-off-by: Petter Svard >> Signed-off-by: Aidan Shribman >> Signed-off-by: Orit Wasserman > >> +++ b/qapi-schema.json >> @@ -1390,6 +1390,22 @@ >> { 'command': 'migrate_set_speed', 'data': {'value': 'int'} } > > We are copying after bad practice, but... > >> >> ## >> +# @migrate_set_cachesize > > ...new QMP commands should prefer '-' over '_'. While the HMP version > is fine with migrate_set_cachesize, the QMP command should be > migrate-set-cachesize (or even 'migrate-set-cache-size'). > I will change it Thanks, Orit > >> + >> +Set cache size to be used by XBZRLE migration, the cache size will be round down > > s/round/rounded/ >