mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
qmp: add new qmp display-reload
This patch provides a new qmp to reload display configuration without restart VM, but only reloading the vnc tls certificates is implemented. Example: {"execute": "display-reload", "arguments":{"type": "vnc", "tls-certs": true}} Signed-off-by: Zihao Chang <changzihao1@huawei.com> Message-Id: <20210316075845.1476-4-changzihao1@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
1f08e34151
commit
9cc0765165
2 changed files with 78 additions and 0 deletions
61
qapi/ui.json
61
qapi/ui.json
|
@ -1168,3 +1168,64 @@
|
|||
##
|
||||
{ 'command': 'query-display-options',
|
||||
'returns': 'DisplayOptions' }
|
||||
|
||||
##
|
||||
# @DisplayReloadType:
|
||||
#
|
||||
# Available DisplayReload types.
|
||||
#
|
||||
# @vnc: VNC display
|
||||
#
|
||||
# Since: 6.0
|
||||
#
|
||||
##
|
||||
{ 'enum': 'DisplayReloadType',
|
||||
'data': ['vnc'] }
|
||||
|
||||
##
|
||||
# @DisplayReloadOptionsVNC:
|
||||
#
|
||||
# Specify the VNC reload options.
|
||||
#
|
||||
# @tls-certs: reload tls certs or not.
|
||||
#
|
||||
# Since: 6.0
|
||||
#
|
||||
##
|
||||
{ 'struct': 'DisplayReloadOptionsVNC',
|
||||
'data': { '*tls-certs': 'bool' } }
|
||||
|
||||
##
|
||||
# @DisplayReloadOptions:
|
||||
#
|
||||
# Options of the display configuration reload.
|
||||
#
|
||||
# @type: Specify the display type.
|
||||
#
|
||||
# Since: 6.0
|
||||
#
|
||||
##
|
||||
{ 'union': 'DisplayReloadOptions',
|
||||
'base': {'type': 'DisplayReloadType'},
|
||||
'discriminator': 'type',
|
||||
'data': { 'vnc': 'DisplayReloadOptionsVNC' } }
|
||||
|
||||
##
|
||||
# @display-reload:
|
||||
#
|
||||
# Reload display configuration.
|
||||
#
|
||||
# Returns: Nothing on success.
|
||||
#
|
||||
# Since: 6.0
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# -> { "execute": "display-reload",
|
||||
# "arguments": { "type": "vnc", "tls-certs": true } }
|
||||
# <- { "return": {} }
|
||||
#
|
||||
##
|
||||
{ 'command': 'display-reload',
|
||||
'data': 'DisplayReloadOptions',
|
||||
'boxed' : true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue