2014-06-05 19:45:29 +08:00
|
|
|
# -*- Mode: Python -*-
|
2020-07-30 02:50:24 +08:00
|
|
|
# vim: filetype=python
|
2017-01-13 22:41:23 +08:00
|
|
|
|
|
|
|
##
|
2017-08-25 03:14:08 +08:00
|
|
|
# = Common data types
|
2017-01-13 22:41:23 +08:00
|
|
|
##
|
2014-06-05 19:45:29 +08:00
|
|
|
|
2017-08-25 03:14:06 +08:00
|
|
|
##
|
|
|
|
# @IoOperationType:
|
|
|
|
#
|
|
|
|
# An enumeration of the I/O operation types
|
|
|
|
#
|
|
|
|
# @read: read operation
|
|
|
|
#
|
|
|
|
# @write: write operation
|
|
|
|
#
|
|
|
|
# Since: 2.1
|
|
|
|
##
|
|
|
|
{ 'enum': 'IoOperationType',
|
|
|
|
'data': [ 'read', 'write' ] }
|
|
|
|
|
2014-11-22 00:18:52 +08:00
|
|
|
##
|
2016-11-17 23:54:55 +08:00
|
|
|
# @OnOffAuto:
|
2014-11-22 00:18:52 +08:00
|
|
|
#
|
|
|
|
# An enumeration of three options: on, off, and auto
|
|
|
|
#
|
|
|
|
# @auto: QEMU selects the value between on and off
|
|
|
|
#
|
|
|
|
# @on: Enabled
|
|
|
|
#
|
|
|
|
# @off: Disabled
|
|
|
|
#
|
|
|
|
# Since: 2.2
|
|
|
|
##
|
|
|
|
{ 'enum': 'OnOffAuto',
|
|
|
|
'data': [ 'auto', 'on', 'off' ] }
|
2015-11-17 02:03:06 +08:00
|
|
|
|
|
|
|
##
|
2016-11-17 23:54:55 +08:00
|
|
|
# @OnOffSplit:
|
2015-11-17 02:03:06 +08:00
|
|
|
#
|
|
|
|
# An enumeration of three values: on, off, and split
|
|
|
|
#
|
|
|
|
# @on: Enabled
|
|
|
|
#
|
|
|
|
# @off: Disabled
|
|
|
|
#
|
|
|
|
# @split: Mixed
|
|
|
|
#
|
|
|
|
# Since: 2.6
|
|
|
|
##
|
|
|
|
{ 'enum': 'OnOffSplit',
|
|
|
|
'data': [ 'on', 'off', 'split' ] }
|
2017-08-25 03:13:56 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
# @String:
|
|
|
|
#
|
|
|
|
# A fat type wrapping 'str', to be embedded in lists.
|
|
|
|
#
|
|
|
|
# Since: 1.2
|
|
|
|
##
|
|
|
|
{ 'struct': 'String',
|
|
|
|
'data': {
|
|
|
|
'str': 'str' } }
|
2017-08-25 03:14:01 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
# @StrOrNull:
|
|
|
|
#
|
|
|
|
# This is a string value or the explicit lack of a string (null
|
|
|
|
# pointer in C). Intended for cases when 'optional absent' already
|
|
|
|
# has a different meaning.
|
|
|
|
#
|
|
|
|
# @s: the string value
|
|
|
|
# @n: no string value
|
|
|
|
#
|
|
|
|
# Since: 2.10
|
|
|
|
##
|
|
|
|
{ 'alternate': 'StrOrNull',
|
|
|
|
'data': { 's': 'str',
|
|
|
|
'n': 'null' } }
|
2018-02-07 02:08:26 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
# @OffAutoPCIBAR:
|
|
|
|
#
|
|
|
|
# An enumeration of options for specifying a PCI BAR
|
|
|
|
#
|
|
|
|
# @off: The specified feature is disabled
|
|
|
|
#
|
|
|
|
# @auto: The PCI BAR for the feature is automatically selected
|
|
|
|
#
|
|
|
|
# @bar0: PCI BAR0 is used for the feature
|
|
|
|
#
|
|
|
|
# @bar1: PCI BAR1 is used for the feature
|
|
|
|
#
|
|
|
|
# @bar2: PCI BAR2 is used for the feature
|
|
|
|
#
|
|
|
|
# @bar3: PCI BAR3 is used for the feature
|
|
|
|
#
|
|
|
|
# @bar4: PCI BAR4 is used for the feature
|
|
|
|
#
|
|
|
|
# @bar5: PCI BAR5 is used for the feature
|
|
|
|
#
|
|
|
|
# Since: 2.12
|
|
|
|
##
|
|
|
|
{ 'enum': 'OffAutoPCIBAR',
|
|
|
|
'data': [ 'off', 'auto', 'bar0', 'bar1', 'bar2', 'bar3', 'bar4', 'bar5' ] }
|
2018-04-28 03:28:49 +08:00
|
|
|
|
2018-12-13 03:39:08 +08:00
|
|
|
##
|
|
|
|
# @PCIELinkSpeed:
|
|
|
|
#
|
|
|
|
# An enumeration of PCIe link speeds in units of GT/s
|
|
|
|
#
|
|
|
|
# @2_5: 2.5GT/s
|
|
|
|
#
|
|
|
|
# @5: 5.0GT/s
|
|
|
|
#
|
|
|
|
# @8: 8.0GT/s
|
|
|
|
#
|
|
|
|
# @16: 16.0GT/s
|
|
|
|
#
|
|
|
|
# Since: 4.0
|
|
|
|
##
|
|
|
|
{ 'enum': 'PCIELinkSpeed',
|
|
|
|
'data': [ '2_5', '5', '8', '16' ] }
|
|
|
|
|
|
|
|
##
|
|
|
|
# @PCIELinkWidth:
|
|
|
|
#
|
|
|
|
# An enumeration of PCIe link width
|
|
|
|
#
|
|
|
|
# @1: x1
|
|
|
|
#
|
|
|
|
# @2: x2
|
|
|
|
#
|
|
|
|
# @4: x4
|
|
|
|
#
|
|
|
|
# @8: x8
|
|
|
|
#
|
|
|
|
# @12: x12
|
|
|
|
#
|
|
|
|
# @16: x16
|
|
|
|
#
|
|
|
|
# @32: x32
|
|
|
|
#
|
|
|
|
# Since: 4.0
|
|
|
|
##
|
|
|
|
{ 'enum': 'PCIELinkWidth',
|
|
|
|
'data': [ '1', '2', '4', '8', '12', '16', '32' ] }
|
2020-10-20 18:47:58 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
# @HostMemPolicy:
|
|
|
|
#
|
|
|
|
# Host memory policy types
|
|
|
|
#
|
|
|
|
# @default: restore default policy, remove any nondefault policy
|
|
|
|
#
|
|
|
|
# @preferred: set the preferred host nodes for allocation
|
|
|
|
#
|
|
|
|
# @bind: a strict policy that restricts memory allocation to the
|
|
|
|
# host nodes specified
|
|
|
|
#
|
|
|
|
# @interleave: memory allocations are interleaved across the set
|
|
|
|
# of host nodes specified
|
|
|
|
#
|
|
|
|
# Since: 2.1
|
|
|
|
##
|
|
|
|
{ 'enum': 'HostMemPolicy',
|
|
|
|
'data': [ 'default', 'preferred', 'bind', 'interleave' ] }
|
2020-10-20 18:47:58 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
# @NetFilterDirection:
|
|
|
|
#
|
|
|
|
# Indicates whether a netfilter is attached to a netdev's transmit queue or
|
|
|
|
# receive queue or both.
|
|
|
|
#
|
|
|
|
# @all: the filter is attached both to the receive and the transmit
|
|
|
|
# queue of the netdev (default).
|
|
|
|
#
|
|
|
|
# @rx: the filter is attached to the receive queue of the netdev,
|
|
|
|
# where it will receive packets sent to the netdev.
|
|
|
|
#
|
|
|
|
# @tx: the filter is attached to the transmit queue of the netdev,
|
|
|
|
# where it will receive packets sent by the netdev.
|
|
|
|
#
|
|
|
|
# Since: 2.5
|
|
|
|
##
|
|
|
|
{ 'enum': 'NetFilterDirection',
|
|
|
|
'data': [ 'all', 'rx', 'tx' ] }
|
2020-10-20 18:47:58 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
# @GrabToggleKeys:
|
|
|
|
#
|
|
|
|
# Keys to toggle input-linux between host and guest.
|
|
|
|
#
|
|
|
|
# Since: 4.0
|
|
|
|
#
|
|
|
|
##
|
|
|
|
{ 'enum': 'GrabToggleKeys',
|
|
|
|
'data': [ 'ctrl-ctrl', 'alt-alt', 'shift-shift','meta-meta', 'scrolllock',
|
|
|
|
'ctrl-scrolllock' ] }
|
2021-10-08 22:09:00 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
# @HumanReadableText:
|
|
|
|
#
|
|
|
|
# @human-readable-text: Formatted output intended for humans.
|
|
|
|
#
|
|
|
|
# Since: 6.2
|
|
|
|
#
|
|
|
|
##
|
|
|
|
{ 'struct': 'HumanReadableText',
|
|
|
|
'data': { 'human-readable-text': 'str' } }
|