From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtzp3-0000KU-BX for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:41:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wtzov-00023D-Pd for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:41:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtzov-00022z-Hr for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:41:05 -0400 Message-ID: <5395B968.6020300@redhat.com> Date: Mon, 09 Jun 2014 15:40:56 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <66e17e32ccb10ca0ae262103fcf170b84511c3f8.1402299637.git.hutao@cn.fujitsu.com> <20140609143622.44fa7006@thinkpad> <5395AF7F.7000403@redhat.com> <20140609153257.49d4460f@thinkpad> In-Reply-To: <20140609153257.49d4460f@thinkpad> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 28/29] qmp: add query-memdev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Hu Tao , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Eduardo Habkost , Yasunori Goto Il 09/06/2014 15:32, Igor Mammedov ha scritto: >>>>> > >> > +{ 'command': 'query-memdev', 'returns': ['Memdev'] } >>> > > Could we make it union, that returns MemdevRam + MemdevFile >>> > > >>> > > MemdevFile will have additional file-only specific properties. >>> > > >> > >> > Which are the file-only properties (in the current definition of Memdev)? > in current none, but for file backend exposing 'path' property might be useful > alternatively instead of union we could add 'type' and optional 'path' fields > to Memdev > Yes, I agree. I think the latest additions to QAPI actually let you do that with a QAPI union while keeping backwards-compatible output for other fields. Ok to do this later? It should be acceptable for soft freeze. Paolo