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.
50 # - 'now' to expire the password immediately
51 # - 'never' to cancel password expiration
52 # - '+INT' where INT is the number of seconds from now (integer)
53 # - 'INT' where INT is the absolute time in seconds
55 # Returns: - Nothing on success
56 # - If @protocol is 'spice' and Spice is not active, DeviceNotFound
60 # Notes: Time is relative to the server and currently there is no way to
61 # coordinate server time with client time. It is not recommended to
62 # use the absolute time version of the @time parameter unless you're
63 # sure you are on the same machine as the QEMU instance.
67 # -> { "execute": "expire_password", "arguments": { "protocol": "vnc",
72 { 'command': 'expire_password', 'data': {'protocol': 'str', 'time': 'str'} }
77 # Write a PPM of the VGA screen to a file.
79 # @filename: the path of a new PPM file to store the image
81 # @device: ID of the display device that should be dumped. If this parameter
82 # is missing, the primary display will be used. (Since 2.12)
84 # @head: head to use in case the device supports multiple heads. If this
85 # parameter is missing, head #0 will be used. Also note that the head
86 # can only be specified in conjunction with the device ID. (Since 2.12)
88 # Returns: Nothing on success
94 # -> { "execute": "screendump",
95 # "arguments": { "filename": "/tmp/image" } }
99 { 'command': 'screendump',
100 'data': {'filename': 'str', '*device': 'str', '*head': 'int'} }
109 # The basic information for SPICE network connection
115 # @family: address family
119 { 'struct': 'SpiceBasicInfo',
120 'data': { 'host': 'str',
122 'family': 'NetworkAddressFamily' },
123 'if': 'defined(CONFIG_SPICE)' }
128 # Information about a SPICE server
130 # @auth: authentication method
134 { 'struct': 'SpiceServerInfo',
135 'base': 'SpiceBasicInfo',
136 'data': { '*auth': 'str' },
137 'if': 'defined(CONFIG_SPICE)' }
142 # Information about a SPICE client channel.
144 # @connection-id: SPICE connection id number. All channels with the same id
145 # belong to the same SPICE session.
147 # @channel-type: SPICE channel type number. "1" is the main control
148 # channel, filter for this one if you want to track spice
151 # @channel-id: SPICE channel ID number. Usually "0", might be different when
152 # multiple channels of the same type exist, such as multiple
153 # display channels in a multihead setup
155 # @tls: true if the channel is encrypted, false otherwise.
159 { 'struct': 'SpiceChannel',
160 'base': 'SpiceBasicInfo',
161 'data': {'connection-id': 'int', 'channel-type': 'int', 'channel-id': 'int',
163 'if': 'defined(CONFIG_SPICE)' }
166 # @SpiceQueryMouseMode:
168 # An enumeration of Spice mouse states.
170 # @client: Mouse cursor position is determined by the client.
172 # @server: Mouse cursor position is determined by the server.
174 # @unknown: No information is available about mouse mode used by
177 # Note: spice/enums.h has a SpiceMouseMode already, hence the name.
181 { 'enum': 'SpiceQueryMouseMode',
182 'data': [ 'client', 'server', 'unknown' ],
183 'if': 'defined(CONFIG_SPICE)' }
188 # Information about the SPICE session.
190 # @enabled: true if the SPICE server is enabled, false otherwise
192 # @migrated: true if the last guest migration completed and spice
193 # migration had completed as well. false otherwise. (since 1.4)
195 # @host: The hostname the SPICE server is bound to. This depends on
196 # the name resolution on the host and may be an IP address.
198 # @port: The SPICE server's port number.
200 # @compiled-version: SPICE server version.
202 # @tls-port: The SPICE server's TLS port number.
204 # @auth: the current authentication type used by the server
206 # - 'none' if no authentication is being used
207 # - 'spice' uses SASL or direct TLS authentication, depending on command
210 # @mouse-mode: The mode in which the mouse cursor is displayed currently. Can
211 # be determined by the client or the server, or unknown if spice
212 # server doesn't provide this information. (since: 1.1)
214 # @channels: a list of @SpiceChannel for each active spice channel
218 { 'struct': 'SpiceInfo',
219 'data': {'enabled': 'bool', 'migrated': 'bool', '*host': 'str', '*port': 'int',
220 '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str',
221 'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']},
222 'if': 'defined(CONFIG_SPICE)' }
227 # Returns information about the current SPICE server
229 # Returns: @SpiceInfo
235 # -> { "execute": "query-spice" }
247 # "connection-id": 1804289383,
248 # "host": "127.0.0.1",
256 # "connection-id": 1804289383,
257 # "host": "127.0.0.1",
261 # [ ... more channels follow ... ]
267 { 'command': 'query-spice', 'returns': 'SpiceInfo',
268 'if': 'defined(CONFIG_SPICE)' }
273 # Emitted when a SPICE client establishes a connection
275 # @server: server information
277 # @client: client information
283 # <- { "timestamp": {"seconds": 1290688046, "microseconds": 388707},
284 # "event": "SPICE_CONNECTED",
286 # "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
287 # "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
291 { 'event': 'SPICE_CONNECTED',
292 'data': { 'server': 'SpiceBasicInfo',
293 'client': 'SpiceBasicInfo' },
294 'if': 'defined(CONFIG_SPICE)' }
297 # @SPICE_INITIALIZED:
299 # Emitted after initial handshake and authentication takes place (if any)
300 # and the SPICE channel is up and running
302 # @server: server information
304 # @client: client information
310 # <- { "timestamp": {"seconds": 1290688046, "microseconds": 417172},
311 # "event": "SPICE_INITIALIZED",
312 # "data": {"server": {"auth": "spice", "port": "5921",
313 # "family": "ipv4", "host": "127.0.0.1"},
314 # "client": {"port": "49004", "family": "ipv4", "channel-type": 3,
315 # "connection-id": 1804289383, "host": "127.0.0.1",
316 # "channel-id": 0, "tls": true}
320 { 'event': 'SPICE_INITIALIZED',
321 'data': { 'server': 'SpiceServerInfo',
322 'client': 'SpiceChannel' },
323 'if': 'defined(CONFIG_SPICE)' }
326 # @SPICE_DISCONNECTED:
328 # Emitted when the SPICE connection is closed
330 # @server: server information
332 # @client: client information
338 # <- { "timestamp": {"seconds": 1290688046, "microseconds": 388707},
339 # "event": "SPICE_DISCONNECTED",
341 # "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
342 # "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
346 { 'event': 'SPICE_DISCONNECTED',
347 'data': { 'server': 'SpiceBasicInfo',
348 'client': 'SpiceBasicInfo' },
349 'if': 'defined(CONFIG_SPICE)' }
352 # @SPICE_MIGRATE_COMPLETED:
354 # Emitted when SPICE migration has completed
360 # <- { "timestamp": {"seconds": 1290688046, "microseconds": 417172},
361 # "event": "SPICE_MIGRATE_COMPLETED" }
364 { 'event': 'SPICE_MIGRATE_COMPLETED',
365 'if': 'defined(CONFIG_SPICE)' }
374 # The basic information for vnc network connection
378 # @service: The service name of the vnc port. This may depend on the host
379 # system's service database so symbolic names should not be relied
382 # @family: address family
384 # @websocket: true in case the socket is a websocket (since 2.3).
388 { 'struct': 'VncBasicInfo',
389 'data': { 'host': 'str',
391 'family': 'NetworkAddressFamily',
392 'websocket': 'bool' },
393 'if': 'defined(CONFIG_VNC)' }
398 # The network connection information for server
400 # @auth: authentication method used for
401 # the plain (non-websocket) VNC server
405 { 'struct': 'VncServerInfo',
406 'base': 'VncBasicInfo',
407 'data': { '*auth': 'str' },
408 'if': 'defined(CONFIG_VNC)' }
413 # Information about a connected VNC client.
415 # @x509_dname: If x509 authentication is in use, the Distinguished
416 # Name of the client.
418 # @sasl_username: If SASL authentication is in use, the SASL username
419 # used for authentication.
423 { 'struct': 'VncClientInfo',
424 'base': 'VncBasicInfo',
425 'data': { '*x509_dname': 'str', '*sasl_username': 'str' },
426 'if': 'defined(CONFIG_VNC)' }
431 # Information about the VNC session.
433 # @enabled: true if the VNC server is enabled, false otherwise
435 # @host: The hostname the VNC server is bound to. This depends on
436 # the name resolution on the host and may be an IP address.
438 # @family: - 'ipv6' if the host is listening for IPv6 connections
439 # - 'ipv4' if the host is listening for IPv4 connections
440 # - 'unix' if the host is listening on a unix domain socket
441 # - 'unknown' otherwise
443 # @service: The service name of the server's port. This may depends
444 # on the host system's service database so symbolic names should not
447 # @auth: the current authentication type used by the server
449 # - 'none' if no authentication is being used
450 # - 'vnc' if VNC authentication is being used
451 # - 'vencrypt+plain' if VEncrypt is used with plain text authentication
452 # - 'vencrypt+tls+none' if VEncrypt is used with TLS and no authentication
453 # - 'vencrypt+tls+vnc' if VEncrypt is used with TLS and VNC authentication
454 # - 'vencrypt+tls+plain' if VEncrypt is used with TLS and plain text auth
455 # - 'vencrypt+x509+none' if VEncrypt is used with x509 and no auth
456 # - 'vencrypt+x509+vnc' if VEncrypt is used with x509 and VNC auth
457 # - 'vencrypt+x509+plain' if VEncrypt is used with x509 and plain text auth
458 # - 'vencrypt+tls+sasl' if VEncrypt is used with TLS and SASL auth
459 # - 'vencrypt+x509+sasl' if VEncrypt is used with x509 and SASL auth
461 # @clients: a list of @VncClientInfo of all currently connected clients
465 { 'struct': 'VncInfo',
466 'data': {'enabled': 'bool', '*host': 'str',
467 '*family': 'NetworkAddressFamily',
468 '*service': 'str', '*auth': 'str', '*clients': ['VncClientInfo']},
469 'if': 'defined(CONFIG_VNC)' }
474 # vnc primary authentication method.
478 { 'enum': 'VncPrimaryAuth',
479 'data': [ 'none', 'vnc', 'ra2', 'ra2ne', 'tight', 'ultra',
480 'tls', 'vencrypt', 'sasl' ],
481 'if': 'defined(CONFIG_VNC)' }
484 # @VncVencryptSubAuth:
486 # vnc sub authentication method with vencrypt.
490 { 'enum': 'VncVencryptSubAuth',
492 'tls-none', 'x509-none',
493 'tls-vnc', 'x509-vnc',
494 'tls-plain', 'x509-plain',
495 'tls-sasl', 'x509-sasl' ],
496 'if': 'defined(CONFIG_VNC)' }
501 # The network connection information for server
503 # @auth: The current authentication type used by the servers
505 # @vencrypt: The vencrypt sub authentication type used by the
506 # servers, only specified in case auth == vencrypt.
510 { 'struct': 'VncServerInfo2',
511 'base': 'VncBasicInfo',
512 'data': { 'auth' : 'VncPrimaryAuth',
513 '*vencrypt' : 'VncVencryptSubAuth' },
514 'if': 'defined(CONFIG_VNC)' }
519 # Information about a vnc server
521 # @id: vnc server name.
523 # @server: A list of @VncBasincInfo describing all listening sockets.
524 # The list can be empty (in case the vnc server is disabled).
525 # It also may have multiple entries: normal + websocket,
526 # possibly also ipv4 + ipv6 in the future.
528 # @clients: A list of @VncClientInfo of all currently connected clients.
529 # The list can be empty, for obvious reasons.
531 # @auth: The current authentication type used by the non-websockets servers
533 # @vencrypt: The vencrypt authentication type used by the servers,
534 # only specified in case auth == vencrypt.
536 # @display: The display device the vnc server is linked to.
540 { 'struct': 'VncInfo2',
541 'data': { 'id' : 'str',
542 'server' : ['VncServerInfo2'],
543 'clients' : ['VncClientInfo'],
544 'auth' : 'VncPrimaryAuth',
545 '*vencrypt' : 'VncVencryptSubAuth',
546 '*display' : 'str' },
547 'if': 'defined(CONFIG_VNC)' }
552 # Returns information about the current VNC server
560 # -> { "execute": "query-vnc" }
569 # "host":"127.0.0.1",
578 { 'command': 'query-vnc', 'returns': 'VncInfo',
579 'if': 'defined(CONFIG_VNC)' }
581 # @query-vnc-servers:
583 # Returns a list of vnc servers. The list can be empty.
585 # Returns: a list of @VncInfo2
589 { 'command': 'query-vnc-servers', 'returns': ['VncInfo2'],
590 'if': 'defined(CONFIG_VNC)' }
593 # @change-vnc-password:
595 # Change the VNC server password.
597 # @password: the new password to use with VNC authentication
601 # Notes: An empty password in this command will set the password to the empty
602 # string. Existing clients are unaffected by executing this command.
604 { 'command': 'change-vnc-password',
605 'data': { 'password': 'str' },
606 'if': 'defined(CONFIG_VNC)' }
611 # Emitted when a VNC client establishes a connection
613 # @server: server information
615 # @client: client information
617 # Note: This event is emitted before any authentication takes place, thus
618 # the authentication ID is not provided
624 # <- { "event": "VNC_CONNECTED",
626 # "server": { "auth": "sasl", "family": "ipv4",
627 # "service": "5901", "host": "0.0.0.0" },
628 # "client": { "family": "ipv4", "service": "58425",
629 # "host": "127.0.0.1" } },
630 # "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
633 { 'event': 'VNC_CONNECTED',
634 'data': { 'server': 'VncServerInfo',
635 'client': 'VncBasicInfo' },
636 'if': 'defined(CONFIG_VNC)' }
641 # Emitted after authentication takes place (if any) and the VNC session is
644 # @server: server information
646 # @client: client information
652 # <- { "event": "VNC_INITIALIZED",
654 # "server": { "auth": "sasl", "family": "ipv4",
655 # "service": "5901", "host": "0.0.0.0"},
656 # "client": { "family": "ipv4", "service": "46089",
657 # "host": "127.0.0.1", "sasl_username": "luiz" } },
658 # "timestamp": { "seconds": 1263475302, "microseconds": 150772 } }
661 { 'event': 'VNC_INITIALIZED',
662 'data': { 'server': 'VncServerInfo',
663 'client': 'VncClientInfo' },
664 'if': 'defined(CONFIG_VNC)' }
669 # Emitted when the connection is closed
671 # @server: server information
673 # @client: client information
679 # <- { "event": "VNC_DISCONNECTED",
681 # "server": { "auth": "sasl", "family": "ipv4",
682 # "service": "5901", "host": "0.0.0.0" },
683 # "client": { "family": "ipv4", "service": "58425",
684 # "host": "127.0.0.1", "sasl_username": "luiz" } },
685 # "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
688 { 'event': 'VNC_DISCONNECTED',
689 'data': { 'server': 'VncServerInfo',
690 'client': 'VncClientInfo' },
691 'if': 'defined(CONFIG_VNC)' }
700 # Information about a mouse device.
702 # @name: the name of the mouse device
704 # @index: the index of the mouse device
706 # @current: true if this device is currently receiving mouse events
708 # @absolute: true if this device supports absolute coordinates as input
712 { 'struct': 'MouseInfo',
713 'data': {'name': 'str', 'index': 'int', 'current': 'bool',
714 'absolute': 'bool'} }
719 # Returns information about each active mouse device
721 # Returns: a list of @MouseInfo for each device
727 # -> { "execute": "query-mice" }
730 # "name":"QEMU Microsoft Mouse",
736 # "name":"QEMU PS/2 Mouse",
745 { 'command': 'query-mice', 'returns': ['MouseInfo'] }
750 # An enumeration of key name.
752 # This is used by the @send-key command.
754 # @unmapped: since 2.0
757 # @kp_comma: since 2.4
758 # @kp_equals: since 2.6
760 # @hiragana: since 2.9
766 # @audionext: since 2.10
767 # @audioprev: since 2.10
768 # @audiostop: since 2.10
769 # @audioplay: since 2.10
770 # @audiomute: since 2.10
771 # @volumeup: since 2.10
772 # @volumedown: since 2.10
773 # @mediaselect: since 2.10
775 # @calculator: since 2.10
776 # @computer: since 2.10
777 # @ac_home: since 2.10
778 # @ac_back: since 2.10
779 # @ac_forward: since 2.10
780 # @ac_refresh: since 2.10
781 # @ac_bookmarks: since 2.10
783 # @muhenkan: since 2.12
784 # @katakanahiragana: since 2.12
786 # 'sysrq' was mistakenly added to hack around the fact that
787 # the ps2 driver was not generating correct scancodes sequences
788 # when 'alt+print' was pressed. This flaw is now fixed and the
789 # 'sysrq' key serves no further purpose. Any further use of
790 # 'sysrq' will be transparently changed to 'print', so they
791 # are effectively synonyms.
796 { 'enum': 'QKeyCode',
797 'data': [ 'unmapped',
798 'shift', 'shift_r', 'alt', 'alt_r', 'ctrl',
799 'ctrl_r', 'menu', 'esc', '1', '2', '3', '4', '5', '6', '7', '8',
800 '9', '0', 'minus', 'equal', 'backspace', 'tab', 'q', 'w', 'e',
801 'r', 't', 'y', 'u', 'i', 'o', 'p', 'bracket_left', 'bracket_right',
802 'ret', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'semicolon',
803 'apostrophe', 'grave_accent', 'backslash', 'z', 'x', 'c', 'v', 'b',
804 'n', 'm', 'comma', 'dot', 'slash', 'asterisk', 'spc', 'caps_lock',
805 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10',
806 'num_lock', 'scroll_lock', 'kp_divide', 'kp_multiply',
807 'kp_subtract', 'kp_add', 'kp_enter', 'kp_decimal', 'sysrq', 'kp_0',
808 'kp_1', 'kp_2', 'kp_3', 'kp_4', 'kp_5', 'kp_6', 'kp_7', 'kp_8',
809 'kp_9', 'less', 'f11', 'f12', 'print', 'home', 'pgup', 'pgdn', 'end',
810 'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', 'again',
811 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut',
812 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause',
813 'ro', 'hiragana', 'henkan', 'yen', 'muhenkan', 'katakanahiragana',
814 'kp_comma', 'kp_equals', 'power', 'sleep', 'wake',
815 'audionext', 'audioprev', 'audiostop', 'audioplay', 'audiomute',
816 'volumeup', 'volumedown', 'mediaselect',
817 'mail', 'calculator', 'computer',
818 'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmarks' ] }
823 # Represents a keyboard key.
827 { 'union': 'KeyValue',
830 'qcode': 'QKeyCode' } }
835 # Send keys to guest.
837 # @keys: An array of @KeyValue elements. All @KeyValues in this array are
838 # simultaneously sent to the guest. A @KeyValue.number value is sent
839 # directly to the guest, while @KeyValue.qcode must be a valid
842 # @hold-time: time to delay key up events, milliseconds. Defaults
845 # Returns: - Nothing on success
846 # - If key is unknown or redundant, InvalidParameter
852 # -> { "execute": "send-key",
853 # "arguments": { "keys": [ { "type": "qcode", "data": "ctrl" },
854 # { "type": "qcode", "data": "alt" },
855 # { "type": "qcode", "data": "delete" } ] } }
856 # <- { "return": {} }
859 { 'command': 'send-key',
860 'data': { 'keys': ['KeyValue'], '*hold-time': 'int' } }
865 # Button of a pointer input device (mouse, tablet).
867 # @side: front side button of a 5-button mouse (since 2.9)
869 # @extra: rear side button of a 5-button mouse (since 2.9)
873 { 'enum' : 'InputButton',
874 'data' : [ 'left', 'middle', 'right', 'wheel-up', 'wheel-down', 'side',
880 # Position axis of a pointer input device (mouse, tablet).
884 { 'enum' : 'InputAxis',
885 'data' : [ 'x', 'y' ] }
890 # Keyboard input event.
892 # @key: Which key this event is for.
893 # @down: True for key-down and false for key-up events.
897 { 'struct' : 'InputKeyEvent',
898 'data' : { 'key' : 'KeyValue',
904 # Pointer button input event.
906 # @button: Which button this event is for.
907 # @down: True for key-down and false for key-up events.
911 { 'struct' : 'InputBtnEvent',
912 'data' : { 'button' : 'InputButton',
918 # Pointer motion input event.
920 # @axis: Which axis is referenced by @value.
921 # @value: Pointer position. For absolute coordinates the
922 # valid range is 0 -> 0x7ffff
926 { 'struct' : 'InputMoveEvent',
927 'data' : { 'axis' : 'InputAxis',
935 # @type: the input type, one of:
937 # - 'key': Input event of Keyboard
938 # - 'btn': Input event of pointer buttons
939 # - 'rel': Input event of relative pointer motion
940 # - 'abs': Input event of absolute pointer motion
944 { 'union' : 'InputEvent',
945 'data' : { 'key' : 'InputKeyEvent',
946 'btn' : 'InputBtnEvent',
947 'rel' : 'InputMoveEvent',
948 'abs' : 'InputMoveEvent' } }
953 # Send input event(s) to guest.
955 # The @device and @head parameters can be used to send the input event
956 # to specific input devices in case (a) multiple input devices of the
957 # same kind are added to the virtual machine and (b) you have
958 # configured input routing (see docs/multiseat.txt) for those input
959 # devices. The parameters work exactly like the device and head
960 # properties of input devices. If @device is missing, only devices
961 # that have no input routing config are admissible. If @device is
962 # specified, both input devices with and without input routing config
963 # are admissible, but devices with input routing config take
966 # @device: display device to send event(s) to.
967 # @head: head to send event(s) to, in case the
968 # display device supports multiple scanouts.
969 # @events: List of InputEvent union.
971 # Returns: Nothing on success.
975 # Note: The consoles are visible in the qom tree, under
976 # /backend/console[$index]. They have a device link and head property,
977 # so it is possible to map which console belongs to which device and
982 # 1. Press left mouse button.
984 # -> { "execute": "input-send-event",
985 # "arguments": { "device": "video0",
986 # "events": [ { "type": "btn",
987 # "data" : { "down": true, "button": "left" } } ] } }
988 # <- { "return": {} }
990 # -> { "execute": "input-send-event",
991 # "arguments": { "device": "video0",
992 # "events": [ { "type": "btn",
993 # "data" : { "down": false, "button": "left" } } ] } }
994 # <- { "return": {} }
996 # 2. Press ctrl-alt-del.
998 # -> { "execute": "input-send-event",
999 # "arguments": { "events": [
1000 # { "type": "key", "data" : { "down": true,
1001 # "key": {"type": "qcode", "data": "ctrl" } } },
1002 # { "type": "key", "data" : { "down": true,
1003 # "key": {"type": "qcode", "data": "alt" } } },
1004 # { "type": "key", "data" : { "down": true,
1005 # "key": {"type": "qcode", "data": "delete" } } } ] } }
1006 # <- { "return": {} }
1008 # 3. Move mouse pointer to absolute coordinates (20000, 400).
1010 # -> { "execute": "input-send-event" ,
1011 # "arguments": { "events": [
1012 # { "type": "abs", "data" : { "axis": "x", "value" : 20000 } },
1013 # { "type": "abs", "data" : { "axis": "y", "value" : 400 } } ] } }
1014 # <- { "return": {} }
1017 { 'command': 'input-send-event',
1018 'data': { '*device': 'str',
1020 'events' : [ 'InputEvent' ] } }
1025 # Keys to toggle input-linux between host and guest.
1030 { 'enum': 'GrabToggleKeys',
1031 'data': [ 'ctrl-ctrl', 'alt-alt', 'shift-shift','meta-meta', 'scrolllock',
1032 'ctrl-scrolllock' ] }
1037 # GTK display options.
1039 # @grab-on-hover: Grab keyboard input on mouse hover.
1040 # @zoom-to-fit: Zoom guest display to fit into the host window. When
1041 # turned off the host window will be resized instead.
1042 # In case the display device can notify the guest on
1043 # window resizes (virtio-gpu) this will default to "on",
1044 # assuming the guest will resize the display to match
1045 # the window size then. Otherwise it defaults to "off".
1051 { 'struct' : 'DisplayGTK',
1052 'data' : { '*grab-on-hover' : 'bool',
1053 '*zoom-to-fit' : 'bool' } }
1056 # @DisplayEGLHeadless:
1058 # EGL headless display options.
1060 # @rendernode: Which DRM render node should be used. Default is the first
1061 # available node on the host.
1066 { 'struct' : 'DisplayEGLHeadless',
1067 'data' : { '*rendernode' : 'str' } }
1072 # Display OpenGL mode.
1074 # @off: Disable OpenGL (default).
1075 # @on: Use OpenGL, pick context type automatically.
1076 # Would better be named 'auto' but is called 'on' for backward
1077 # compatibility with bool type.
1078 # @core: Use OpenGL with Core (desktop) Context.
1079 # @es: Use OpenGL with ES (embedded systems) Context.
1084 { 'enum' : 'DisplayGLMode',
1085 'data' : [ 'off', 'on', 'core', 'es' ] }
1090 # Curses display options.
1092 # @charset: Font charset used by guest (default: CP437).
1097 { 'struct' : 'DisplayCurses',
1098 'data' : { '*charset' : 'str' } }
1103 # Display (user interface) type.
1105 # @default: The default user interface, selecting from the first available
1106 # of gtk, sdl, cocoa, and vnc.
1108 # @none: No user interface or video output display. The guest will
1109 # still see an emulated graphics card, but its output will not
1110 # be displayed to the QEMU user.
1112 # @gtk: The GTK user interface.
1114 # @sdl: The SDL user interface.
1116 # @egl-headless: No user interface, offload GL operations to a local
1117 # DRI device. Graphical display need to be paired with
1118 # VNC or Spice. (Since 3.1)
1120 # @curses: Display video output via curses. For graphics device
1121 # models which support a text mode, QEMU can display this
1122 # output using a curses/ncurses interface. Nothing is
1123 # displayed when the graphics device is in graphical mode or
1124 # if the graphics device does not support a text
1125 # mode. Generally only the VGA device models support text
1128 # @cocoa: The Cocoa user interface.
1130 # @spice-app: Set up a Spice server and run the default associated
1131 # application to connect to it. The server will redirect
1132 # the serial console and QEMU monitors. (Since 4.0)
1137 { 'enum' : 'DisplayType',
1138 'data' : [ 'default', 'none', 'gtk', 'sdl',
1139 'egl-headless', 'curses', 'cocoa',
1145 # Display (user interface) options.
1147 # @type: Which DisplayType qemu should use.
1148 # @full-screen: Start user interface in fullscreen mode (default: off).
1149 # @window-close: Allow to quit qemu with window close button (default: on).
1150 # @show-cursor: Force showing the mouse cursor (default: off).
1152 # @gl: Enable OpenGL support (default: off).
1157 { 'union' : 'DisplayOptions',
1158 'base' : { 'type' : 'DisplayType',
1159 '*full-screen' : 'bool',
1160 '*window-close' : 'bool',
1161 '*show-cursor' : 'bool',
1162 '*gl' : 'DisplayGLMode' },
1163 'discriminator' : 'type',
1164 'data' : { 'gtk' : 'DisplayGTK',
1165 'curses' : 'DisplayCurses',
1166 'egl-headless' : 'DisplayEGLHeadless'} }
1169 # @query-display-options:
1171 # Returns information about display configuration
1173 # Returns: @DisplayOptions
1178 { 'command': 'query-display-options',
1179 'returns': 'DisplayOptions' }