From patchwork Sat Mar 3 00:25:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 880961 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.ru Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ztRm40f11z9s8p for ; Sat, 3 Mar 2018 11:25:54 +1100 (AEDT) Received: from localhost ([::1]:38033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eruzn-0008Cz-0J for incoming@patchwork.ozlabs.org; Fri, 02 Mar 2018 19:25:51 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eruzE-0008Bb-Pt for qemu-devel@nongnu.org; Fri, 02 Mar 2018 19:25:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eruzB-0005D9-1V for qemu-devel@nongnu.org; Fri, 02 Mar 2018 19:25:16 -0500 Received: from ozlabs.ru ([107.173.13.209]:43544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eruzA-0005BI-Pc for qemu-devel@nongnu.org; Fri, 02 Mar 2018 19:25:12 -0500 Received: from vpl1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id E3D193A60017; Fri, 2 Mar 2018 19:25:24 -0500 (EST) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Sat, 3 Mar 2018 11:25:02 +1100 Message-Id: <20180303002504.25142-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 107.173.13.209 Subject: [Qemu-devel] [PATCH qemu v4 0/2] qmp: Add qom-list-properties to list QOM object properties X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy , Paolo Bonzini , Markus Armbruster , Andrea Bolognani Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This adds a new QMP command to list any class/object properties, not just devices. I do not know how/if we need to address the concern about abstract/nonabstract classes though. Changes: v4: * cleanup in 1/2 Please comment. Thanks. Alexey Kardashevskiy (2): qmp: Merge ObjectPropertyInfo and DevicePropertyInfo qmp: Add qom-list-properties to list QOM object properties qapi-schema.json | 38 ++++++++++++++++--------------- include/qom/object.h | 16 +++++++++++++ qdev-monitor.c | 6 ++--- qmp.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++------ qom/object.c | 7 ++++++ 5 files changed, 102 insertions(+), 28 deletions(-)