qmp-commands: move 'query-pci' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
f504e3dc21
commit
3fc3aa6de9
2 changed files with 138 additions and 209 deletions
139
qapi-schema.json
139
qapi-schema.json
|
|
@ -1835,6 +1835,8 @@
|
|||
# @type: 'io' if the region is a PIO region
|
||||
# 'memory' if the region is a MMIO region
|
||||
#
|
||||
# @size: memory size
|
||||
#
|
||||
# @prefetch: #optional if @type is 'memory', true if the memory is prefetchable
|
||||
#
|
||||
# @mem_type_64: #optional if @type is 'memory', true if the BAR is 64-bit
|
||||
|
|
@ -1968,9 +1970,144 @@
|
|||
#
|
||||
# Return information about the PCI bus topology of the guest.
|
||||
#
|
||||
# Returns: a list of @PciInfo for each PCI bus
|
||||
# Returns: a list of @PciInfo for each PCI bus. Each bus is
|
||||
# represented by a json-object, which has a key with a json-array of
|
||||
# all PCI devices attached to it. Each device is represented by a
|
||||
# json-object.
|
||||
#
|
||||
# Since: 0.14.0
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# -> { "execute": "query-pci" }
|
||||
# <- { "return": [
|
||||
# {
|
||||
# "bus": 0,
|
||||
# "devices": [
|
||||
# {
|
||||
# "bus": 0,
|
||||
# "qdev_id": "",
|
||||
# "slot": 0,
|
||||
# "class_info": {
|
||||
# "class": 1536,
|
||||
# "desc": "Host bridge"
|
||||
# },
|
||||
# "id": {
|
||||
# "device": 32902,
|
||||
# "vendor": 4663
|
||||
# },
|
||||
# "function": 0,
|
||||
# "regions": [
|
||||
# ]
|
||||
# },
|
||||
# {
|
||||
# "bus": 0,
|
||||
# "qdev_id": "",
|
||||
# "slot": 1,
|
||||
# "class_info": {
|
||||
# "class": 1537,
|
||||
# "desc": "ISA bridge"
|
||||
# },
|
||||
# "id": {
|
||||
# "device": 32902,
|
||||
# "vendor": 28672
|
||||
# },
|
||||
# "function": 0,
|
||||
# "regions": [
|
||||
# ]
|
||||
# },
|
||||
# {
|
||||
# "bus": 0,
|
||||
# "qdev_id": "",
|
||||
# "slot": 1,
|
||||
# "class_info": {
|
||||
# "class": 257,
|
||||
# "desc": "IDE controller"
|
||||
# },
|
||||
# "id": {
|
||||
# "device": 32902,
|
||||
# "vendor": 28688
|
||||
# },
|
||||
# "function": 1,
|
||||
# "regions": [
|
||||
# {
|
||||
# "bar": 4,
|
||||
# "size": 16,
|
||||
# "address": 49152,
|
||||
# "type": "io"
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# {
|
||||
# "bus": 0,
|
||||
# "qdev_id": "",
|
||||
# "slot": 2,
|
||||
# "class_info": {
|
||||
# "class": 768,
|
||||
# "desc": "VGA controller"
|
||||
# },
|
||||
# "id": {
|
||||
# "device": 4115,
|
||||
# "vendor": 184
|
||||
# },
|
||||
# "function": 0,
|
||||
# "regions": [
|
||||
# {
|
||||
# "prefetch": true,
|
||||
# "mem_type_64": false,
|
||||
# "bar": 0,
|
||||
# "size": 33554432,
|
||||
# "address": 4026531840,
|
||||
# "type": "memory"
|
||||
# },
|
||||
# {
|
||||
# "prefetch": false,
|
||||
# "mem_type_64": false,
|
||||
# "bar": 1,
|
||||
# "size": 4096,
|
||||
# "address": 4060086272,
|
||||
# "type": "memory"
|
||||
# },
|
||||
# {
|
||||
# "prefetch": false,
|
||||
# "mem_type_64": false,
|
||||
# "bar": 6,
|
||||
# "size": 65536,
|
||||
# "address": -1,
|
||||
# "type": "memory"
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# {
|
||||
# "bus": 0,
|
||||
# "qdev_id": "",
|
||||
# "irq": 11,
|
||||
# "slot": 4,
|
||||
# "class_info": {
|
||||
# "class": 1280,
|
||||
# "desc": "RAM controller"
|
||||
# },
|
||||
# "id": {
|
||||
# "device": 6900,
|
||||
# "vendor": 4098
|
||||
# },
|
||||
# "function": 0,
|
||||
# "regions": [
|
||||
# {
|
||||
# "bar": 0,
|
||||
# "size": 32,
|
||||
# "address": 49280,
|
||||
# "type": "io"
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
#
|
||||
# Note: This example has been shortened as the real response is too long.
|
||||
#
|
||||
##
|
||||
{ 'command': 'query-pci', 'returns': ['PciInfo'] }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue