From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcr69-00075O-93 for qemu-devel@nongnu.org; Thu, 25 Aug 2016 05:37:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcr66-00053f-4X for qemu-devel@nongnu.org; Thu, 25 Aug 2016 05:37:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcr65-00053Z-Vg for qemu-devel@nongnu.org; Thu, 25 Aug 2016 05:37:18 -0400 From: "Dr. David Alan Gilbert (git)" Date: Thu, 25 Aug 2016 10:37:11 +0100 Message-Id: <1472117833-10236-1-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/2] qom-get [for 2.8] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, lcapitulino@redhat.com, afaerber@suse.de, armbru@redhat.com Cc: pbonzini@redhat.com, arei.gonglei@huawei.com, kwolf@redhat.com From: "Dr. David Alan Gilbert" Hi, I'd noticed a while ago the lack of qom-get and was about to implement it, when I noticed Andreas had implemented it back in March 2015 as part of the larger patch series 'qom: HMP commands to supersede info qtree' ( 1426178624-32638-1-git-send-email-afaerber@suse.de ) which was a v2 of a series from 2014 of his. Here is a forward ported version of just the pair of patches that are needed for qom-get. Usage examples: (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 Dave Dr. David Alan Gilbert (2): qapi: Stub out StringOutputVisitor struct support qom: Implement qom-get HMP command hmp-commands.hx | 13 +++++++++++++ hmp.c | 23 +++++++++++++++++++++++ hmp.h | 1 + qapi/string-output-visitor.c | 13 +++++++++++++ 4 files changed, 50 insertions(+) --=20 2.7.4