8 { 'include': 'sockets.json' }
13 # Sets the password of a remote display session.
15 # @protocol: `vnc' to modify the VNC server password
16 # `spice' to modify the Spice server password
18 # @password: the new password
20 # @connected: how to handle existing clients when changing the
21 # password. If nothing is specified, defaults to `keep'
22 # `fail' to fail the command if clients are connected
23 # `disconnect' to disconnect existing clients
24 # `keep' to maintain existing clients
26 # Returns: Nothing on success
27 # If Spice is not enabled, DeviceNotFound
33 # -> { "execute": "set_password", "arguments": { "protocol": "vnc",
34 # "password": "secret" } }
38 { 'command': 'set_password',
39 'data': {'protocol': 'str', 'password': 'str', '*connected': 'str'} }
44 # Expire the password of a remote display server.
46 # @protocol: the name of the remote display protocol `vnc' or `spice'
48 # @time: when to expire the password.
49 # `now' to expire the password immediately
50 # `never' to cancel password expiration
51 # `+INT' where INT is the number of seconds from now (integer)
52 # `INT' where INT is the absolute time in seconds
54 # Returns: Nothing on success
55 # If @protocol is `spice' and Spice is not active, DeviceNotFound
59 # Notes: Time is relative to the server and currently there is no way to
60 # coordinate server time with client time. It is not recommended to
61 # use the absolute time version of the @time parameter unless you're
62 # sure you are on the same machine as the QEMU instance.
66 # -> { "execute": "expire_password", "arguments": { "protocol": "vnc",
71 { 'command': 'expire_password', 'data': {'protocol': 'str', 'time': 'str'} }
76 # Write a PPM of the VGA screen to a file.
78 # @filename: the path of a new PPM file to store the image
80 # @device: ID of the display device that should be dumped. If this parameter
81 # is missing, the primary display will be used. (Since 2.12)
83 # @head: head to use in case the device supports multiple heads. If this
84 # parameter is missing, head #0 will be used. Also note that the head
85 # can only be specified in conjunction with the device ID. (Since 2.12)
87 # Returns: Nothing on success
93 # -> { "execute": "screendump",
94 # "arguments": { "filename": "/tmp/image" } }
98 { 'command': 'screendump',
99 'data': {'filename': 'str', '*device': 'str', '*head': 'int'} }
108 # The basic information for SPICE network connection
114 # @family: address family
118 { 'struct': 'SpiceBasicInfo',
119 'data': { 'host': 'str',
121 'family': 'NetworkAddressFamily' },
122 'if': 'defined(CONFIG_SPICE)' }
127 # Information about a SPICE server
129 # @auth: authentication method
133 { 'struct': 'SpiceServerInfo',
134 'base': 'SpiceBasicInfo',
135 'data': { '*auth': 'str' },
136 'if': 'defined(CONFIG_SPICE)' }
141 # Information about a SPICE client channel.
143 # @connection-id: SPICE connection id number. All channels with the same id
144 # belong to the same SPICE session.
146 # @channel-type: SPICE channel type number. "1" is the main control
147 # channel, filter for this one if you want to track spice
150 # @channel-id: SPICE channel ID number. Usually "0", might be different when
151 # multiple channels of the same type exist, such as multiple
152 # display channels in a multihead setup
154 # @tls: true if the channel is encrypted, false otherwise.
158 { 'struct': 'SpiceChannel',
159 'base': 'SpiceBasicInfo',
160 'data': {'connection-id': 'int', 'channel-type': 'int', 'channel-id': 'int',
162 'if': 'defined(CONFIG_SPICE)' }
165 # @SpiceQueryMouseMode:
167 # An enumeration of Spice mouse states.
169 # @client: Mouse cursor position is determined by the client.
171 # @server: Mouse cursor position is determined by the server.
173 # @unknown: No information is available about mouse mode used by
176 # Note: spice/enums.h has a SpiceMouseMode already, hence the name.
180 { 'enum': 'SpiceQueryMouseMode',
181 'data': [ 'client', 'server', 'unknown' ],
182 'if': 'defined(CONFIG_SPICE)' }
187 # Information about the SPICE session.
189 # @enabled: true if the SPICE server is enabled, false otherwise
191 # @migrated: true if the last guest migration completed and spice
192 # migration had completed as well. false otherwise. (since 1.4)
194 # @host: The hostname the SPICE server is bound to. This depends on
195 # the name resolution on the host and may be an IP address.
197 # @port: The SPICE server's port number.
199 # @compiled-version: SPICE server version.
201 # @tls-port: The SPICE server's TLS port number.
203 # @auth: the current authentication type used by the server
204 # 'none' if no authentication is being used
205 # 'spice' uses SASL or direct TLS authentication, depending on command
208 # @mouse-mode: The mode in which the mouse cursor is displayed currently. Can
209 # be determined by the client or the server, or unknown if spice
210 # server doesn't provide this information. (since: 1.1)
212 # @channels: a list of @SpiceChannel for each active spice channel
216 { 'struct': 'SpiceInfo',
217 'data': {'enabled': 'bool', 'migrated': 'bool', '*host': 'str', '*port': 'int',
218 '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str',
219 'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']},
220 'if': 'defined(CONFIG_SPICE)' }
225 # Returns information about the current SPICE server
227 # Returns: @SpiceInfo
233 # -> { "execute": "query-spice" }
245 # "connection-id": 1804289383,
246 # "host": "127.0.0.1",
254 # "connection-id": 1804289383,
255 # "host": "127.0.0.1",
259 # [ ... more channels follow ... ]
265 { 'command': 'query-spice', 'returns': 'SpiceInfo',
266 'if': 'defined(CONFIG_SPICE)' }
271 # Emitted when a SPICE client establishes a connection
273 # @server: server information
275 # @client: client information
281 # <- { "timestamp": {"seconds": 1290688046, "microseconds": 388707},
282 # "event": "SPICE_CONNECTED",
284 # "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
285 # "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
289 { 'event': 'SPICE_CONNECTED',
290 'data': { 'server': 'SpiceBasicInfo',
291 'client': 'SpiceBasicInfo' },
292 'if': 'defined(CONFIG_SPICE)' }
295 # @SPICE_INITIALIZED:
297 # Emitted after initial handshake and authentication takes place (if any)
298 # and the SPICE channel is up and running
300 # @server: server information
302 # @client: client information
308 # <- { "timestamp": {"seconds": 1290688046, "microseconds": 417172},
309 # "event": "SPICE_INITIALIZED",
310 # "data": {"server": {"auth": "spice", "port": "5921",
311 # "family": "ipv4", "host": "127.0.0.1"},
312 # "client": {"port": "49004", "family": "ipv4", "channel-type": 3,
313 # "connection-id": 1804289383, "host": "127.0.0.1",
314 # "channel-id": 0, "tls": true}
318 { 'event': 'SPICE_INITIALIZED',
319 'data': { 'server': 'SpiceServerInfo',
320 'client': 'SpiceChannel' },
321 'if': 'defined(CONFIG_SPICE)' }
324 # @SPICE_DISCONNECTED:
326 # Emitted when the SPICE connection is closed
328 # @server: server information
330 # @client: client information
336 # <- { "timestamp": {"seconds": 1290688046, "microseconds": 388707},
337 # "event": "SPICE_DISCONNECTED",
339 # "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
340 # "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
344 { 'event': 'SPICE_DISCONNECTED',
345 'data': { 'server': 'SpiceBasicInfo',
346 'client': 'SpiceBasicInfo' },
347 'if': 'defined(CONFIG_SPICE)' }
350 # @SPICE_MIGRATE_COMPLETED:
352 # Emitted when SPICE migration has completed
358 # <- { "timestamp": {"seconds": 1290688046, "microseconds": 417172},
359 # "event": "SPICE_MIGRATE_COMPLETED" }
362 { 'event': 'SPICE_MIGRATE_COMPLETED',
363 'if': 'defined(CONFIG_SPICE)' }
372 # The basic information for vnc network connection
376 # @service: The service name of the vnc port. This may depend on the host
377 # system's service database so symbolic names should not be relied
380 # @family: address family
382 # @websocket: true in case the socket is a websocket (since 2.3).
386 { 'struct': 'VncBasicInfo',
387 'data': { 'host': 'str',
389 'family': 'NetworkAddressFamily',
390 'websocket': 'bool' },
391 'if': 'defined(CONFIG_VNC)' }
396 # The network connection information for server
398 # @auth: authentication method used for
399 # the plain (non-websocket) VNC server
403 { 'struct': 'VncServerInfo',
404 'base': 'VncBasicInfo',
405 'data': { '*auth': 'str' },
406 'if': 'defined(CONFIG_VNC)' }
411 # Information about a connected VNC client.
413 # @x509_dname: If x509 authentication is in use, the Distinguished
414 # Name of the client.
416 # @sasl_username: If SASL authentication is in use, the SASL username
417 # used for authentication.
421 { 'struct': 'VncClientInfo',
422 'base': 'VncBasicInfo',
423 'data': { '*x509_dname': 'str', '*sasl_username': 'str' },
424 'if': 'defined(CONFIG_VNC)' }
429 # Information about the VNC session.
431 # @enabled: true if the VNC server is enabled, false otherwise
433 # @host: The hostname the VNC server is bound to. This depends on
434 # the name resolution on the host and may be an IP address.
436 # @family: 'ipv6' if the host is listening for IPv6 connections
437 # 'ipv4' if the host is listening for IPv4 connections
438 # 'unix' if the host is listening on a unix domain socket
439 # 'unknown' otherwise
441 # @service: The service name of the server's port. This may depends
442 # on the host system's service database so symbolic names should not
445 # @auth: the current authentication type used by the server
446 # 'none' if no authentication is being used
447 # 'vnc' if VNC authentication is being used
448 # 'vencrypt+plain' if VEncrypt is used with plain text authentication
449 # 'vencrypt+tls+none' if VEncrypt is used with TLS and no authentication
450 # 'vencrypt+tls+vnc' if VEncrypt is used with TLS and VNC authentication
451 # 'vencrypt+tls+plain' if VEncrypt is used with TLS and plain text auth
452 # 'vencrypt+x509+none' if VEncrypt is used with x509 and no auth
453 # 'vencrypt+x509+vnc' if VEncrypt is used with x509 and VNC auth
454 # 'vencrypt+x509+plain' if VEncrypt is used with x509 and plain text auth
455 # 'vencrypt+tls+sasl' if VEncrypt is used with TLS and SASL auth
456 # 'vencrypt+x509+sasl' if VEncrypt is used with x509 and SASL auth
458 # @clients: a list of @VncClientInfo of all currently connected clients
462 { 'struct': 'VncInfo',
463 'data': {'enabled': 'bool', '*host': 'str',
464 '*family': 'NetworkAddressFamily',
465 '*service': 'str', '*auth': 'str', '*clients': ['VncClientInfo']},
466 'if': 'defined(CONFIG_VNC)' }
471 # vnc primary authentication method.
475 { 'enum': 'VncPrimaryAuth',
476 'data': [ 'none', 'vnc', 'ra2', 'ra2ne', 'tight', 'ultra',
477 'tls', 'vencrypt', 'sasl' ],
478 'if': 'defined(CONFIG_VNC)' }
481 # @VncVencryptSubAuth:
483 # vnc sub authentication method with vencrypt.
487 { 'enum': 'VncVencryptSubAuth',
489 'tls-none', 'x509-none',
490 'tls-vnc', 'x509-vnc',
491 'tls-plain', 'x509-plain',
492 'tls-sasl', 'x509-sasl' ],
493 'if': 'defined(CONFIG_VNC)' }
498 # The network connection information for server
500 # @auth: The current authentication type used by the servers
502 # @vencrypt: The vencrypt sub authentication type used by the
503 # servers, only specified in case auth == vencrypt.
507 { 'struct': 'VncServerInfo2',
508 'base': 'VncBasicInfo',
509 'data': { 'auth' : 'VncPrimaryAuth',
510 '*vencrypt' : 'VncVencryptSubAuth' },
511 'if': 'defined(CONFIG_VNC)' }
516 # Information about a vnc server
518 # @id: vnc server name.
520 # @server: A list of @VncBasincInfo describing all listening sockets.
521 # The list can be empty (in case the vnc server is disabled).
522 # It also may have multiple entries: normal + websocket,
523 # possibly also ipv4 + ipv6 in the future.
525 # @clients: A list of @VncClientInfo of all currently connected clients.
526 # The list can be empty, for obvious reasons.
528 # @auth: The current authentication type used by the non-websockets servers
530 # @vencrypt: The vencrypt authentication type used by the servers,
531 # only specified in case auth == vencrypt.
533 # @display: The display device the vnc server is linked to.
537 { 'struct': 'VncInfo2',
538 'data': { 'id' : 'str',
539 'server' : ['VncServerInfo2'],
540 'clients' : ['VncClientInfo'],
541 'auth' : 'VncPrimaryAuth',
542 '*vencrypt' : 'VncVencryptSubAuth',
543 '*display' : 'str' },
544 'if': 'defined(CONFIG_VNC)' }
549 # Returns information about the current VNC server
557 # -> { "execute": "query-vnc" }
566 # "host":"127.0.0.1",
575 { 'command': 'query-vnc', 'returns': 'VncInfo',
576 'if': 'defined(CONFIG_VNC)' }
578 # @query-vnc-servers:
580 # Returns a list of vnc servers. The list can be empty.
582 # Returns: a list of @VncInfo2
586 { 'command': 'query-vnc-servers', 'returns': ['VncInfo2'],
587 'if': 'defined(CONFIG_VNC)' }
590 # @change-vnc-password:
592 # Change the VNC server password.
594 # @password: the new password to use with VNC authentication
598 # Notes: An empty password in this command will set the password to the empty
599 # string. Existing clients are unaffected by executing this command.
601 { 'command': 'change-vnc-password', 'data': {'password': 'str'},
602 'if': 'defined(CONFIG_VNC)' }
607 # Emitted when a VNC client establishes a connection
609 # @server: server information
611 # @client: client information
613 # Note: This event is emitted before any authentication takes place, thus
614 # the authentication ID is not provided
620 # <- { "event": "VNC_CONNECTED",
622 # "server": { "auth": "sasl", "family": "ipv4",
623 # "service": "5901", "host": "0.0.0.0" },
624 # "client": { "family": "ipv4", "service": "58425",
625 # "host": "127.0.0.1" } },
626 # "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
629 { 'event': 'VNC_CONNECTED',
630 'data': { 'server': 'VncServerInfo',
631 'client': 'VncBasicInfo' },
632 'if': 'defined(CONFIG_VNC)' }
637 # Emitted after authentication takes place (if any) and the VNC session is
640 # @server: server information
642 # @client: client information
648 # <- { "event": "VNC_INITIALIZED",
650 # "server": { "auth": "sasl", "family": "ipv4",
651 # "service": "5901", "host": "0.0.0.0"},
652 # "client": { "family": "ipv4", "service": "46089",
653 # "host": "127.0.0.1", "sasl_username": "luiz" } },
654 # "timestamp": { "seconds": 1263475302, "microseconds": 150772 } }
657 { 'event': 'VNC_INITIALIZED',
658 'data': { 'server': 'VncServerInfo',
659 'client': 'VncClientInfo' },
660 'if': 'defined(CONFIG_VNC)' }
665 # Emitted when the connection is closed
667 # @server: server information
669 # @client: client information
675 # <- { "event": "VNC_DISCONNECTED",
677 # "server": { "auth": "sasl", "family": "ipv4",
678 # "service": "5901", "host": "0.0.0.0" },
679 # "client": { "family": "ipv4", "service": "58425",
680 # "host": "127.0.0.1", "sasl_username": "luiz" } },
681 # "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
684 { 'event': 'VNC_DISCONNECTED',
685 'data': { 'server': 'VncServerInfo',
686 'client': 'VncClientInfo' },
687 'if': 'defined(CONFIG_VNC)' }
696 # Information about a mouse device.
698 # @name: the name of the mouse device
700 # @index: the index of the mouse device
702 # @current: true if this device is currently receiving mouse events
704 # @absolute: true if this device supports absolute coordinates as input
708 { 'struct': 'MouseInfo',
709 'data': {'name': 'str', 'index': 'int', 'current': 'bool',
710 'absolute': 'bool'} }
715 # Returns information about each active mouse device
717 # Returns: a list of @MouseInfo for each device
723 # -> { "execute": "query-mice" }
726 # "name":"QEMU Microsoft Mouse",
732 # "name":"QEMU PS/2 Mouse",
741 { 'command': 'query-mice', 'returns': ['MouseInfo'] }
746 # An enumeration of key name.
748 # This is used by the @send-key command.
750 # @unmapped: since 2.0
753 # @kp_comma: since 2.4
754 # @kp_equals: since 2.6
756 # @hiragana: since 2.9
762 # @audionext: since 2.10
763 # @audioprev: since 2.10
764 # @audiostop: since 2.10
765 # @audioplay: since 2.10
766 # @audiomute: since 2.10
767 # @volumeup: since 2.10
768 # @volumedown: since 2.10
769 # @mediaselect: since 2.10
771 # @calculator: since 2.10
772 # @computer: since 2.10
773 # @ac_home: since 2.10
774 # @ac_back: since 2.10
775 # @ac_forward: since 2.10
776 # @ac_refresh: since 2.10
777 # @ac_bookmarks: since 2.10
778 # altgr, altgr_r: dropped in 2.10
780 # @muhenkan: since 2.12
781 # @katakanahiragana: since 2.12
783 # 'sysrq' was mistakenly added to hack around the fact that
784 # the ps2 driver was not generating correct scancodes sequences
785 # when 'alt+print' was pressed. This flaw is now fixed and the
786 # 'sysrq' key serves no further purpose. Any further use of
787 # 'sysrq' will be transparently changed to 'print', so they
788 # are effectively synonyms.
793 { 'enum': 'QKeyCode',
794 'data': [ 'unmapped',
795 'shift', 'shift_r', 'alt', 'alt_r', 'ctrl',
796 'ctrl_r', 'menu', 'esc', '1', '2', '3', '4', '5', '6', '7', '8',
797 '9', '0', 'minus', 'equal', 'backspace', 'tab', 'q', 'w', 'e',
798 'r', 't', 'y', 'u', 'i', 'o', 'p', 'bracket_left', 'bracket_right',
799 'ret', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'semicolon',
800 'apostrophe', 'grave_accent', 'backslash', 'z', 'x', 'c', 'v', 'b',
801 'n', 'm', 'comma', 'dot', 'slash', 'asterisk', 'spc', 'caps_lock',
802 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10',
803 'num_lock', 'scroll_lock', 'kp_divide', 'kp_multiply',
804 'kp_subtract', 'kp_add', 'kp_enter', 'kp_decimal', 'sysrq', 'kp_0',
805 'kp_1', 'kp_2', 'kp_3', 'kp_4', 'kp_5', 'kp_6', 'kp_7', 'kp_8',
806 'kp_9', 'less', 'f11', 'f12', 'print', 'home', 'pgup', 'pgdn', 'end',
807 'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', 'again',
808 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut',
809 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause',
810 'ro', 'hiragana', 'henkan', 'yen', 'muhenkan', 'katakanahiragana',
811 'kp_comma', 'kp_equals', 'power', 'sleep', 'wake',
812 'audionext', 'audioprev', 'audiostop', 'audioplay', 'audiomute',
813 'volumeup', 'volumedown', 'mediaselect',
814 'mail', 'calculator', 'computer',
815 'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmarks' ] }
820 # Represents a keyboard key.
824 { 'union': 'KeyValue',
827 'qcode': 'QKeyCode' } }
832 # Send keys to guest.
834 # @keys: An array of @KeyValue elements. All @KeyValues in this array are
835 # simultaneously sent to the guest. A @KeyValue.number value is sent
836 # directly to the guest, while @KeyValue.qcode must be a valid
839 # @hold-time: time to delay key up events, milliseconds. Defaults
842 # Returns: Nothing on success
843 # If key is unknown or redundant, InvalidParameter
849 # -> { "execute": "send-key",
850 # "arguments": { "keys": [ { "type": "qcode", "data": "ctrl" },
851 # { "type": "qcode", "data": "alt" },
852 # { "type": "qcode", "data": "delete" } ] } }
853 # <- { "return": {} }
856 { 'command': 'send-key',
857 'data': { 'keys': ['KeyValue'], '*hold-time': 'int' } }
862 # Button of a pointer input device (mouse, tablet).
864 # @side: front side button of a 5-button mouse (since 2.9)
866 # @extra: rear side button of a 5-button mouse (since 2.9)
870 { 'enum' : 'InputButton',
871 'data' : [ 'left', 'middle', 'right', 'wheel-up', 'wheel-down', 'side',
877 # Position axis of a pointer input device (mouse, tablet).
881 { 'enum' : 'InputAxis',
882 'data' : [ 'x', 'y' ] }
887 # Keyboard input event.
889 # @key: Which key this event is for.
890 # @down: True for key-down and false for key-up events.
894 { 'struct' : 'InputKeyEvent',
895 'data' : { 'key' : 'KeyValue',
901 # Pointer button input event.
903 # @button: Which button this event is for.
904 # @down: True for key-down and false for key-up events.
908 { 'struct' : 'InputBtnEvent',
909 'data' : { 'button' : 'InputButton',
915 # Pointer motion input event.
917 # @axis: Which axis is referenced by @value.
918 # @value: Pointer position. For absolute coordinates the
919 # valid range is 0 -> 0x7ffff
923 { 'struct' : 'InputMoveEvent',
924 'data' : { 'axis' : 'InputAxis',
932 # @type: the input type, one of:
933 # - 'key': Input event of Keyboard
934 # - 'btn': Input event of pointer buttons
935 # - 'rel': Input event of relative pointer motion
936 # - 'abs': Input event of absolute pointer motion
940 { 'union' : 'InputEvent',
941 'data' : { 'key' : 'InputKeyEvent',
942 'btn' : 'InputBtnEvent',
943 'rel' : 'InputMoveEvent',
944 'abs' : 'InputMoveEvent' } }
949 # Send input event(s) to guest.
951 # @device: display device to send event(s) to.
952 # @head: head to send event(s) to, in case the
953 # display device supports multiple scanouts.
954 # @events: List of InputEvent union.
956 # Returns: Nothing on success.
958 # The @device and @head parameters can be used to send the input event
959 # to specific input devices in case (a) multiple input devices of the
960 # same kind are added to the virtual machine and (b) you have
961 # configured input routing (see docs/multiseat.txt) for those input
962 # devices. The parameters work exactly like the device and head
963 # properties of input devices. If @device is missing, only devices
964 # that have no input routing config are admissible. If @device is
965 # specified, both input devices with and without input routing config
966 # are admissible, but devices with input routing config take
971 # Note: The consoles are visible in the qom tree, under
972 # /backend/console[$index]. They have a device link and head property,
973 # so it is possible to map which console belongs to which device and
978 # 1. Press left mouse button.
980 # -> { "execute": "input-send-event",
981 # "arguments": { "device": "video0",
982 # "events": [ { "type": "btn",
983 # "data" : { "down": true, "button": "left" } } ] } }
984 # <- { "return": {} }
986 # -> { "execute": "input-send-event",
987 # "arguments": { "device": "video0",
988 # "events": [ { "type": "btn",
989 # "data" : { "down": false, "button": "left" } } ] } }
990 # <- { "return": {} }
992 # 2. Press ctrl-alt-del.
994 # -> { "execute": "input-send-event",
995 # "arguments": { "events": [
996 # { "type": "key", "data" : { "down": true,
997 # "key": {"type": "qcode", "data": "ctrl" } } },
998 # { "type": "key", "data" : { "down": true,
999 # "key": {"type": "qcode", "data": "alt" } } },
1000 # { "type": "key", "data" : { "down": true,
1001 # "key": {"type": "qcode", "data": "delete" } } } ] } }
1002 # <- { "return": {} }
1004 # 3. Move mouse pointer to absolute coordinates (20000, 400).
1006 # -> { "execute": "input-send-event" ,
1007 # "arguments": { "events": [
1008 # { "type": "abs", "data" : { "axis": "x", "value" : 20000 } },
1009 # { "type": "abs", "data" : { "axis": "y", "value" : 400 } } ] } }
1010 # <- { "return": {} }
1013 { 'command': 'input-send-event',
1014 'data': { '*device': 'str',
1016 'events' : [ 'InputEvent' ] } }
1022 # GTK display options.
1024 # @grab-on-hover: Grab keyboard input on mouse hover.
1025 # @zoom-to-fit: Zoom guest display to fit into the host window. When
1026 # turned off the host window will be resized instead.
1027 # In case the display device can notify the guest on
1028 # window resizes (virtio-gpu) this will default to "on",
1029 # assuming the guest will resize the display to match
1030 # the window size then. Otherwise it defaults to "off".
1036 { 'struct' : 'DisplayGTK',
1037 'data' : { '*grab-on-hover' : 'bool',
1038 '*zoom-to-fit' : 'bool' } }
1041 # @DisplayEGLHeadless:
1043 # EGL headless display options.
1045 # @rendernode: Which DRM render node should be used. Default is the first
1046 # available node on the host.
1051 { 'struct' : 'DisplayEGLHeadless',
1052 'data' : { '*rendernode' : 'str' } }
1057 # Display OpenGL mode.
1059 # @off: Disable OpenGL (default).
1060 # @on: Use OpenGL, pick context type automatically.
1061 # Would better be named 'auto' but is called 'on' for backward
1062 # compatibility with bool type.
1063 # @core: Use OpenGL with Core (desktop) Context.
1064 # @es: Use OpenGL with ES (embedded systems) Context.
1069 { 'enum' : 'DisplayGLMode',
1070 'data' : [ 'off', 'on', 'core', 'es' ] }
1075 # Display (user interface) type.
1080 { 'enum' : 'DisplayType',
1081 'data' : [ 'default', 'none', 'gtk', 'sdl',
1082 'egl-headless', 'curses', 'cocoa' ] }
1087 # Display (user interface) options.
1089 # @type: Which DisplayType qemu should use.
1090 # @full-screen: Start user interface in fullscreen mode (default: off).
1091 # @window-close: Allow to quit qemu with window close button (default: on).
1092 # @gl: Enable OpenGL support (default: off).
1097 { 'union' : 'DisplayOptions',
1098 'base' : { 'type' : 'DisplayType',
1099 '*full-screen' : 'bool',
1100 '*window-close' : 'bool',
1101 '*gl' : 'DisplayGLMode' },
1102 'discriminator' : 'type',
1103 'data' : { 'gtk' : 'DisplayGTK',
1104 'egl-headless' : 'DisplayEGLHeadless'} }
1107 # @query-display-options:
1109 # Returns information about display configuration
1111 # Returns: @DisplayOptions
1116 { 'command': 'query-display-options',
1117 'returns': 'DisplayOptions' }