Received: from eggs.gnu.org ([2001:4830:134:3::10]:34432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhAi3-0001eF-59 for qemu-devel@nongnu.org; Tue, 06 Sep 2016 03:22:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhAhy-00060d-5x for qemu-devel@nongnu.org; Tue, 06 Sep 2016 03:22:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhAhy-00060X-0U for qemu-devel@nongnu.org; Tue, 06 Sep 2016 03:22:14 -0400 References: <1472117833-10236-1-git-send-email-dgilbert@redhat.com> <5d53e70e-09ca-6e57-92a8-e79f520c3834@redhat.com> <20160905185038.GI22496@work-vm> From: Paolo Bonzini Message-ID: <0eb0b7ef-7bc7-70f0-7d6d-4d9ff565775d@redhat.com> Date: Tue, 6 Sep 2016 09:22:08 +0200 MIME-Version: 1.0 In-Reply-To: <20160905185038.GI22496@work-vm> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/2] qom-get [for 2.8] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" Cc: qemu-devel@nongnu.org, lcapitulino@redhat.com, afaerber@suse.de, armbru@redhat.com, arei.gonglei@huawei.com, kwolf@redhat.com On 05/09/2016 20:50, Dr. David Alan Gilbert wrote: > * Paolo Bonzini (pbonzini@redhat.com) wrote: >> >> >> On 25/08/2016 11:37, Dr. David Alan Gilbert (git) wrote: >>> >>> (qemu) qom-get /backend/console[0]/device/vga.rom[0] size >>> 65536 (0x10000) >>> >>> (qemu) qom-get /machine smm >>> "auto" >>> >>> (qemu) qom-get /machine rtc-time >>> struct type not implemented >> >> Looks nice. Perhaps instead of using the "human" interface we could >> just print it as JSON and avoid the error. > > I can't see a sane place to glue a fallback to the JSON code in; > or do you mean use the JSON output even in the simple case? Yeah. I think it makes sense for a low level command such as qom-get. All that you lose is the automatic hex conversion in the first example. Paolo