docs/interop/bitmaps: Clean up a reference to qemu-qmp-ref
[qemu/kevin.git] / qapi / yank.json
blob87ec7cab9681109893f57c12eb4f2e9ec15407c2
1 # -*- Mode: Python -*-
2 # vim: filetype=python
5 ##
6 # = Yank feature
7 ##
9 ##
10 # @YankInstanceType:
12 # An enumeration of yank instance types.  See @YankInstance for more
13 # information.
15 # Since: 6.0
17 { 'enum': 'YankInstanceType',
18   'data': [ 'block-node', 'chardev', 'migration' ] }
21 # @YankInstanceBlockNode:
23 # Specifies which block graph node to yank.  See @YankInstance for
24 # more information.
26 # @node-name: the name of the block graph node
28 # Since: 6.0
30 { 'struct': 'YankInstanceBlockNode',
31   'data': { 'node-name': 'str' } }
34 # @YankInstanceChardev:
36 # Specifies which character device to yank.  See @YankInstance for
37 # more information.
39 # @id: the chardev's ID
41 # Since: 6.0
43 { 'struct': 'YankInstanceChardev',
44   'data': { 'id': 'str' } }
47 # @YankInstance:
49 # A yank instance can be yanked with the @yank qmp command to recover
50 # from a hanging QEMU.
52 # Currently implemented yank instances:
54 # - nbd block device: Yanking it will shut down the connection to the
55 #   nbd server without attempting to reconnect.
56 # - socket chardev: Yanking it will shut down the connected socket.
57 # - migration: Yanking it will shut down all migration connections.
58 #   Unlike @migrate_cancel, it will not notify the migration process,
59 #   so migration will go into @failed state, instead of @cancelled
60 #   state.  @yank should be used to recover from hangs.
62 # Since: 6.0
64 { 'union': 'YankInstance',
65   'base': { 'type': 'YankInstanceType' },
66   'discriminator': 'type',
67   'data': {
68       'block-node': 'YankInstanceBlockNode',
69       'chardev': 'YankInstanceChardev' } }
72 # @yank:
74 # Try to recover from hanging QEMU by yanking the specified instances.
75 # See @YankInstance for more information.
77 # Takes a list of @YankInstance as argument.
79 # Returns:
80 # - Nothing on success
81 # - @DeviceNotFound error, if any of the YankInstances doesn't exist
83 # Example:
85 # -> { "execute": "yank",
86 #      "arguments": {
87 #          "instances": [
88 #               { "type": "block-node",
89 #                 "node-name": "nbd0" }
90 #          ] } }
91 # <- { "return": {} }
93 # Since: 6.0
95 { 'command': 'yank',
96   'data': { 'instances': ['YankInstance'] },
97   'allow-oob': true }
100 # @query-yank:
102 # Query yank instances.  See @YankInstance for more information.
104 # Returns: list of @YankInstance
106 # Example:
108 # -> { "execute": "query-yank" }
109 # <- { "return": [
110 #          { "type": "block-node",
111 #            "node-name": "nbd0" }
112 #      ] }
114 # Since: 6.0
116 { 'command': 'query-yank',
117   'returns': ['YankInstance'],
118   'allow-oob': true }