diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-01-13 15:41:18 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-01-16 09:15:24 +0100 |
commit | b780e9c3f2a29180397ddcd1f3c5e5a5c49353e7 (patch) | |
tree | f61facd16e61a186046529eb8df0b46b22335949 | |
parent | e22da431a79959b66dc0ed562eca1095e2bce196 (diff) | |
download | qemu-b780e9c3f2a29180397ddcd1f3c5e5a5c49353e7.zip qemu-b780e9c3f2a29180397ddcd1f3c5e5a5c49353e7.tar.gz qemu-b780e9c3f2a29180397ddcd1f3c5e5a5c49353e7.tar.bz2 |
qapi: improve device_add schema
'device_add' is still incomplete for now, but we can fix a few
arguments:
- 'bus' is a common argument, regardless of the device
- 'id' is an optional argument
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170113144135.5150-5-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | qapi-schema.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index 0a3057e..863abc4 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2292,7 +2292,7 @@ # # @bus: #optional the device's parent bus (device tree path) # -# @id: the device's ID, must be unique +# @id: #optional the device's ID, must be unique # # Additional arguments depend on the type. # @@ -2322,7 +2322,7 @@ # Since: 0.13 ## { 'command': 'device_add', - 'data': {'driver': 'str', 'id': 'str'}, + 'data': {'driver': 'str', '*bus': 'str', '*id': 'str'}, 'gen': false } # so we can get the additional arguments ## |