From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQS3h-0000nv-50 for qemu-devel@nongnu.org; Tue, 24 Feb 2015 21:50:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQS3d-0003Gv-Mz for qemu-devel@nongnu.org; Tue, 24 Feb 2015 21:50:44 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:29856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQS3c-0003Fq-OO for qemu-devel@nongnu.org; Tue, 24 Feb 2015 21:50:41 -0500 Message-ID: <54ED378D.2020602@huawei.com> Date: Wed, 25 Feb 2015 10:46:37 +0800 From: zhanghailiang MIME-Version: 1.0 References: <1424142892-7275-1-git-send-email-mdroth@linux.vnet.ibm.com> <1424142892-7275-6-git-send-email-mdroth@linux.vnet.ibm.com> <54E35D94.2020209@redhat.com> <20150217181033.13315.15114@loki> In-Reply-To: <20150217181033.13315.15114@loki> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 05/10] qga: introduce three guest memory block commmands with stubs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth , Eric Blake , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, hangaohuai@huawei.com, peter.huangpeng@huawei.com On 2015/2/18 2:10, Michael Roth wrote: > Quoting Eric Blake (2015-02-17 09:26:12) >> On 02/16/2015 08:14 PM, Michael Roth wrote: >>> From: zhanghailiang >>> >>> Introduce three new guest commands: >>> guest-get-memory-blocks, guest-set-memory-blocks, guest-get-memory-block-size. >> >> Sorry for the late review, but I think guest-get-memory-block-size is >> the wrong command to add. >> >> >>> +## >>> +# @guest-get-memory-block-size: >>> +# >>> +# Get the the size (in bytes) of a memory block in guest. >>> +# It is the unit of memory block online/offline operation (also called Logical >>> +# Memory Hotplug). >>> +# >>> +# Returns: memory block size in bytes. >>> +# >>> +# Since 2.3 >>> +## >>> +{ 'command': 'guest-get-memory-block-size', >>> + 'returns': 'int' } >> >> Any QAPI command that returns a bare int instead of a dictionary is >> non-extensible, and therefore of suspect design. I think it would be >> better to have: >> >> { 'command': 'guest-get-memory-block-info', >> 'returns': { 'size': 'int' } } >> >> to allow for future extension. > > It seems like a reasonable suggestion to me. I can change it in my > tree if there are no objections. zhanghailiang? > OK, you are free to do that, please. Thanks ;) >> >> -- >> Eric Blake eblake redhat com +1-919-301-3266 >> Libvirt virtualization library http://libvirt.org > > >