Received: from eggs.gnu.org ([2001:4830:134:3::10]:53122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFsBx-0003Vl-W3 for qemu-devel@nongnu.org; Wed, 22 Jun 2016 20:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFsBq-0004Me-Rw for qemu-devel@nongnu.org; Wed, 22 Jun 2016 20:08:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFsBq-0004MH-M3 for qemu-devel@nongnu.org; Wed, 22 Jun 2016 20:08:14 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C89F3F724 for ; Thu, 23 Jun 2016 00:08:14 +0000 (UTC) From: marcandre.lureau@redhat.com Date: Thu, 23 Jun 2016 02:07:59 +0200 Message-Id: <20160623000809.4522-3-marcandre.lureau@redhat.com> In-Reply-To: <20160623000809.4522-1-marcandre.lureau@redhat.com> References: <20160623000809.4522-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 02/12] qapi-schema: add 'device_add' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-Andr=C3=A9 Lureau Even though device_add is not fully qapi'fied, we may add it to the json schema with 'gen': false, so registration and documentation can be generated. Signed-off-by: Marc-Andr=C3=A9 Lureau --- qapi-schema.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 73f0b6f..929f84e 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2188,6 +2188,32 @@ ## { 'command': 'xen-set-global-dirty-log', 'data': { 'enable': 'bool' } } =20 +## +# @device_add: +# +# @driver: the name of the new device's driver +# @bus: #optional the device's parent bus (device tree path) +# @id: the device's ID, must be unique +# @props: #optional a dictionary of properties to be passed to the backe= nd +# +# Add a device. +# +# Notes: +# 1. For detailed information about this command, please refer to the +# 'docs/qdev-device-use.txt' file. +# +# 2. It's possible to list device properties by running QEMU with the +# "-device DEVICE,\?" command-line argument, where DEVICE is the devi= ce's name +# +# Example: +# +# -> { "execute": "device_add", "arguments": { "driver": "e1000", "id": = "net1" } } +# <- { "return": {} } +# +## +{ 'command': 'device_add', + 'data': {'driver': 'str', 'id': 'str'}, 'gen': false } + ## # @device_del: # --=20 2.9.0