%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/doc/qemu-system-common/
Upload File :
Create Path :
Current File : //usr/share/doc/qemu-system-common/qemu-qmp-ref.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This is the QEMU QMP reference manual.

Copyright (C) 2016 The QEMU Project developers

This manual is free documentation: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 2 of the
License, or (at your option) any later version.

This manual is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this manual.  If not, see http://www.gnu.org/licenses/. -->
<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>QEMU QMP Reference Manual</title>

<meta name="description" content="QEMU QMP Reference Manual">
<meta name="keywords" content="QEMU QMP Reference Manual">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="#Top" rel="start" title="Top">
<link href="#Commands-and-Events-Index" rel="index" title="Commands and Events Index">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
<link href="dir.html#Top" rel="up" title="(dir)">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<h1 class="settitle" align="center">QEMU QMP Reference Manual</h1>








<a name="SEC_Contents"></a>
<h2 class="contents-heading">Table of Contents</h2>

<div class="contents">

<ul class="no-bullet">
  <li><a name="toc-API-Reference-1" href="#API-Reference">1 API Reference</a>
  <ul class="no-bullet">
    <li><a name="toc-Introduction" href="#Introduction">1.1 Introduction</a></li>
    <li><a name="toc-Stability-Considerations" href="#Stability-Considerations">1.2 Stability Considerations</a></li>
    <li><a name="toc-Common-data-types" href="#Common-data-types">1.3 Common data types</a></li>
    <li><a name="toc-Socket-data-types" href="#Socket-data-types">1.4 Socket data types</a></li>
    <li><a name="toc-VM-run-state" href="#VM-run-state">1.5 VM run state</a></li>
    <li><a name="toc-Cryptography" href="#Cryptography">1.6 Cryptography</a></li>
    <li><a name="toc-Block-devices" href="#Block-devices">1.7 Block devices</a>
    <ul class="no-bullet">
      <li><a name="toc-Block-core-_0028VM-unrelated_0029" href="#Block-core-_0028VM-unrelated_0029">1.7.1 Block core (VM unrelated)</a></li>
      <li><a name="toc-Additional-block-stuff-_0028VM-related_0029" href="#Additional-block-stuff-_0028VM-related_0029">1.7.2 Additional block stuff (VM related)</a></li>
    </ul></li>
    <li><a name="toc-Character-devices" href="#Character-devices">1.8 Character devices</a></li>
    <li><a name="toc-Net-devices" href="#Net-devices">1.9 Net devices</a></li>
    <li><a name="toc-Rocker-switch-device" href="#Rocker-switch-device">1.10 Rocker switch device</a></li>
    <li><a name="toc-TPM-_0028trusted-platform-module_0029-devices" href="#TPM-_0028trusted-platform-module_0029-devices">1.11 TPM (trusted platform module) devices</a></li>
    <li><a name="toc-Remote-desktop" href="#Remote-desktop">1.12 Remote desktop</a>
    <ul class="no-bullet">
      <li><a name="toc-Spice" href="#Spice">1.12.1 Spice</a></li>
      <li><a name="toc-VNC" href="#VNC">1.12.2 VNC</a></li>
    </ul></li>
    <li><a name="toc-Input" href="#Input">1.13 Input</a></li>
    <li><a name="toc-Migration" href="#Migration">1.14 Migration</a></li>
    <li><a name="toc-Transactions" href="#Transactions">1.15 Transactions</a></li>
    <li><a name="toc-Tracing" href="#Tracing">1.16 Tracing</a></li>
    <li><a name="toc-QMP-introspection" href="#QMP-introspection">1.17 QMP introspection</a></li>
    <li><a name="toc-Miscellanea" href="#Miscellanea">1.18 Miscellanea</a></li>
  </ul></li>
  <li><a name="toc-Commands-and-Events-Index-1" href="#Commands-and-Events-Index">Commands and Events Index</a></li>
  <li><a name="toc-Data-Types-Index-1" href="#Data-Types-Index">Data Types Index</a></li>
</ul>
</div>


<a name="Top"></a>
<a name="QEMU-QMP-reference"></a>
<h1 class="top">QEMU QMP reference</h1>


<hr>
<a name="API-Reference"></a>
<a name="API-Reference-1"></a>
<h2 class="chapter">1 API Reference</h2>


<a name="Introduction"></a>
<h3 class="section">1.1 Introduction</h3>

<p>This document describes all commands currently supported by QMP.
</p>
<p>Most of the time their usage is exactly the same as in the user Monitor, this
means that any other document which also describe commands (the manpage,
QEMU&rsquo;s manual, etc) can and should be consulted.
</p>
<p>QMP has two types of commands: regular and query commands. Regular commands
usually change the Virtual Machine&rsquo;s state someway, while query commands just
return information. The sections below are divided accordingly.
</p>
<p>It&rsquo;s important to observe that all communication examples are formatted in
a reader-friendly way, so that they&rsquo;re easier to understand. However, in real
protocol usage, they&rsquo;re emitted as a single line.
</p>
<p>Also, the following notation is used to denote data flow:
</p>
<p>Example:
</p>
<div class="example">
<pre class="example">-&gt; data issued by the Client
</pre></div>

<div class="example">
<pre class="example">&lt;- Server data response
</pre></div>


<p>Please, refer to the QMP specification (docs/interop/qmp-spec.txt) for
detailed information on the Server command and response formats.
</p>
<a name="Stability-Considerations"></a>
<h3 class="section">1.2 Stability Considerations</h3>

<p>The current QMP command set (described in this file) may be useful for a
number of use cases, however it&rsquo;s limited and several commands have bad
defined semantics, specially with regard to command completion.
</p>
<p>These problems are going to be solved incrementally in the next QEMU releases
and we&rsquo;re going to establish a deprecation policy for badly defined commands.
</p>
<p>If you&rsquo;re planning to adopt QMP, please observe the following:
</p>
<ol>
<li> The deprecation policy will take effect and be documented soon, please
check the documentation of each used command as soon as a new release of
QEMU is available

</li><li> DO NOT rely on anything which is not explicit documented

</li><li> Errors, in special, are not documented. Applications should NOT check
for specific errors classes or data (it&rsquo;s strongly recommended to only
check for the &quot;error&quot; key)
</li></ol>


<a name="Common-data-types"></a>
<h3 class="section">1.3 Common data types</h3>


<dl>
<dt><a name="index-QapiErrorClass"></a>Enum: <strong>QapiErrorClass</strong></dt>
<dd>
<p>QEMU error classes
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>GenericError</code></dt>
<dd><p>this is used for errors that don&rsquo;t require a specific error
class. This should be the default case for most errors
</p></dd>
<dt><code>CommandNotFound</code></dt>
<dd><p>the requested command has not been found
</p></dd>
<dt><code>DeviceNotActive</code></dt>
<dd><p>a device has failed to be become active
</p></dd>
<dt><code>DeviceNotFound</code></dt>
<dd><p>the requested device has not been found
</p></dd>
<dt><code>KVMMissingCap</code></dt>
<dd><p>the requested operation can&rsquo;t be fulfilled because a
required KVM capability is missing
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-IoOperationType"></a>Enum: <strong>IoOperationType</strong></dt>
<dd>
<p>An enumeration of the I/O operation types
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>read</code></dt>
<dd><p>read operation
</p></dd>
<dt><code>write</code></dt>
<dd><p>write operation
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-OnOffAuto"></a>Enum: <strong>OnOffAuto</strong></dt>
<dd>
<p>An enumeration of three options: on, off, and auto
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>auto</code></dt>
<dd><p>QEMU selects the value between on and off
</p></dd>
<dt><code>on</code></dt>
<dd><p>Enabled
</p></dd>
<dt><code>off</code></dt>
<dd><p>Disabled
</p></dd>
</dl>


<p><b>Since:</b>
2.2
</p>
</dd></dl>



<dl>
<dt><a name="index-OnOffSplit"></a>Enum: <strong>OnOffSplit</strong></dt>
<dd>
<p>An enumeration of three values: on, off, and split
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>on</code></dt>
<dd><p>Enabled
</p></dd>
<dt><code>off</code></dt>
<dd><p>Disabled
</p></dd>
<dt><code>split</code></dt>
<dd><p>Mixed
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-String"></a>Object: <strong>String</strong></dt>
<dd>
<p>A fat type wrapping &rsquo;str&rsquo;, to be embedded in lists.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>str: string</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-StrOrNull"></a>Alternate: <strong>StrOrNull</strong></dt>
<dd>
<p>This is a string value or the explicit lack of a string (null
pointer in C).  Intended for cases when &rsquo;optional absent&rsquo; already
has a different meaning.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>s: string</code></dt>
<dd><p>the string value
</p></dd>
<dt><code>n: null</code></dt>
<dd><p>no string value
</p></dd>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>


<a name="Socket-data-types"></a>
<h3 class="section">1.4 Socket data types</h3>


<dl>
<dt><a name="index-NetworkAddressFamily"></a>Enum: <strong>NetworkAddressFamily</strong></dt>
<dd>
<p>The network address family
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>ipv4</code></dt>
<dd><p>IPV4 family
</p></dd>
<dt><code>ipv6</code></dt>
<dd><p>IPV6 family
</p></dd>
<dt><code>unix</code></dt>
<dd><p>unix socket
</p></dd>
<dt><code>vsock</code></dt>
<dd><p>vsock family (since 2.8)
</p></dd>
<dt><code>unknown</code></dt>
<dd><p>otherwise
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-InetSocketAddressBase"></a>Object: <strong>InetSocketAddressBase</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>host: string</code></dt>
<dd><p>host part of the address
</p></dd>
<dt><code>port: string</code></dt>
<dd><p>port part of the address
</p></dd>
</dl>


</dd></dl>



<dl>
<dt><a name="index-InetSocketAddress"></a>Object: <strong>InetSocketAddress</strong></dt>
<dd>
<p>Captures a socket address or address range in the Internet namespace.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>numeric: boolean</code> (optional)</dt>
<dd><p>true if the host/port are guaranteed to be numeric,
false if name resolution should be attempted. Defaults to false.
(Since 2.9)
</p></dd>
<dt><code>to: int</code> (optional)</dt>
<dd><p>If present, this is range of possible addresses, with port
between <code>port</code> and <code>to</code>.
</p></dd>
<dt><code>ipv4: boolean</code> (optional)</dt>
<dd><p>whether to accept IPv4 addresses, default try both IPv4 and IPv6
</p></dd>
<dt><code>ipv6: boolean</code> (optional)</dt>
<dd><p>whether to accept IPv6 addresses, default try both IPv4 and IPv6
</p></dd>
<dt>The members of <code>InetSocketAddressBase</code></dt>
</dl>


<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-UnixSocketAddress"></a>Object: <strong>UnixSocketAddress</strong></dt>
<dd>
<p>Captures a socket address in the local (&quot;Unix socket&quot;) namespace.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>path: string</code></dt>
<dd><p>filesystem path to use
</p></dd>
</dl>


<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-VsockSocketAddress"></a>Object: <strong>VsockSocketAddress</strong></dt>
<dd>
<p>Captures a socket address in the vsock namespace.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>cid: string</code></dt>
<dd><p>unique host identifier
</p></dd>
<dt><code>port: string</code></dt>
<dd><p>port
</p></dd>
</dl>


<p><b>Note:</b>
string types are used to allow for possible future hostname or
service resolution support.
</p>
<p><b>Since:</b>
2.8
</p>
</dd></dl>



<dl>
<dt><a name="index-SocketAddressLegacy"></a>Object: <strong>SocketAddressLegacy</strong></dt>
<dd>
<p>Captures the address of a socket, which could also be a named file descriptor
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type</code></dt>
<dd><p>One of <tt>&quot;inet&quot;</tt>, <tt>&quot;unix&quot;</tt>, <tt>&quot;vsock&quot;</tt>, <tt>&quot;fd&quot;</tt>
</p></dd>
<dt><code>data: InetSocketAddress</code> when <code>type</code> is <tt>&quot;inet&quot;</tt></dt>
<dt><code>data: UnixSocketAddress</code> when <code>type</code> is <tt>&quot;unix&quot;</tt></dt>
<dt><code>data: VsockSocketAddress</code> when <code>type</code> is <tt>&quot;vsock&quot;</tt></dt>
<dt><code>data: String</code> when <code>type</code> is <tt>&quot;fd&quot;</tt></dt>
</dl>


<p><b>Note:</b>
This type is deprecated in favor of SocketAddress.  The
difference between SocketAddressLegacy and SocketAddress is that the
latter is a flat union rather than a simple union. Flat is nicer
because it avoids nesting on the wire, i.e. that form has fewer {}.
</p>
<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-SocketAddressType"></a>Enum: <strong>SocketAddressType</strong></dt>
<dd>
<p>Available SocketAddress types
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>inet</code></dt>
<dd><p>Internet address
</p></dd>
<dt><code>unix</code></dt>
<dd><p>Unix domain socket
</p></dd>
<dt><code>vsock</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>fd</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-SocketAddress"></a>Object: <strong>SocketAddress</strong></dt>
<dd>
<p>Captures the address of a socket, which could also be a named file
descriptor
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: SocketAddressType</code></dt>
<dd><p>Transport type
</p></dd>
<dt>The members of <code>InetSocketAddress</code> when <code>type</code> is <tt>&quot;inet&quot;</tt></dt>
<dt>The members of <code>UnixSocketAddress</code> when <code>type</code> is <tt>&quot;unix&quot;</tt></dt>
<dt>The members of <code>VsockSocketAddress</code> when <code>type</code> is <tt>&quot;vsock&quot;</tt></dt>
<dt>The members of <code>String</code> when <code>type</code> is <tt>&quot;fd&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>


<a name="VM-run-state"></a>
<h3 class="section">1.5 VM run state</h3>


<dl>
<dt><a name="index-RunState"></a>Enum: <strong>RunState</strong></dt>
<dd>
<p>An enumeration of VM run states.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>debug</code></dt>
<dd><p>QEMU is running on a debugger
</p></dd>
<dt><code>finish-migrate</code></dt>
<dd><p>guest is paused to finish the migration process
</p></dd>
<dt><code>inmigrate</code></dt>
<dd><p>guest is paused waiting for an incoming migration.  Note
that this state does not tell whether the machine will start at the
end of the migration.  This depends on the command-line -S option and
any invocation of &rsquo;stop&rsquo; or &rsquo;cont&rsquo; that has happened since QEMU was
started.
</p></dd>
<dt><code>internal-error</code></dt>
<dd><p>An internal error that prevents further guest execution
has occurred
</p></dd>
<dt><code>io-error</code></dt>
<dd><p>the last IOP has failed and the device is configured to pause
on I/O errors
</p></dd>
<dt><code>paused</code></dt>
<dd><p>guest has been paused via the &rsquo;stop&rsquo; command
</p></dd>
<dt><code>postmigrate</code></dt>
<dd><p>guest is paused following a successful &rsquo;migrate&rsquo;
</p></dd>
<dt><code>prelaunch</code></dt>
<dd><p>QEMU was started with -S and guest has not started
</p></dd>
<dt><code>restore-vm</code></dt>
<dd><p>guest is paused to restore VM state
</p></dd>
<dt><code>running</code></dt>
<dd><p>guest is actively running
</p></dd>
<dt><code>save-vm</code></dt>
<dd><p>guest is paused to save the VM state
</p></dd>
<dt><code>shutdown</code></dt>
<dd><p>guest is shut down (and -no-shutdown is in use)
</p></dd>
<dt><code>suspended</code></dt>
<dd><p>guest is suspended (ACPI S3)
</p></dd>
<dt><code>watchdog</code></dt>
<dd><p>the watchdog action is configured to pause and has been triggered
</p></dd>
<dt><code>guest-panicked</code></dt>
<dd><p>guest has been panicked as a result of guest OS panic
</p></dd>
<dt><code>colo</code></dt>
<dd><p>guest is paused to save/restore VM state under colo checkpoint,
VM can not get into this state unless colo capability is enabled
for migration. (since 2.8)
</p></dd>
</dl>


</dd></dl>



<dl>
<dt><a name="index-StatusInfo"></a>Object: <strong>StatusInfo</strong></dt>
<dd>
<p>Information about VCPU run state
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>running: boolean</code></dt>
<dd><p>true if all VCPUs are runnable, false if not runnable
</p></dd>
<dt><code>singlestep: boolean</code></dt>
<dd><p>true if VCPUs are in single-step mode
</p></dd>
<dt><code>status: RunState</code></dt>
<dd><p>the virtual machine <code>RunState</code>
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
<code>singlestep</code> is enabled through the GDB stub
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dstatus"></a>Command: <em></em> <strong>query-status</strong></dt>
<dd>
<p>Query the run status of all VCPUs
</p>

<p><b>Returns:</b>
<code>StatusInfo</code> reflecting all VCPUs
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-status&quot; }
&lt;- { &quot;return&quot;: { &quot;running&quot;: true,
                 &quot;singlestep&quot;: false,
                 &quot;status&quot;: &quot;running&quot; } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-SHUTDOWN"></a>Event: <em></em> <strong>SHUTDOWN</strong></dt>
<dd>
<p>Emitted when the virtual machine has shut down, indicating that qemu is
about to exit.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>guest: boolean</code></dt>
<dd><p>If true, the shutdown was triggered by a guest request (such as
a guest-initiated ACPI shutdown request or other hardware-specific action)
rather than a host request (such as sending qemu a SIGINT). (since 2.10)
</p></dd>
</dl>


<p><b>Note:</b>
If the command-line option &quot;-no-shutdown&quot; has been specified, qemu will
not exit, and a STOP event will eventually follow the SHUTDOWN event
</p>
<p><b>Since:</b>
0.12.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;SHUTDOWN&quot;, &quot;data&quot;: { &quot;guest&quot;: true },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1267040730, &quot;microseconds&quot;: 682951 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-POWERDOWN"></a>Event: <em></em> <strong>POWERDOWN</strong></dt>
<dd>
<p>Emitted when the virtual machine is powered down through the power control
system, such as via ACPI.
</p>

<p><b>Since:</b>
0.12.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;POWERDOWN&quot;,
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1267040730, &quot;microseconds&quot;: 682951 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-RESET"></a>Event: <em></em> <strong>RESET</strong></dt>
<dd>
<p>Emitted when the virtual machine is reset
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>guest: boolean</code></dt>
<dd><p>If true, the reset was triggered by a guest request (such as
a guest-initiated ACPI reboot request or other hardware-specific action)
rather than a host request (such as the QMP command system_reset).
(since 2.10)
</p></dd>
</dl>


<p><b>Since:</b>
0.12.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;RESET&quot;, &quot;data&quot;: { &quot;guest&quot;: false },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1267041653, &quot;microseconds&quot;: 9518 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-STOP"></a>Event: <em></em> <strong>STOP</strong></dt>
<dd>
<p>Emitted when the virtual machine is stopped
</p>

<p><b>Since:</b>
0.12.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;STOP&quot;,
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1267041730, &quot;microseconds&quot;: 281295 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-RESUME"></a>Event: <em></em> <strong>RESUME</strong></dt>
<dd>
<p>Emitted when the virtual machine resumes execution
</p>

<p><b>Since:</b>
0.12.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;RESUME&quot;,
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1271770767, &quot;microseconds&quot;: 582542 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-SUSPEND"></a>Event: <em></em> <strong>SUSPEND</strong></dt>
<dd>
<p>Emitted when guest enters a hardware suspension state, for example, S3 state,
which is sometimes called standby state
</p>

<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;SUSPEND&quot;,
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1344456160, &quot;microseconds&quot;: 309119 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-SUSPEND_005fDISK"></a>Event: <em></em> <strong>SUSPEND_DISK</strong></dt>
<dd>
<p>Emitted when guest enters a hardware suspension state with data saved on
disk, for example, S4 state, which is sometimes called hibernate state
</p>

<p><b>Note:</b>
QEMU shuts down (similar to event <code>SHUTDOWN</code>) when entering this state
</p>
<p><b>Since:</b>
1.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;-   { &quot;event&quot;: &quot;SUSPEND_DISK&quot;,
       &quot;timestamp&quot;: { &quot;seconds&quot;: 1344456160, &quot;microseconds&quot;: 309119 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-WAKEUP"></a>Event: <em></em> <strong>WAKEUP</strong></dt>
<dd>
<p>Emitted when the guest has woken up from suspend state and is running
</p>

<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;WAKEUP&quot;,
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1344522075, &quot;microseconds&quot;: 745528 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-WATCHDOG"></a>Event: <em></em> <strong>WATCHDOG</strong></dt>
<dd>
<p>Emitted when the watchdog device&rsquo;s timer is expired
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>action: WatchdogAction</code></dt>
<dd><p>action that has been taken
</p></dd>
</dl>


<p><b>Note:</b>
If action is &quot;reset&quot;, &quot;shutdown&quot;, or &quot;pause&quot; the WATCHDOG event is
followed respectively by the RESET, SHUTDOWN, or STOP events
</p>
<p><b>Note:</b>
This event is rate-limited.
</p>
<p><b>Since:</b>
0.13.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;WATCHDOG&quot;,
     &quot;data&quot;: { &quot;action&quot;: &quot;reset&quot; },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1267061043, &quot;microseconds&quot;: 959568 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-WatchdogAction"></a>Enum: <strong>WatchdogAction</strong></dt>
<dd>
<p>An enumeration of the actions taken when the watchdog device&rsquo;s timer is
expired
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>reset</code></dt>
<dd><p>system resets
</p></dd>
<dt><code>shutdown</code></dt>
<dd><p>system shutdown, note that it is similar to <code>powerdown</code>, which
tries to set to system status and notify guest
</p></dd>
<dt><code>poweroff</code></dt>
<dd><p>system poweroff, the emulator program exits
</p></dd>
<dt><code>pause</code></dt>
<dd><p>system pauses, similar to <code>stop</code>
</p></dd>
<dt><code>debug</code></dt>
<dd><p>system enters debug state
</p></dd>
<dt><code>none</code></dt>
<dd><p>nothing is done
</p></dd>
<dt><code>inject-nmi</code></dt>
<dd><p>a non-maskable interrupt is injected into the first VCPU (all
VCPUS on x86) (since 2.4)
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-GUEST_005fPANICKED"></a>Event: <em></em> <strong>GUEST_PANICKED</strong></dt>
<dd>
<p>Emitted when guest OS panic is detected
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>action: GuestPanicAction</code></dt>
<dd><p>action that has been taken, currently always &quot;pause&quot;
</p></dd>
<dt><code>info: GuestPanicInformation</code> (optional)</dt>
<dd><p>information about a panic (since 2.9)
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;GUEST_PANICKED&quot;,
     &quot;data&quot;: { &quot;action&quot;: &quot;pause&quot; } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-GuestPanicAction"></a>Enum: <strong>GuestPanicAction</strong></dt>
<dd>
<p>An enumeration of the actions taken when guest OS panic is detected
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>pause</code></dt>
<dd><p>system pauses
</p></dd>
<dt><code>poweroff</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.1 (poweroff since 2.8)
</p>
</dd></dl>



<dl>
<dt><a name="index-GuestPanicInformationType"></a>Enum: <strong>GuestPanicInformationType</strong></dt>
<dd>
<p>An enumeration of the guest panic information types
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>hyper-v</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-GuestPanicInformation"></a>Object: <strong>GuestPanicInformation</strong></dt>
<dd>
<p>Information about a guest panic
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: GuestPanicInformationType</code></dt>
<dd><p>Not documented
</p></dd>
<dt>The members of <code>GuestPanicInformationHyperV</code> when <code>type</code> is <tt>&quot;hyper-v&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-GuestPanicInformationHyperV"></a>Object: <strong>GuestPanicInformationHyperV</strong></dt>
<dd>
<p>Hyper-V specific guest panic information (HV crash MSRs)
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>arg1: int</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>arg2: int</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>arg3: int</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>arg4: int</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>arg5: int</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>


<a name="Cryptography"></a>
<h3 class="section">1.6 Cryptography</h3>


<dl>
<dt><a name="index-QCryptoTLSCredsEndpoint"></a>Enum: <strong>QCryptoTLSCredsEndpoint</strong></dt>
<dd>
<p>The type of network endpoint that will be using the credentials.
Most types of credential require different setup / structures
depending on whether they will be used in a server versus a
client.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>client</code></dt>
<dd><p>the network endpoint is acting as the client
</p></dd>
<dt><code>server</code></dt>
<dd><p>the network endpoint is acting as the server
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoSecretFormat"></a>Enum: <strong>QCryptoSecretFormat</strong></dt>
<dd>
<p>The data format that the secret is provided in
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>raw</code></dt>
<dd><p>raw bytes. When encoded in JSON only valid UTF-8 sequences can be used
</p></dd>
<dt><code>base64</code></dt>
<dd><p>arbitrary base64 encoded binary data
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoHashAlgorithm"></a>Enum: <strong>QCryptoHashAlgorithm</strong></dt>
<dd>
<p>The supported algorithms for computing content digests
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>md5</code></dt>
<dd><p>MD5. Should not be used in any new code, legacy compat only
</p></dd>
<dt><code>sha1</code></dt>
<dd><p>SHA-1. Should not be used in any new code, legacy compat only
</p></dd>
<dt><code>sha224</code></dt>
<dd><p>SHA-224. (since 2.7)
</p></dd>
<dt><code>sha256</code></dt>
<dd><p>SHA-256. Current recommended strong hash.
</p></dd>
<dt><code>sha384</code></dt>
<dd><p>SHA-384. (since 2.7)
</p></dd>
<dt><code>sha512</code></dt>
<dd><p>SHA-512. (since 2.7)
</p></dd>
<dt><code>ripemd160</code></dt>
<dd><p>RIPEMD-160. (since 2.7)
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoCipherAlgorithm"></a>Enum: <strong>QCryptoCipherAlgorithm</strong></dt>
<dd>
<p>The supported algorithms for content encryption ciphers
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>aes-128</code></dt>
<dd><p>AES with 128 bit / 16 byte keys
</p></dd>
<dt><code>aes-192</code></dt>
<dd><p>AES with 192 bit / 24 byte keys
</p></dd>
<dt><code>aes-256</code></dt>
<dd><p>AES with 256 bit / 32 byte keys
</p></dd>
<dt><code>des-rfb</code></dt>
<dd><p>RFB specific variant of single DES. Do not use except in VNC.
</p></dd>
<dt><code>3des</code></dt>
<dd><p>3DES(EDE) with 192 bit / 24 byte keys (since 2.9)
</p></dd>
<dt><code>cast5-128</code></dt>
<dd><p>Cast5 with 128 bit / 16 byte keys
</p></dd>
<dt><code>serpent-128</code></dt>
<dd><p>Serpent with 128 bit / 16 byte keys
</p></dd>
<dt><code>serpent-192</code></dt>
<dd><p>Serpent with 192 bit / 24 byte keys
</p></dd>
<dt><code>serpent-256</code></dt>
<dd><p>Serpent with 256 bit / 32 byte keys
</p></dd>
<dt><code>twofish-128</code></dt>
<dd><p>Twofish with 128 bit / 16 byte keys
</p></dd>
<dt><code>twofish-192</code></dt>
<dd><p>Twofish with 192 bit / 24 byte keys
</p></dd>
<dt><code>twofish-256</code></dt>
<dd><p>Twofish with 256 bit / 32 byte keys
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoCipherMode"></a>Enum: <strong>QCryptoCipherMode</strong></dt>
<dd>
<p>The supported modes for content encryption ciphers
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>ecb</code></dt>
<dd><p>Electronic Code Book
</p></dd>
<dt><code>cbc</code></dt>
<dd><p>Cipher Block Chaining
</p></dd>
<dt><code>xts</code></dt>
<dd><p>XEX with tweaked code book and ciphertext stealing
</p></dd>
<dt><code>ctr</code></dt>
<dd><p>Counter (Since 2.8)
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoIVGenAlgorithm"></a>Enum: <strong>QCryptoIVGenAlgorithm</strong></dt>
<dd>
<p>The supported algorithms for generating initialization
vectors for full disk encryption. The &rsquo;plain&rsquo; generator
should not be used for disks with sector numbers larger
than 2^32, except where compatibility with pre-existing
Linux dm-crypt volumes is required.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>plain</code></dt>
<dd><p>64-bit sector number truncated to 32-bits
</p></dd>
<dt><code>plain64</code></dt>
<dd><p>64-bit sector number
</p></dd>
<dt><code>essiv</code></dt>
<dd><p>64-bit sector number encrypted with a hash of the encryption key
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockFormat"></a>Enum: <strong>QCryptoBlockFormat</strong></dt>
<dd>
<p>The supported full disk encryption formats
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>qcow</code></dt>
<dd><p>QCow/QCow2 built-in AES-CBC encryption. Use only
for liberating data from old images.
</p></dd>
<dt><code>luks</code></dt>
<dd><p>LUKS encryption format. Recommended for new images
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockOptionsBase"></a>Object: <strong>QCryptoBlockOptionsBase</strong></dt>
<dd>
<p>The common options that apply to all full disk
encryption formats
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>format: QCryptoBlockFormat</code></dt>
<dd><p>the encryption format
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockOptionsQCow"></a>Object: <strong>QCryptoBlockOptionsQCow</strong></dt>
<dd>
<p>The options that apply to QCow/QCow2 AES-CBC encryption format
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>key-secret: string</code> (optional)</dt>
<dd><p>the ID of a QCryptoSecret object providing the
decryption key. Mandatory except when probing image for
metadata only.
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockOptionsLUKS"></a>Object: <strong>QCryptoBlockOptionsLUKS</strong></dt>
<dd>
<p>The options that apply to LUKS encryption format
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>key-secret: string</code> (optional)</dt>
<dd><p>the ID of a QCryptoSecret object providing the
decryption key. Mandatory except when probing image for
metadata only.
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockCreateOptionsLUKS"></a>Object: <strong>QCryptoBlockCreateOptionsLUKS</strong></dt>
<dd>
<p>The options that apply to LUKS encryption format initialization
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>cipher-alg: QCryptoCipherAlgorithm</code> (optional)</dt>
<dd><p>the cipher algorithm for data encryption
Currently defaults to &rsquo;aes&rsquo;.
</p></dd>
<dt><code>cipher-mode: QCryptoCipherMode</code> (optional)</dt>
<dd><p>the cipher mode for data encryption
Currently defaults to &rsquo;cbc&rsquo;
</p></dd>
<dt><code>ivgen-alg: QCryptoIVGenAlgorithm</code> (optional)</dt>
<dd><p>the initialization vector generator
Currently defaults to &rsquo;essiv&rsquo;
</p></dd>
<dt><code>ivgen-hash-alg: QCryptoHashAlgorithm</code> (optional)</dt>
<dd><p>the initialization vector generator hash
Currently defaults to &rsquo;sha256&rsquo;
</p></dd>
<dt><code>hash-alg: QCryptoHashAlgorithm</code> (optional)</dt>
<dd><p>the master key hash algorithm
Currently defaults to &rsquo;sha256&rsquo;
</p></dd>
<dt><code>iter-time: int</code> (optional)</dt>
<dd><p>number of milliseconds to spend in
PBKDF passphrase processing. Currently defaults
to 2000. (since 2.8)
</p></dd>
<dt>The members of <code>QCryptoBlockOptionsLUKS</code></dt>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockOpenOptions"></a>Object: <strong>QCryptoBlockOpenOptions</strong></dt>
<dd>
<p>The options that are available for all encryption formats
when opening an existing volume
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt>The members of <code>QCryptoBlockOptionsBase</code></dt>
<dt>The members of <code>QCryptoBlockOptionsQCow</code> when <code>format</code> is <tt>&quot;qcow&quot;</tt></dt>
<dt>The members of <code>QCryptoBlockOptionsLUKS</code> when <code>format</code> is <tt>&quot;luks&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockCreateOptions"></a>Object: <strong>QCryptoBlockCreateOptions</strong></dt>
<dd>
<p>The options that are available for all encryption formats
when initializing a new volume
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt>The members of <code>QCryptoBlockOptionsBase</code></dt>
<dt>The members of <code>QCryptoBlockOptionsQCow</code> when <code>format</code> is <tt>&quot;qcow&quot;</tt></dt>
<dt>The members of <code>QCryptoBlockCreateOptionsLUKS</code> when <code>format</code> is <tt>&quot;luks&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockInfoBase"></a>Object: <strong>QCryptoBlockInfoBase</strong></dt>
<dd>
<p>The common information that applies to all full disk
encryption formats
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>format: QCryptoBlockFormat</code></dt>
<dd><p>the encryption format
</p></dd>
</dl>


<p><b>Since:</b>
2.7
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockInfoLUKSSlot"></a>Object: <strong>QCryptoBlockInfoLUKSSlot</strong></dt>
<dd>
<p>Information about the LUKS block encryption key
slot options
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>active: boolean</code></dt>
<dd><p>whether the key slot is currently in use
</p></dd>
<dt><code>key-offset: int</code></dt>
<dd><p>offset to the key material in bytes
</p></dd>
<dt><code>iters: int</code> (optional)</dt>
<dd><p>number of PBKDF2 iterations for key material
</p></dd>
<dt><code>stripes: int</code> (optional)</dt>
<dd><p>number of stripes for splitting key material
</p></dd>
</dl>


<p><b>Since:</b>
2.7
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockInfoLUKS"></a>Object: <strong>QCryptoBlockInfoLUKS</strong></dt>
<dd>
<p>Information about the LUKS block encryption options
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>cipher-alg: QCryptoCipherAlgorithm</code></dt>
<dd><p>the cipher algorithm for data encryption
</p></dd>
<dt><code>cipher-mode: QCryptoCipherMode</code></dt>
<dd><p>the cipher mode for data encryption
</p></dd>
<dt><code>ivgen-alg: QCryptoIVGenAlgorithm</code></dt>
<dd><p>the initialization vector generator
</p></dd>
<dt><code>ivgen-hash-alg: QCryptoHashAlgorithm</code> (optional)</dt>
<dd><p>the initialization vector generator hash
</p></dd>
<dt><code>hash-alg: QCryptoHashAlgorithm</code></dt>
<dd><p>the master key hash algorithm
</p></dd>
<dt><code>payload-offset: int</code></dt>
<dd><p>offset to the payload data in bytes
</p></dd>
<dt><code>master-key-iters: int</code></dt>
<dd><p>number of PBKDF2 iterations for key material
</p></dd>
<dt><code>uuid: string</code></dt>
<dd><p>unique identifier for the volume
</p></dd>
<dt><code>slots: array of QCryptoBlockInfoLUKSSlot</code></dt>
<dd><p>information about each key slot
</p></dd>
</dl>


<p><b>Since:</b>
2.7
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockInfoQCow"></a>Object: <strong>QCryptoBlockInfoQCow</strong></dt>
<dd>
<p>Information about the QCow block encryption options
</p>

<p><b>Since:</b>
2.7
</p>
</dd></dl>



<dl>
<dt><a name="index-QCryptoBlockInfo"></a>Object: <strong>QCryptoBlockInfo</strong></dt>
<dd>
<p>Information about the block encryption options
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt>The members of <code>QCryptoBlockInfoBase</code></dt>
<dt>The members of <code>QCryptoBlockInfoQCow</code> when <code>format</code> is <tt>&quot;qcow&quot;</tt></dt>
<dt>The members of <code>QCryptoBlockInfoLUKS</code> when <code>format</code> is <tt>&quot;luks&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.7
</p>
</dd></dl>


<a name="Block-devices"></a>
<h3 class="section">1.7 Block devices</h3>

<a name="Block-core-_0028VM-unrelated_0029"></a>
<h4 class="subsection">1.7.1 Block core (VM unrelated)</h4>


<dl>
<dt><a name="index-SnapshotInfo"></a>Object: <strong>SnapshotInfo</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>unique snapshot id
</p></dd>
<dt><code>name: string</code></dt>
<dd><p>user chosen name
</p></dd>
<dt><code>vm-state-size: int</code></dt>
<dd><p>size of the VM state
</p></dd>
<dt><code>date-sec: int</code></dt>
<dd><p>UTC date of the snapshot in seconds
</p></dd>
<dt><code>date-nsec: int</code></dt>
<dd><p>fractional part in nano seconds to be used with date-sec
</p></dd>
<dt><code>vm-clock-sec: int</code></dt>
<dd><p>VM clock relative to boot in seconds
</p></dd>
<dt><code>vm-clock-nsec: int</code></dt>
<dd><p>fractional part in nano seconds to be used with vm-clock-sec
</p></dd>
</dl>


<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-ImageInfoSpecificQCow2EncryptionBase"></a>Object: <strong>ImageInfoSpecificQCow2EncryptionBase</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>format: BlockdevQcow2EncryptionFormat</code></dt>
<dd><p>The encryption format
</p></dd>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-ImageInfoSpecificQCow2Encryption"></a>Object: <strong>ImageInfoSpecificQCow2Encryption</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt>The members of <code>ImageInfoSpecificQCow2EncryptionBase</code></dt>
<dt>The members of <code>QCryptoBlockInfoQCow</code> when <code>format</code> is <tt>&quot;aes&quot;</tt></dt>
<dt>The members of <code>QCryptoBlockInfoLUKS</code> when <code>format</code> is <tt>&quot;luks&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-ImageInfoSpecificQCow2"></a>Object: <strong>ImageInfoSpecificQCow2</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>compat: string</code></dt>
<dd><p>compatibility level
</p></dd>
<dt><code>lazy-refcounts: boolean</code> (optional)</dt>
<dd><p>on or off; only valid for compat &gt;= 1.1
</p></dd>
<dt><code>corrupt: boolean</code> (optional)</dt>
<dd><p>true if the image has been marked corrupt; only valid for
compat &gt;= 1.1 (since 2.2)
</p></dd>
<dt><code>refcount-bits: int</code></dt>
<dd><p>width of a refcount entry in bits (since 2.3)
</p></dd>
<dt><code>encrypt: ImageInfoSpecificQCow2Encryption</code> (optional)</dt>
<dd><p>details about encryption parameters; only set if image
is encrypted (since 2.10)
</p></dd>
</dl>


<p><b>Since:</b>
1.7
</p>
</dd></dl>



<dl>
<dt><a name="index-ImageInfoSpecificVmdk"></a>Object: <strong>ImageInfoSpecificVmdk</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>create-type: string</code></dt>
<dd><p>The create type of VMDK image
</p></dd>
<dt><code>cid: int</code></dt>
<dd><p>Content id of image
</p></dd>
<dt><code>parent-cid: int</code></dt>
<dd><p>Parent VMDK image&rsquo;s cid
</p></dd>
<dt><code>extents: array of ImageInfo</code></dt>
<dd><p>List of extent files
</p></dd>
</dl>


<p><b>Since:</b>
1.7
</p>
</dd></dl>



<dl>
<dt><a name="index-ImageInfoSpecific"></a>Object: <strong>ImageInfoSpecific</strong></dt>
<dd>
<p>A discriminated record of image format specific information structures.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type</code></dt>
<dd><p>One of <tt>&quot;qcow2&quot;</tt>, <tt>&quot;vmdk&quot;</tt>, <tt>&quot;luks&quot;</tt>
</p></dd>
<dt><code>data: ImageInfoSpecificQCow2</code> when <code>type</code> is <tt>&quot;qcow2&quot;</tt></dt>
<dt><code>data: ImageInfoSpecificVmdk</code> when <code>type</code> is <tt>&quot;vmdk&quot;</tt></dt>
<dt><code>data: QCryptoBlockInfoLUKS</code> when <code>type</code> is <tt>&quot;luks&quot;</tt></dt>
</dl>


<p><b>Since:</b>
1.7
</p>
</dd></dl>



<dl>
<dt><a name="index-ImageInfo"></a>Object: <strong>ImageInfo</strong></dt>
<dd>
<p>Information about a QEMU image file
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>filename: string</code></dt>
<dd><p>name of the image file
</p></dd>
<dt><code>format: string</code></dt>
<dd><p>format of the image file
</p></dd>
<dt><code>virtual-size: int</code></dt>
<dd><p>maximum capacity in bytes of the image
</p></dd>
<dt><code>actual-size: int</code> (optional)</dt>
<dd><p>actual size on disk in bytes of the image
</p></dd>
<dt><code>dirty-flag: boolean</code> (optional)</dt>
<dd><p>true if image is not cleanly closed
</p></dd>
<dt><code>cluster-size: int</code> (optional)</dt>
<dd><p>size of a cluster in bytes
</p></dd>
<dt><code>encrypted: boolean</code> (optional)</dt>
<dd><p>true if the image is encrypted
</p></dd>
<dt><code>compressed: boolean</code> (optional)</dt>
<dd><p>true if the image is compressed (Since 1.7)
</p></dd>
<dt><code>backing-filename: string</code> (optional)</dt>
<dd><p>name of the backing file
</p></dd>
<dt><code>full-backing-filename: string</code> (optional)</dt>
<dd><p>full path of the backing file
</p></dd>
<dt><code>backing-filename-format: string</code> (optional)</dt>
<dd><p>the format of the backing file
</p></dd>
<dt><code>snapshots: array of SnapshotInfo</code> (optional)</dt>
<dd><p>list of VM snapshots
</p></dd>
<dt><code>backing-image: ImageInfo</code> (optional)</dt>
<dd><p>info of the backing image (since 1.6)
</p></dd>
<dt><code>format-specific: ImageInfoSpecific</code> (optional)</dt>
<dd><p>structure supplying additional format-specific
information (since 1.7)
</p></dd>
</dl>


<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-ImageCheck"></a>Object: <strong>ImageCheck</strong></dt>
<dd>
<p>Information about a QEMU image file check
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>filename: string</code></dt>
<dd><p>name of the image file checked
</p></dd>
<dt><code>format: string</code></dt>
<dd><p>format of the image file checked
</p></dd>
<dt><code>check-errors: int</code></dt>
<dd><p>number of unexpected errors occurred during check
</p></dd>
<dt><code>image-end-offset: int</code> (optional)</dt>
<dd><p>offset (in bytes) where the image ends, this
field is present if the driver for the image format
supports it
</p></dd>
<dt><code>corruptions: int</code> (optional)</dt>
<dd><p>number of corruptions found during the check if any
</p></dd>
<dt><code>leaks: int</code> (optional)</dt>
<dd><p>number of leaks found during the check if any
</p></dd>
<dt><code>corruptions-fixed: int</code> (optional)</dt>
<dd><p>number of corruptions fixed during the check
if any
</p></dd>
<dt><code>leaks-fixed: int</code> (optional)</dt>
<dd><p>number of leaks fixed during the check if any
</p></dd>
<dt><code>total-clusters: int</code> (optional)</dt>
<dd><p>total number of clusters, this field is present
if the driver for the image format supports it
</p></dd>
<dt><code>allocated-clusters: int</code> (optional)</dt>
<dd><p>total number of allocated clusters, this
field is present if the driver for the image format
supports it
</p></dd>
<dt><code>fragmented-clusters: int</code> (optional)</dt>
<dd><p>total number of fragmented clusters, this
field is present if the driver for the image format
supports it
</p></dd>
<dt><code>compressed-clusters: int</code> (optional)</dt>
<dd><p>total number of compressed clusters, this
field is present if the driver for the image format
supports it
</p></dd>
</dl>


<p><b>Since:</b>
1.4
</p>
</dd></dl>



<dl>
<dt><a name="index-MapEntry"></a>Object: <strong>MapEntry</strong></dt>
<dd>
<p>Mapping information from a virtual block range to a host file range
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>start: int</code></dt>
<dd><p>the start byte of the mapped virtual range
</p></dd>
<dt><code>length: int</code></dt>
<dd><p>the number of bytes of the mapped virtual range
</p></dd>
<dt><code>data: boolean</code></dt>
<dd><p>whether the mapped range has data
</p></dd>
<dt><code>zero: boolean</code></dt>
<dd><p>whether the virtual blocks are zeroed
</p></dd>
<dt><code>depth: int</code></dt>
<dd><p>the depth of the mapping
</p></dd>
<dt><code>offset: int</code> (optional)</dt>
<dd><p>the offset in file that the virtual sectors are mapped to
</p></dd>
<dt><code>filename: string</code> (optional)</dt>
<dd><p>filename that is referred to by <code>offset</code>
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevCacheInfo"></a>Object: <strong>BlockdevCacheInfo</strong></dt>
<dd>
<p>Cache mode information for a block device
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>writeback: boolean</code></dt>
<dd><p>true if writeback mode is enabled
</p></dd>
<dt><code>direct: boolean</code></dt>
<dd><p>true if the host page cache is bypassed (O_DIRECT)
</p></dd>
<dt><code>no-flush: boolean</code></dt>
<dd><p>true if flush requests are ignored for the device
</p></dd>
</dl>


<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockDeviceInfo"></a>Object: <strong>BlockDeviceInfo</strong></dt>
<dd>
<p>Information about the backing device for a block device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>file: string</code></dt>
<dd><p>the filename of the backing device
</p></dd>
<dt><code>node-name: string</code> (optional)</dt>
<dd><p>the name of the block driver node (Since 2.0)
</p></dd>
<dt><code>ro: boolean</code></dt>
<dd><p>true if the backing device was open read-only
</p></dd>
<dt><code>drv: string</code></dt>
<dd><p>the name of the block format used to open the backing device. As of
0.14.0 this can be: &rsquo;blkdebug&rsquo;, &rsquo;bochs&rsquo;, &rsquo;cloop&rsquo;, &rsquo;cow&rsquo;, &rsquo;dmg&rsquo;,
&rsquo;file&rsquo;, &rsquo;file&rsquo;, &rsquo;ftp&rsquo;, &rsquo;ftps&rsquo;, &rsquo;host_cdrom&rsquo;, &rsquo;host_device&rsquo;,
&rsquo;http&rsquo;, &rsquo;https&rsquo;, &rsquo;luks&rsquo;, &rsquo;nbd&rsquo;, &rsquo;parallels&rsquo;, &rsquo;qcow&rsquo;,
&rsquo;qcow2&rsquo;, &rsquo;raw&rsquo;, &rsquo;vdi&rsquo;, &rsquo;vmdk&rsquo;, &rsquo;vpc&rsquo;, &rsquo;vvfat&rsquo;
2.2: &rsquo;archipelago&rsquo; added, &rsquo;cow&rsquo; dropped
2.3: &rsquo;host_floppy&rsquo; deprecated
2.5: &rsquo;host_floppy&rsquo; dropped
2.6: &rsquo;luks&rsquo; added
2.8: &rsquo;replication&rsquo; added, &rsquo;tftp&rsquo; dropped
2.9: &rsquo;archipelago&rsquo; dropped
</p></dd>
<dt><code>backing_file: string</code> (optional)</dt>
<dd><p>the name of the backing file (for copy-on-write)
</p></dd>
<dt><code>backing_file_depth: int</code></dt>
<dd><p>number of files in the backing file chain (since: 1.2)
</p></dd>
<dt><code>encrypted: boolean</code></dt>
<dd><p>true if the backing device is encrypted
</p></dd>
<dt><code>encryption_key_missing: boolean</code></dt>
<dd><p>Deprecated; always false
</p></dd>
<dt><code>detect_zeroes: BlockdevDetectZeroesOptions</code></dt>
<dd><p>detect and optimize zero writes (Since 2.1)
</p></dd>
<dt><code>bps: int</code></dt>
<dd><p>total throughput limit in bytes per second is specified
</p></dd>
<dt><code>bps_rd: int</code></dt>
<dd><p>read throughput limit in bytes per second is specified
</p></dd>
<dt><code>bps_wr: int</code></dt>
<dd><p>write throughput limit in bytes per second is specified
</p></dd>
<dt><code>iops: int</code></dt>
<dd><p>total I/O operations per second is specified
</p></dd>
<dt><code>iops_rd: int</code></dt>
<dd><p>read I/O operations per second is specified
</p></dd>
<dt><code>iops_wr: int</code></dt>
<dd><p>write I/O operations per second is specified
</p></dd>
<dt><code>image: ImageInfo</code></dt>
<dd><p>the info of image used (since: 1.6)
</p></dd>
<dt><code>bps_max: int</code> (optional)</dt>
<dd><p>total throughput limit during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>bps_rd_max: int</code> (optional)</dt>
<dd><p>read throughput limit during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>bps_wr_max: int</code> (optional)</dt>
<dd><p>write throughput limit during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>iops_max: int</code> (optional)</dt>
<dd><p>total I/O operations per second during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>iops_rd_max: int</code> (optional)</dt>
<dd><p>read I/O operations per second during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>iops_wr_max: int</code> (optional)</dt>
<dd><p>write I/O operations per second during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>bps_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>bps_max</code> burst
period, in seconds. (Since 2.6)
</p></dd>
<dt><code>bps_rd_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>bps_rd_max</code>
burst period, in seconds. (Since 2.6)
</p></dd>
<dt><code>bps_wr_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>bps_wr_max</code>
burst period, in seconds. (Since 2.6)
</p></dd>
<dt><code>iops_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>iops</code> burst
period, in seconds. (Since 2.6)
</p></dd>
<dt><code>iops_rd_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>iops_rd_max</code>
burst period, in seconds. (Since 2.6)
</p></dd>
<dt><code>iops_wr_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>iops_wr_max</code>
burst period, in seconds. (Since 2.6)
</p></dd>
<dt><code>iops_size: int</code> (optional)</dt>
<dd><p>an I/O size in bytes (Since 1.7)
</p></dd>
<dt><code>group: string</code> (optional)</dt>
<dd><p>throttle group name (Since 2.4)
</p></dd>
<dt><code>cache: BlockdevCacheInfo</code></dt>
<dd><p>the cache mode used for the block device (since: 2.3)
</p></dd>
<dt><code>write_threshold: int</code></dt>
<dd><p>configured write threshold for the device.
0 if disabled. (Since 2.3)
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockDeviceIoStatus"></a>Enum: <strong>BlockDeviceIoStatus</strong></dt>
<dd>
<p>An enumeration of block device I/O status.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>ok</code></dt>
<dd><p>The last I/O operation has succeeded
</p></dd>
<dt><code>failed</code></dt>
<dd><p>The last I/O operation has failed
</p></dd>
<dt><code>nospace</code></dt>
<dd><p>The last I/O operation has failed due to a no-space condition
</p></dd>
</dl>


<p><b>Since:</b>
1.0
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockDeviceMapEntry"></a>Object: <strong>BlockDeviceMapEntry</strong></dt>
<dd>
<p>Entry in the metadata map of the device (returned by &quot;qemu-img map&quot;)
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>start: int</code></dt>
<dd><p>Offset in the image of the first byte described by this entry
(in bytes)
</p></dd>
<dt><code>length: int</code></dt>
<dd><p>Length of the range described by this entry (in bytes)
</p></dd>
<dt><code>depth: int</code></dt>
<dd><p>Number of layers (0 = top image, 1 = top image&rsquo;s backing file, etc.)
before reaching one for which the range is allocated.  The value is
in the range 0 to the depth of the image chain - 1.
</p></dd>
<dt><code>zero: boolean</code></dt>
<dd><p>the sectors in this range read as zeros
</p></dd>
<dt><code>data: boolean</code></dt>
<dd><p>reading the image will actually read data from a file (in particular,
if <code>offset</code> is present this means that the sectors are not simply
preallocated, but contain actual data in raw format)
</p></dd>
<dt><code>offset: int</code> (optional)</dt>
<dd><p>if present, the image file stores the data for this range in
raw format at the given offset.
</p></dd>
</dl>


<p><b>Since:</b>
1.7
</p>
</dd></dl>



<dl>
<dt><a name="index-DirtyBitmapStatus"></a>Enum: <strong>DirtyBitmapStatus</strong></dt>
<dd>
<p>An enumeration of possible states that a dirty bitmap can report to the user.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>frozen</code></dt>
<dd><p>The bitmap is currently in-use by a backup operation or block job,
and is immutable.
</p></dd>
<dt><code>disabled</code></dt>
<dd><p>The bitmap is currently in-use by an internal operation and is
read-only. It can still be deleted.
</p></dd>
<dt><code>active</code></dt>
<dd><p>The bitmap is actively monitoring for new writes, and can be cleared,
deleted, or used for backup operations.
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockDirtyInfo"></a>Object: <strong>BlockDirtyInfo</strong></dt>
<dd>
<p>Block dirty bitmap information.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code> (optional)</dt>
<dd><p>the name of the dirty bitmap (Since 2.4)
</p></dd>
<dt><code>count: int</code></dt>
<dd><p>number of dirty bytes according to the dirty bitmap
</p></dd>
<dt><code>granularity: int</code></dt>
<dd><p>granularity of the dirty bitmap in bytes (since 1.4)
</p></dd>
<dt><code>status: DirtyBitmapStatus</code></dt>
<dd><p>current status of the dirty bitmap (since 2.4)
</p></dd>
</dl>


<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockInfo"></a>Object: <strong>BlockInfo</strong></dt>
<dd>
<p>Block device information.  This structure describes a virtual device and
the backing device associated with it.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The device name associated with the virtual device.
</p></dd>
<dt><code>qdev: string</code> (optional)</dt>
<dd><p>The qdev ID, or if no ID is assigned, the QOM path of the block
device. (since 2.10)
</p></dd>
<dt><code>type: string</code></dt>
<dd><p>This field is returned only for compatibility reasons, it should
not be used (always returns &rsquo;unknown&rsquo;)
</p></dd>
<dt><code>removable: boolean</code></dt>
<dd><p>True if the device supports removable media.
</p></dd>
<dt><code>locked: boolean</code></dt>
<dd><p>True if the guest has locked this device from having its media
removed
</p></dd>
<dt><code>tray_open: boolean</code> (optional)</dt>
<dd><p>True if the device&rsquo;s tray is open
(only present if it has a tray)
</p></dd>
<dt><code>dirty-bitmaps: array of BlockDirtyInfo</code> (optional)</dt>
<dd><p>dirty bitmaps information (only present if the
driver has one or more dirty bitmaps) (Since 2.0)
</p></dd>
<dt><code>io-status: BlockDeviceIoStatus</code> (optional)</dt>
<dd><p><code>BlockDeviceIoStatus</code>. Only present if the device
supports it and the VM is configured to stop on errors
(supported device models: virtio-blk, IDE, SCSI except
scsi-generic)
</p></dd>
<dt><code>inserted: BlockDeviceInfo</code> (optional)</dt>
<dd><p><code>BlockDeviceInfo</code> describing the device if media is
present
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockMeasureInfo"></a>Object: <strong>BlockMeasureInfo</strong></dt>
<dd>
<p>Image file size calculation information.  This structure describes the size
requirements for creating a new image file.
</p>
<p>The size requirements depend on the new image file format.  File size always
equals virtual disk size for the &rsquo;raw&rsquo; format, even for sparse POSIX files.
Compact formats such as &rsquo;qcow2&rsquo; represent unallocated and zero regions
efficiently so file size may be smaller than virtual disk size.
</p>
<p>The values are upper bounds that are guaranteed to fit the new image file.
Subsequent modification, such as internal snapshot or bitmap creation, may
require additional space and is not covered here.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>required: int</code></dt>
<dd><p>Size required for a new image file, in bytes.
</p></dd>
<dt><code>fully-allocated: int</code></dt>
<dd><p>Image file size, in bytes, once data has been written
to all sectors.
</p></dd>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dblock"></a>Command: <em></em> <strong>query-block</strong></dt>
<dd>
<p>Get a list of BlockInfo for all virtual block devices.
</p>

<p><b>Returns:</b>
a list of <code>BlockInfo</code> describing each virtual block device. Filter
nodes that were created implicitly are skipped over.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-block&quot; }
&lt;- {
      &quot;return&quot;:[
         {
            &quot;io-status&quot;: &quot;ok&quot;,
            &quot;device&quot;:&quot;ide0-hd0&quot;,
            &quot;locked&quot;:false,
            &quot;removable&quot;:false,
            &quot;inserted&quot;:{
               &quot;ro&quot;:false,
               &quot;drv&quot;:&quot;qcow2&quot;,
               &quot;encrypted&quot;:false,
               &quot;file&quot;:&quot;disks/test.qcow2&quot;,
               &quot;backing_file_depth&quot;:1,
               &quot;bps&quot;:1000000,
               &quot;bps_rd&quot;:0,
               &quot;bps_wr&quot;:0,
               &quot;iops&quot;:1000000,
               &quot;iops_rd&quot;:0,
               &quot;iops_wr&quot;:0,
               &quot;bps_max&quot;: 8000000,
               &quot;bps_rd_max&quot;: 0,
               &quot;bps_wr_max&quot;: 0,
               &quot;iops_max&quot;: 0,
               &quot;iops_rd_max&quot;: 0,
               &quot;iops_wr_max&quot;: 0,
               &quot;iops_size&quot;: 0,
               &quot;detect_zeroes&quot;: &quot;on&quot;,
               &quot;write_threshold&quot;: 0,
               &quot;image&quot;:{
                  &quot;filename&quot;:&quot;disks/test.qcow2&quot;,
                  &quot;format&quot;:&quot;qcow2&quot;,
                  &quot;virtual-size&quot;:2048000,
                  &quot;backing_file&quot;:&quot;base.qcow2&quot;,
                  &quot;full-backing-filename&quot;:&quot;disks/base.qcow2&quot;,
                  &quot;backing-filename-format&quot;:&quot;qcow2&quot;,
                  &quot;snapshots&quot;:[
                     {
                        &quot;id&quot;: &quot;1&quot;,
                        &quot;name&quot;: &quot;snapshot1&quot;,
                        &quot;vm-state-size&quot;: 0,
                        &quot;date-sec&quot;: 10000200,
                        &quot;date-nsec&quot;: 12,
                        &quot;vm-clock-sec&quot;: 206,
                        &quot;vm-clock-nsec&quot;: 30
                     }
                  ],
                  &quot;backing-image&quot;:{
                      &quot;filename&quot;:&quot;disks/base.qcow2&quot;,
                      &quot;format&quot;:&quot;qcow2&quot;,
                      &quot;virtual-size&quot;:2048000
                  }
               }
            },
            &quot;qdev&quot;: &quot;ide_disk&quot;,
            &quot;type&quot;:&quot;unknown&quot;
         },
         {
            &quot;io-status&quot;: &quot;ok&quot;,
            &quot;device&quot;:&quot;ide1-cd0&quot;,
            &quot;locked&quot;:false,
            &quot;removable&quot;:true,
            &quot;qdev&quot;: &quot;/machine/unattached/device[23]&quot;,
            &quot;tray_open&quot;: false,
            &quot;type&quot;:&quot;unknown&quot;
         },
         {
            &quot;device&quot;:&quot;floppy0&quot;,
            &quot;locked&quot;:false,
            &quot;removable&quot;:true,
            &quot;qdev&quot;: &quot;/machine/unattached/device[20]&quot;,
            &quot;type&quot;:&quot;unknown&quot;
         },
         {
            &quot;device&quot;:&quot;sd0&quot;,
            &quot;locked&quot;:false,
            &quot;removable&quot;:true,
            &quot;type&quot;:&quot;unknown&quot;
         }
      ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BlockDeviceTimedStats"></a>Object: <strong>BlockDeviceTimedStats</strong></dt>
<dd>
<p>Statistics of a block device during a given interval of time.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>interval_length: int</code></dt>
<dd><p>Interval used for calculating the statistics,
in seconds.
</p></dd>
<dt><code>min_rd_latency_ns: int</code></dt>
<dd><p>Minimum latency of read operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>min_wr_latency_ns: int</code></dt>
<dd><p>Minimum latency of write operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>min_flush_latency_ns: int</code></dt>
<dd><p>Minimum latency of flush operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>max_rd_latency_ns: int</code></dt>
<dd><p>Maximum latency of read operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>max_wr_latency_ns: int</code></dt>
<dd><p>Maximum latency of write operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>max_flush_latency_ns: int</code></dt>
<dd><p>Maximum latency of flush operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>avg_rd_latency_ns: int</code></dt>
<dd><p>Average latency of read operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>avg_wr_latency_ns: int</code></dt>
<dd><p>Average latency of write operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>avg_flush_latency_ns: int</code></dt>
<dd><p>Average latency of flush operations in the
defined interval, in nanoseconds.
</p></dd>
<dt><code>avg_rd_queue_depth: number</code></dt>
<dd><p>Average number of pending read operations
in the defined interval.
</p></dd>
<dt><code>avg_wr_queue_depth: number</code></dt>
<dd><p>Average number of pending write operations
in the defined interval.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockDeviceStats"></a>Object: <strong>BlockDeviceStats</strong></dt>
<dd>
<p>Statistics of a virtual block device or a block backing device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>rd_bytes: int</code></dt>
<dd><p>The number of bytes read by the device.
</p></dd>
<dt><code>wr_bytes: int</code></dt>
<dd><p>The number of bytes written by the device.
</p></dd>
<dt><code>rd_operations: int</code></dt>
<dd><p>The number of read operations performed by the device.
</p></dd>
<dt><code>wr_operations: int</code></dt>
<dd><p>The number of write operations performed by the device.
</p></dd>
<dt><code>flush_operations: int</code></dt>
<dd><p>The number of cache flush operations performed by the
device (since 0.15.0)
</p></dd>
<dt><code>flush_total_time_ns: int</code></dt>
<dd><p>Total time spend on cache flushes in nano-seconds
(since 0.15.0).
</p></dd>
<dt><code>wr_total_time_ns: int</code></dt>
<dd><p>Total time spend on writes in nano-seconds (since 0.15.0).
</p></dd>
<dt><code>rd_total_time_ns: int</code></dt>
<dd><p>Total_time_spend on reads in nano-seconds (since 0.15.0).
</p></dd>
<dt><code>wr_highest_offset: int</code></dt>
<dd><p>The offset after the greatest byte written to the
device.  The intended use of this information is for
growable sparse files (like qcow2) that are used on top
of a physical device.
</p></dd>
<dt><code>rd_merged: int</code></dt>
<dd><p>Number of read requests that have been merged into another
request (Since 2.3).
</p></dd>
<dt><code>wr_merged: int</code></dt>
<dd><p>Number of write requests that have been merged into another
request (Since 2.3).
</p></dd>
<dt><code>idle_time_ns: int</code> (optional)</dt>
<dd><p>Time since the last I/O operation, in
nanoseconds. If the field is absent it means that
there haven&rsquo;t been any operations yet (Since 2.5).
</p></dd>
<dt><code>failed_rd_operations: int</code></dt>
<dd><p>The number of failed read operations
performed by the device (Since 2.5)
</p></dd>
<dt><code>failed_wr_operations: int</code></dt>
<dd><p>The number of failed write operations
performed by the device (Since 2.5)
</p></dd>
<dt><code>failed_flush_operations: int</code></dt>
<dd><p>The number of failed flush operations
performed by the device (Since 2.5)
</p></dd>
<dt><code>invalid_rd_operations: int</code></dt>
<dd><p>The number of invalid read operations
performed by the device (Since 2.5)
</p></dd>
<dt><code>invalid_wr_operations: int</code></dt>
<dd><p>The number of invalid write operations
performed by the device (Since 2.5)
</p></dd>
<dt><code>invalid_flush_operations: int</code></dt>
<dd><p>The number of invalid flush operations
performed by the device (Since 2.5)
</p></dd>
<dt><code>account_invalid: boolean</code></dt>
<dd><p>Whether invalid operations are included in the
last access statistics (Since 2.5)
</p></dd>
<dt><code>account_failed: boolean</code></dt>
<dd><p>Whether failed operations are included in the
latency and last access statistics (Since 2.5)
</p></dd>
<dt><code>timed_stats: array of BlockDeviceTimedStats</code></dt>
<dd><p>Statistics specific to the set of previously defined
intervals of time (Since 2.5)
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockStats"></a>Object: <strong>BlockStats</strong></dt>
<dd>
<p>Statistics of a virtual block device or a block backing device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>If the stats are for a virtual block device, the name
corresponding to the virtual block device.
</p></dd>
<dt><code>node-name: string</code> (optional)</dt>
<dd><p>The node name of the device. (Since 2.3)
</p></dd>
<dt><code>stats: BlockDeviceStats</code></dt>
<dd><p>A <code>BlockDeviceStats</code> for the device.
</p></dd>
<dt><code>parent: BlockStats</code> (optional)</dt>
<dd><p>This describes the file block device if it has one.
Contains recursively the statistics of the underlying
protocol (e.g. the host file for a qcow2 image). If there is
no underlying protocol, this field is omitted
</p></dd>
<dt><code>backing: BlockStats</code> (optional)</dt>
<dd><p>This describes the backing block device if it has one.
(Since 2.0)
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dblockstats"></a>Command: <em></em> <strong>query-blockstats</strong></dt>
<dd>
<p>Query the <code>BlockStats</code> for all virtual block devices.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>query-nodes: boolean</code> (optional)</dt>
<dd><p>If true, the command will query all the block nodes
that have a node name, in a list which will include &quot;parent&quot;
information, but not &quot;backing&quot;.
If false or omitted, the behavior is as before - query all the
device backends, recursively including their &quot;parent&quot; and
&quot;backing&quot;. Filter nodes that were created implicitly are
skipped over in this mode. (Since 2.3)
</p></dd>
</dl>


<p><b>Returns:</b>
A list of <code>BlockStats</code> for each virtual block devices.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-blockstats&quot; }
&lt;- {
      &quot;return&quot;:[
         {
            &quot;device&quot;:&quot;ide0-hd0&quot;,
            &quot;parent&quot;:{
               &quot;stats&quot;:{
                  &quot;wr_highest_offset&quot;:3686448128,
                  &quot;wr_bytes&quot;:9786368,
                  &quot;wr_operations&quot;:751,
                  &quot;rd_bytes&quot;:122567168,
                  &quot;rd_operations&quot;:36772
                  &quot;wr_total_times_ns&quot;:313253456
                  &quot;rd_total_times_ns&quot;:3465673657
                  &quot;flush_total_times_ns&quot;:49653
                  &quot;flush_operations&quot;:61,
                  &quot;rd_merged&quot;:0,
                  &quot;wr_merged&quot;:0,
                  &quot;idle_time_ns&quot;:2953431879,
                  &quot;account_invalid&quot;:true,
                  &quot;account_failed&quot;:false
               }
            },
            &quot;stats&quot;:{
               &quot;wr_highest_offset&quot;:2821110784,
               &quot;wr_bytes&quot;:9786368,
               &quot;wr_operations&quot;:692,
               &quot;rd_bytes&quot;:122739200,
               &quot;rd_operations&quot;:36604
               &quot;flush_operations&quot;:51,
               &quot;wr_total_times_ns&quot;:313253456
               &quot;rd_total_times_ns&quot;:3465673657
               &quot;flush_total_times_ns&quot;:49653,
               &quot;rd_merged&quot;:0,
               &quot;wr_merged&quot;:0,
               &quot;idle_time_ns&quot;:2953431879,
               &quot;account_invalid&quot;:true,
               &quot;account_failed&quot;:false
            }
         },
         {
            &quot;device&quot;:&quot;ide1-cd0&quot;,
            &quot;stats&quot;:{
               &quot;wr_highest_offset&quot;:0,
               &quot;wr_bytes&quot;:0,
               &quot;wr_operations&quot;:0,
               &quot;rd_bytes&quot;:0,
               &quot;rd_operations&quot;:0
               &quot;flush_operations&quot;:0,
               &quot;wr_total_times_ns&quot;:0
               &quot;rd_total_times_ns&quot;:0
               &quot;flush_total_times_ns&quot;:0,
               &quot;rd_merged&quot;:0,
               &quot;wr_merged&quot;:0,
               &quot;account_invalid&quot;:false,
               &quot;account_failed&quot;:false
            }
         },
         {
            &quot;device&quot;:&quot;floppy0&quot;,
            &quot;stats&quot;:{
               &quot;wr_highest_offset&quot;:0,
               &quot;wr_bytes&quot;:0,
               &quot;wr_operations&quot;:0,
               &quot;rd_bytes&quot;:0,
               &quot;rd_operations&quot;:0
               &quot;flush_operations&quot;:0,
               &quot;wr_total_times_ns&quot;:0
               &quot;rd_total_times_ns&quot;:0
               &quot;flush_total_times_ns&quot;:0,
               &quot;rd_merged&quot;:0,
               &quot;wr_merged&quot;:0,
               &quot;account_invalid&quot;:false,
               &quot;account_failed&quot;:false
            }
         },
         {
            &quot;device&quot;:&quot;sd0&quot;,
            &quot;stats&quot;:{
               &quot;wr_highest_offset&quot;:0,
               &quot;wr_bytes&quot;:0,
               &quot;wr_operations&quot;:0,
               &quot;rd_bytes&quot;:0,
               &quot;rd_operations&quot;:0
               &quot;flush_operations&quot;:0,
               &quot;wr_total_times_ns&quot;:0
               &quot;rd_total_times_ns&quot;:0
               &quot;flush_total_times_ns&quot;:0,
               &quot;rd_merged&quot;:0,
               &quot;wr_merged&quot;:0,
               &quot;account_invalid&quot;:false,
               &quot;account_failed&quot;:false
            }
         }
      ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BlockdevOnError"></a>Enum: <strong>BlockdevOnError</strong></dt>
<dd>
<p>An enumeration of possible behaviors for errors on I/O operations.
The exact meaning depends on whether the I/O was initiated by a guest
or by a block job
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>report</code></dt>
<dd><p>for guest operations, report the error to the guest;
for jobs, cancel the job
</p></dd>
<dt><code>ignore</code></dt>
<dd><p>ignore the error, only report a QMP event (BLOCK_IO_ERROR
or BLOCK_JOB_ERROR)
</p></dd>
<dt><code>enospc</code></dt>
<dd><p>same as <code>stop</code> on ENOSPC, same as <code>report</code> otherwise.
</p></dd>
<dt><code>stop</code></dt>
<dd><p>for guest operations, stop the virtual machine;
for jobs, pause the job
</p></dd>
<dt><code>auto</code></dt>
<dd><p>inherit the error handling policy of the backend (since: 2.7)
</p></dd>
</dl>


<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-MirrorSyncMode"></a>Enum: <strong>MirrorSyncMode</strong></dt>
<dd>
<p>An enumeration of possible behaviors for the initial synchronization
phase of storage mirroring.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>top</code></dt>
<dd><p>copies data in the topmost image to the destination
</p></dd>
<dt><code>full</code></dt>
<dd><p>copies data from all images to the destination
</p></dd>
<dt><code>none</code></dt>
<dd><p>only copy data written from now on
</p></dd>
<dt><code>incremental</code></dt>
<dd><p>only copy data described by the dirty bitmap. Since: 2.4
</p></dd>
</dl>


<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockJobType"></a>Enum: <strong>BlockJobType</strong></dt>
<dd>
<p>Type of a block job.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>commit</code></dt>
<dd><p>block commit job type, see &quot;block-commit&quot;
</p></dd>
<dt><code>stream</code></dt>
<dd><p>block stream job type, see &quot;block-stream&quot;
</p></dd>
<dt><code>mirror</code></dt>
<dd><p>drive mirror job type, see &quot;drive-mirror&quot;
</p></dd>
<dt><code>backup</code></dt>
<dd><p>drive backup job type, see &quot;drive-backup&quot;
</p></dd>
</dl>


<p><b>Since:</b>
1.7
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockJobInfo"></a>Object: <strong>BlockJobInfo</strong></dt>
<dd>
<p>Information about a long-running block device operation.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: string</code></dt>
<dd><p>the job type (&rsquo;stream&rsquo; for image streaming)
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>The job identifier. Originally the device name but other
values are allowed since QEMU 2.7
</p></dd>
<dt><code>len: int</code></dt>
<dd><p>the maximum progress value
</p></dd>
<dt><code>busy: boolean</code></dt>
<dd><p>false if the job is known to be in a quiescent state, with
no pending I/O.  Since 1.3.
</p></dd>
<dt><code>paused: boolean</code></dt>
<dd><p>whether the job is paused or, if <code>busy</code> is true, will
pause itself as soon as possible.  Since 1.3.
</p></dd>
<dt><code>offset: int</code></dt>
<dd><p>the current progress value
</p></dd>
<dt><code>speed: int</code></dt>
<dd><p>the rate limit, bytes per second
</p></dd>
<dt><code>io-status: BlockDeviceIoStatus</code></dt>
<dd><p>the status of the job (since 1.3)
</p></dd>
<dt><code>ready: boolean</code></dt>
<dd><p>true if the job may be completed (since 2.2)
</p></dd>
</dl>


<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dblock_002djobs"></a>Command: <em></em> <strong>query-block-jobs</strong></dt>
<dd>
<p>Return information about long-running block device operations.
</p>

<p><b>Returns:</b>
a list of <code>BlockJobInfo</code> for each active block job
</p>
<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-block_005fpasswd"></a>Command: <em></em> <strong>block_passwd</strong></dt>
<dd>
<p>This command sets the password of a block device that has not been open
with a password and requires one.
</p>
<p>This command is now obsolete and will always return an error since 2.10
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>node-name: string</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>password: string</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


</dd></dl>



<dl>
<dt><a name="index-block_005fresize"></a>Command: <em></em> <strong>block_resize</strong></dt>
<dd>
<p>Resize a block image while a guest is running.
</p>
<p>Either <code>device</code> or <code>node-name</code> must be set but not both.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>the name of the device to get the image resized
</p></dd>
<dt><code>node-name: string</code> (optional)</dt>
<dd><p>graph node name to get the image resized (Since 2.0)
</p></dd>
<dt><code>size: int</code></dt>
<dd><p>new image size in bytes
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success
If <code>device</code> is not a valid block device, DeviceNotFound
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;block_resize&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;scratch&quot;, &quot;size&quot;: 1073741824 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-NewImageMode"></a>Enum: <strong>NewImageMode</strong></dt>
<dd>
<p>An enumeration that tells QEMU how to set the backing file path in
a new image file.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>existing</code></dt>
<dd><p>QEMU should look for an existing image file.
</p></dd>
<dt><code>absolute-paths</code></dt>
<dd><p>QEMU should create a new image with absolute paths
for the backing file. If there is no backing file available, the new
image will not be backed either.
</p></dd>
</dl>


<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevSnapshotSync"></a>Object: <strong>BlockdevSnapshotSync</strong></dt>
<dd>
<p>Either <code>device</code> or <code>node-name</code> must be set but not both.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>the name of the device to generate the snapshot from.
</p></dd>
<dt><code>node-name: string</code> (optional)</dt>
<dd><p>graph node name to generate the snapshot from (Since 2.0)
</p></dd>
<dt><code>snapshot-file: string</code></dt>
<dd><p>the target of the new image. If the file exists, or
if it is a device, the snapshot will be created in the existing
file/device. Otherwise, a new file will be created.
</p></dd>
<dt><code>snapshot-node-name: string</code> (optional)</dt>
<dd><p>the graph node name of the new image (Since 2.0)
</p></dd>
<dt><code>format: string</code> (optional)</dt>
<dd><p>the format of the snapshot image, default is &rsquo;qcow2&rsquo;.
</p></dd>
<dt><code>mode: NewImageMode</code> (optional)</dt>
<dd><p>whether and how QEMU should create a new image, default is
&rsquo;absolute-paths&rsquo;.
</p></dd>
</dl>


</dd></dl>



<dl>
<dt><a name="index-BlockdevSnapshot"></a>Object: <strong>BlockdevSnapshot</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>node: string</code></dt>
<dd><p>device or node name that will have a snapshot created.
</p></dd>
<dt><code>overlay: string</code></dt>
<dd><p>reference to the existing block device that will become
the overlay of <code>node</code>, as part of creating the snapshot.
It must not have a current backing file (this can be
achieved by passing &quot;backing&quot;: &quot;&quot; to blockdev-add).
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-DriveBackup"></a>Object: <strong>DriveBackup</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>job-id: string</code> (optional)</dt>
<dd><p>identifier for the newly-created block job. If
omitted, the device name will be used. (Since 2.7)
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>the device name or node-name of a root node which should be copied.
</p></dd>
<dt><code>target: string</code></dt>
<dd><p>the target of the new image. If the file exists, or if it
is a device, the existing file/device will be used as the new
destination.  If it does not exist, a new file will be created.
</p></dd>
<dt><code>format: string</code> (optional)</dt>
<dd><p>the format of the new destination, default is to
probe if <code>mode</code> is &rsquo;existing&rsquo;, else the format of the source
</p></dd>
<dt><code>sync: MirrorSyncMode</code></dt>
<dd><p>what parts of the disk image should be copied to the destination
(all the disk, only the sectors allocated in the topmost image, from a
dirty bitmap, or only new I/O).
</p></dd>
<dt><code>mode: NewImageMode</code> (optional)</dt>
<dd><p>whether and how QEMU should create a new image, default is
&rsquo;absolute-paths&rsquo;.
</p></dd>
<dt><code>speed: int</code> (optional)</dt>
<dd><p>the maximum speed, in bytes per second
</p></dd>
<dt><code>bitmap: string</code> (optional)</dt>
<dd><p>the name of dirty bitmap if sync is &quot;incremental&quot;.
Must be present if sync is &quot;incremental&quot;, must NOT be present
otherwise. (Since 2.4)
</p></dd>
<dt><code>compress: boolean</code> (optional)</dt>
<dd><p>true to compress data, if the target format supports it.
(default: false) (since 2.8)
</p></dd>
<dt><code>on-source-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error on the source,
default &rsquo;report&rsquo;.  &rsquo;stop&rsquo; and &rsquo;enospc&rsquo; can only be used
if the block device supports io-status (see BlockInfo).
</p></dd>
<dt><code>on-target-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error on the target,
default &rsquo;report&rsquo; (no limitations, since this applies to
a different block device than <code>device</code>).
</p></dd>
</dl>


<p><b>Note:</b>
<code>on-source-error</code> and <code>on-target-error</code> only affect background
I/O.  If an error occurs during a guest write request, the device&rsquo;s
rerror/werror actions will be used.
</p>
<p><b>Since:</b>
1.6
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevBackup"></a>Object: <strong>BlockdevBackup</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>job-id: string</code> (optional)</dt>
<dd><p>identifier for the newly-created block job. If
omitted, the device name will be used. (Since 2.7)
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>the device name or node-name of a root node which should be copied.
</p></dd>
<dt><code>target: string</code></dt>
<dd><p>the device name or node-name of the backup target node.
</p></dd>
<dt><code>sync: MirrorSyncMode</code></dt>
<dd><p>what parts of the disk image should be copied to the destination
(all the disk, only the sectors allocated in the topmost image, or
only new I/O).
</p></dd>
<dt><code>speed: int</code> (optional)</dt>
<dd><p>the maximum speed, in bytes per second. The default is 0,
for unlimited.
</p></dd>
<dt><code>compress: boolean</code> (optional)</dt>
<dd><p>true to compress data, if the target format supports it.
(default: false) (since 2.8)
</p></dd>
<dt><code>on-source-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error on the source,
default &rsquo;report&rsquo;.  &rsquo;stop&rsquo; and &rsquo;enospc&rsquo; can only be used
if the block device supports io-status (see BlockInfo).
</p></dd>
<dt><code>on-target-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error on the target,
default &rsquo;report&rsquo; (no limitations, since this applies to
a different block device than <code>device</code>).
</p></dd>
</dl>


<p><b>Note:</b>
<code>on-source-error</code> and <code>on-target-error</code> only affect background
I/O.  If an error occurs during a guest write request, the device&rsquo;s
rerror/werror actions will be used.
</p>
<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-blockdev_002dsnapshot_002dsync"></a>Command: <em></em> <strong>blockdev-snapshot-sync</strong></dt>
<dd>
<p>Generates a synchronous snapshot of a block device.
</p>
<p>For the arguments, see the documentation of BlockdevSnapshotSync.
</p>

<p><b>Returns:</b>
nothing on success
If <code>device</code> is not a valid block device, DeviceNotFound
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-snapshot-sync&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;ide-hd0&quot;,
                    &quot;snapshot-file&quot;:
                    &quot;/some/place/my-image&quot;,
                    &quot;format&quot;: &quot;qcow2&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-blockdev_002dsnapshot"></a>Command: <em></em> <strong>blockdev-snapshot</strong></dt>
<dd>
<p>Generates a snapshot of a block device.
</p>
<p>Create a snapshot, by installing &rsquo;node&rsquo; as the backing image of
&rsquo;overlay&rsquo;. Additionally, if &rsquo;node&rsquo; is associated with a block
device, the block device changes to using &rsquo;overlay&rsquo; as its new active
image.
</p>
<p>For the arguments, see the documentation of BlockdevSnapshot.
</p>

<p><b>Since:</b>
2.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-add&quot;,
     &quot;arguments&quot;: { &quot;driver&quot;: &quot;qcow2&quot;,
                    &quot;node-name&quot;: &quot;node1534&quot;,
                    &quot;file&quot;: { &quot;driver&quot;: &quot;file&quot;,
                              &quot;filename&quot;: &quot;hd1.qcow2&quot; },
                    &quot;backing&quot;: &quot;&quot; } }

&lt;- { &quot;return&quot;: {} }

-&gt; { &quot;execute&quot;: &quot;blockdev-snapshot&quot;,
     &quot;arguments&quot;: { &quot;node&quot;: &quot;ide-hd0&quot;,
                    &quot;overlay&quot;: &quot;node1534&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-change_002dbacking_002dfile"></a>Command: <em></em> <strong>change-backing-file</strong></dt>
<dd>
<p>Change the backing file in the image file metadata.  This does not
cause QEMU to reopen the image file to reparse the backing filename
(it may, however, perform a reopen to change permissions from
r/o -&gt; r/w -&gt; r/o, if needed). The new backing file string is written
into the image file metadata, and the QEMU internal strings are
updated.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>image-node-name: string</code></dt>
<dd><p>The name of the block driver state node of the
image to modify. The &quot;device&quot; argument is used
to verify &quot;image-node-name&quot; is in the chain
described by &quot;device&quot;.
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>The device name or node-name of the root node that owns
image-node-name.
</p></dd>
<dt><code>backing-file: string</code></dt>
<dd><p>The string to write as the backing file.  This
string is not validated, so care should be taken
when specifying the string or the image chain may
not be able to be reopened again.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p>If &quot;device&quot; does not exist or cannot be determined, DeviceNotFound
</p>
<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-block_002dcommit"></a>Command: <em></em> <strong>block-commit</strong></dt>
<dd>
<p>Live commit of data from overlay image nodes into backing nodes - i.e.,
writes data between &rsquo;top&rsquo; and &rsquo;base&rsquo; into &rsquo;base&rsquo;.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>job-id: string</code> (optional)</dt>
<dd><p>identifier for the newly-created block job. If
omitted, the device name will be used. (Since 2.7)
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>the device name or node-name of a root node
</p></dd>
<dt><code>base: string</code> (optional)</dt>
<dd><p>The file name of the backing image to write data into.
If not specified, this is the deepest backing image.
</p></dd>
<dt><code>top: string</code> (optional)</dt>
<dd><p>The file name of the backing image within the image chain,
which contains the topmost data to be committed down. If
not specified, this is the active layer.
</p></dd>
<dt><code>backing-file: string</code> (optional)</dt>
<dd><p>The backing file string to write into the overlay
image of &rsquo;top&rsquo;.  If &rsquo;top&rsquo; is the active layer,
specifying a backing file string is an error. This
filename is not validated.
</p>
<p>If a pathname string is such that it cannot be
resolved by QEMU, that means that subsequent QMP or
HMP commands must use node-names for the image in
question, as filename lookup methods will fail.
</p>
<p>If not specified, QEMU will automatically determine
the backing file string to use, or error out if
there is no obvious choice. Care should be taken
when specifying the string, to specify a valid
filename or protocol.
(Since 2.1)
</p>
<p>If top == base, that is an error.
If top == active, the job will not be completed by itself,
user needs to complete the job with the block-job-complete
command after getting the ready event. (Since 2.0)
</p>
<p>If the base image is smaller than top, then the base image
will be resized to be the same size as top.  If top is
smaller than the base image, the base will not be
truncated.  If you want the base image size to match the
size of the smaller top, you can safely truncate it
yourself once the commit operation successfully completes.
</p></dd>
<dt><code>speed: int</code> (optional)</dt>
<dd><p>the maximum speed, in bytes per second
</p></dd>
<dt><code>filter-node-name: string</code> (optional)</dt>
<dd><p>the node name that should be assigned to the
filter driver that the commit job inserts into the graph
above <code>top</code>. If this option is not given, a node name is
autogenerated. (Since: 2.9)
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If commit or stream is already active on this device, DeviceInUse
If <code>device</code> does not exist, DeviceNotFound
If image commit is not supported by this device, NotSupported
If <code>base</code> or <code>top</code> is invalid, a generic error is returned
If <code>speed</code> is invalid, InvalidParameter
</p>
<p><b>Since:</b>
1.3
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;block-commit&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;virtio0&quot;,
                    &quot;top&quot;: &quot;/tmp/snap1.qcow2&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-drive_002dbackup"></a>Command: <em></em> <strong>drive-backup</strong></dt>
<dd>
<p>Start a point-in-time copy of a block device to a new destination.  The
status of ongoing drive-backup operations can be checked with
query-block-jobs where the BlockJobInfo.type field has the value &rsquo;backup&rsquo;.
The operation can be stopped before it has completed using the
block-job-cancel command.
</p>
<p><b>Arguments:</b> the members of <code>DriveBackup</code>
</p>
<p><b>Returns:</b>
nothing on success
If <code>device</code> is not a valid block device, GenericError
</p>
<p><b>Since:</b>
1.6
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;drive-backup&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;drive0&quot;,
                    &quot;sync&quot;: &quot;full&quot;,
                    &quot;target&quot;: &quot;backup.img&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-blockdev_002dbackup"></a>Command: <em></em> <strong>blockdev-backup</strong></dt>
<dd>
<p>Start a point-in-time copy of a block device to a new destination.  The
status of ongoing blockdev-backup operations can be checked with
query-block-jobs where the BlockJobInfo.type field has the value &rsquo;backup&rsquo;.
The operation can be stopped before it has completed using the
block-job-cancel command.
</p>
<p><b>Arguments:</b> the members of <code>BlockdevBackup</code>
</p>
<p><b>Returns:</b>
nothing on success
If <code>device</code> is not a valid block device, DeviceNotFound
</p>
<p><b>Since:</b>
2.3
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-backup&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;src-id&quot;,
                    &quot;sync&quot;: &quot;full&quot;,
                    &quot;target&quot;: &quot;tgt-id&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-query_002dnamed_002dblock_002dnodes"></a>Command: <em></em> <strong>query-named-block-nodes</strong></dt>
<dd>
<p>Get the named block driver list
</p>

<p><b>Returns:</b>
the list of BlockDeviceInfo
</p>
<p><b>Since:</b>
2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-named-block-nodes&quot; }
&lt;- { &quot;return&quot;: [ { &quot;ro&quot;:false,
                   &quot;drv&quot;:&quot;qcow2&quot;,
                   &quot;encrypted&quot;:false,
                   &quot;file&quot;:&quot;disks/test.qcow2&quot;,
                   &quot;node-name&quot;: &quot;my-node&quot;,
                   &quot;backing_file_depth&quot;:1,
                   &quot;bps&quot;:1000000,
                   &quot;bps_rd&quot;:0,
                   &quot;bps_wr&quot;:0,
                   &quot;iops&quot;:1000000,
                   &quot;iops_rd&quot;:0,
                   &quot;iops_wr&quot;:0,
                   &quot;bps_max&quot;: 8000000,
                   &quot;bps_rd_max&quot;: 0,
                   &quot;bps_wr_max&quot;: 0,
                   &quot;iops_max&quot;: 0,
                   &quot;iops_rd_max&quot;: 0,
                   &quot;iops_wr_max&quot;: 0,
                   &quot;iops_size&quot;: 0,
                   &quot;write_threshold&quot;: 0,
                   &quot;image&quot;:{
                      &quot;filename&quot;:&quot;disks/test.qcow2&quot;,
                      &quot;format&quot;:&quot;qcow2&quot;,
                      &quot;virtual-size&quot;:2048000,
                      &quot;backing_file&quot;:&quot;base.qcow2&quot;,
                      &quot;full-backing-filename&quot;:&quot;disks/base.qcow2&quot;,
                      &quot;backing-filename-format&quot;:&quot;qcow2&quot;,
                      &quot;snapshots&quot;:[
                         {
                            &quot;id&quot;: &quot;1&quot;,
                            &quot;name&quot;: &quot;snapshot1&quot;,
                            &quot;vm-state-size&quot;: 0,
                            &quot;date-sec&quot;: 10000200,
                            &quot;date-nsec&quot;: 12,
                            &quot;vm-clock-sec&quot;: 206,
                            &quot;vm-clock-nsec&quot;: 30
                         }
                      ],
                      &quot;backing-image&quot;:{
                          &quot;filename&quot;:&quot;disks/base.qcow2&quot;,
                          &quot;format&quot;:&quot;qcow2&quot;,
                          &quot;virtual-size&quot;:2048000
                      }
                   } } ] }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-drive_002dmirror"></a>Command: <em></em> <strong>drive-mirror</strong></dt>
<dd>
<p>Start mirroring a block device&rsquo;s writes to a new destination. target
specifies the target of the new image. If the file exists, or if it
is a device, it will be used as the new destination for writes. If
it does not exist, a new file will be created. format specifies the
format of the mirror image, default is to probe if mode=&rsquo;existing&rsquo;,
else the format of the source.
</p>
<p><b>Arguments:</b> the members of <code>DriveMirror</code>
</p>
<p><b>Returns:</b>
nothing on success
If <code>device</code> is not a valid block device, GenericError
</p>
<p><b>Since:</b>
1.3
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;drive-mirror&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;ide-hd0&quot;,
                    &quot;target&quot;: &quot;/some/place/my-image&quot;,
                    &quot;sync&quot;: &quot;full&quot;,
                    &quot;format&quot;: &quot;qcow2&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-DriveMirror"></a>Object: <strong>DriveMirror</strong></dt>
<dd>
<p>A set of parameters describing drive mirror setup.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>job-id: string</code> (optional)</dt>
<dd><p>identifier for the newly-created block job. If
omitted, the device name will be used. (Since 2.7)
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>the device name or node-name of a root node whose writes should be
mirrored.
</p></dd>
<dt><code>target: string</code></dt>
<dd><p>the target of the new image. If the file exists, or if it
is a device, the existing file/device will be used as the new
destination.  If it does not exist, a new file will be created.
</p></dd>
<dt><code>format: string</code> (optional)</dt>
<dd><p>the format of the new destination, default is to
probe if <code>mode</code> is &rsquo;existing&rsquo;, else the format of the source
</p></dd>
<dt><code>node-name: string</code> (optional)</dt>
<dd><p>the new block driver state node name in the graph
(Since 2.1)
</p></dd>
<dt><code>replaces: string</code> (optional)</dt>
<dd><p>with sync=full graph node name to be replaced by the new
image when a whole image copy is done. This can be used to repair
broken Quorum files. (Since 2.1)
</p></dd>
<dt><code>mode: NewImageMode</code> (optional)</dt>
<dd><p>whether and how QEMU should create a new image, default is
&rsquo;absolute-paths&rsquo;.
</p></dd>
<dt><code>speed: int</code> (optional)</dt>
<dd><p>the maximum speed, in bytes per second
</p></dd>
<dt><code>sync: MirrorSyncMode</code></dt>
<dd><p>what parts of the disk image should be copied to the destination
(all the disk, only the sectors allocated in the topmost image, or
only new I/O).
</p></dd>
<dt><code>granularity: int</code> (optional)</dt>
<dd><p>granularity of the dirty bitmap, default is 64K
if the image format doesn&rsquo;t have clusters, 4K if the clusters
are smaller than that, else the cluster size.  Must be a
power of 2 between 512 and 64M (since 1.4).
</p></dd>
<dt><code>buf-size: int</code> (optional)</dt>
<dd><p>maximum amount of data in flight from source to
target (since 1.4).
</p></dd>
<dt><code>on-source-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error on the source,
default &rsquo;report&rsquo;.  &rsquo;stop&rsquo; and &rsquo;enospc&rsquo; can only be used
if the block device supports io-status (see BlockInfo).
</p></dd>
<dt><code>on-target-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error on the target,
default &rsquo;report&rsquo; (no limitations, since this applies to
a different block device than <code>device</code>).
</p></dd>
<dt><code>unmap: boolean</code> (optional)</dt>
<dd><p>Whether to try to unmap target sectors where source has
only zero. If true, and target unallocated sectors will read as zero,
target image sectors will be unmapped; otherwise, zeroes will be
written. Both will result in identical contents.
Default is true. (Since 2.4)
</p></dd>
</dl>


<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockDirtyBitmap"></a>Object: <strong>BlockDirtyBitmap</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>node: string</code></dt>
<dd><p>name of device/node which the bitmap is tracking
</p></dd>
<dt><code>name: string</code></dt>
<dd><p>name of the dirty bitmap
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockDirtyBitmapAdd"></a>Object: <strong>BlockDirtyBitmapAdd</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>node: string</code></dt>
<dd><p>name of device/node which the bitmap is tracking
</p></dd>
<dt><code>name: string</code></dt>
<dd><p>name of the dirty bitmap
</p></dd>
<dt><code>granularity: int</code> (optional)</dt>
<dd><p>the bitmap granularity, default is 64k for
block-dirty-bitmap-add
</p></dd>
<dt><code>persistent: boolean</code> (optional)</dt>
<dd><p>the bitmap is persistent, i.e. it will be saved to the
corresponding block device image file on its close. For now only
Qcow2 disks support persistent bitmaps. Default is false for
block-dirty-bitmap-add. (Since: 2.10)
</p></dd>
<dt><code>autoload: boolean</code> (optional)</dt>
<dd><p>the bitmap will be automatically loaded when the image it is stored
in is opened. This flag may only be specified for persistent
bitmaps. Default is false for block-dirty-bitmap-add. (Since: 2.10)
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-block_002ddirty_002dbitmap_002dadd"></a>Command: <em></em> <strong>block-dirty-bitmap-add</strong></dt>
<dd>
<p>Create a dirty bitmap with a name on the node, and start tracking the writes.
</p>

<p><b>Returns:</b>
nothing on success
If <code>node</code> is not a valid block device or node, DeviceNotFound
If <code>name</code> is already taken, GenericError with an explanation
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;block-dirty-bitmap-add&quot;,
     &quot;arguments&quot;: { &quot;node&quot;: &quot;drive0&quot;, &quot;name&quot;: &quot;bitmap0&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-block_002ddirty_002dbitmap_002dremove"></a>Command: <em></em> <strong>block-dirty-bitmap-remove</strong></dt>
<dd>
<p>Stop write tracking and remove the dirty bitmap that was created
with block-dirty-bitmap-add. If the bitmap is persistent, remove it from its
storage too.
</p>

<p><b>Returns:</b>
nothing on success
If <code>node</code> is not a valid block device or node, DeviceNotFound
If <code>name</code> is not found, GenericError with an explanation
if <code>name</code> is frozen by an operation, GenericError
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;block-dirty-bitmap-remove&quot;,
     &quot;arguments&quot;: { &quot;node&quot;: &quot;drive0&quot;, &quot;name&quot;: &quot;bitmap0&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-block_002ddirty_002dbitmap_002dclear"></a>Command: <em></em> <strong>block-dirty-bitmap-clear</strong></dt>
<dd>
<p>Clear (reset) a dirty bitmap on the device, so that an incremental
backup from this point in time forward will only backup clusters
modified after this clear operation.
</p>

<p><b>Returns:</b>
nothing on success
If <code>node</code> is not a valid block device, DeviceNotFound
If <code>name</code> is not found, GenericError with an explanation
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;block-dirty-bitmap-clear&quot;,
     &quot;arguments&quot;: { &quot;node&quot;: &quot;drive0&quot;, &quot;name&quot;: &quot;bitmap0&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BlockDirtyBitmapSha256"></a>Object: <strong>BlockDirtyBitmapSha256</strong></dt>
<dd>
<p>SHA256 hash of dirty bitmap data
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>sha256: string</code></dt>
<dd><p>ASCII representation of SHA256 bitmap hash
</p></dd>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-x_002ddebug_002dblock_002ddirty_002dbitmap_002dsha256"></a>Command: <em></em> <strong>x-debug-block-dirty-bitmap-sha256</strong></dt>
<dd>
<p>Get bitmap SHA256
</p>

<p><b>Returns:</b>
BlockDirtyBitmapSha256 on success
If <code>node</code> is not a valid block device, DeviceNotFound
If <code>name</code> is not found or if hashing has failed, GenericError with an
explanation
</p>
<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-blockdev_002dmirror"></a>Command: <em></em> <strong>blockdev-mirror</strong></dt>
<dd>
<p>Start mirroring a block device&rsquo;s writes to a new destination.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>job-id: string</code> (optional)</dt>
<dd><p>identifier for the newly-created block job. If
omitted, the device name will be used. (Since 2.7)
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>The device name or node-name of a root node whose writes should be
mirrored.
</p></dd>
<dt><code>target: string</code></dt>
<dd><p>the id or node-name of the block device to mirror to. This mustn&rsquo;t be
attached to guest.
</p></dd>
<dt><code>replaces: string</code> (optional)</dt>
<dd><p>with sync=full graph node name to be replaced by the new
image when a whole image copy is done. This can be used to repair
broken Quorum files.
</p></dd>
<dt><code>speed: int</code> (optional)</dt>
<dd><p>the maximum speed, in bytes per second
</p></dd>
<dt><code>sync: MirrorSyncMode</code></dt>
<dd><p>what parts of the disk image should be copied to the destination
(all the disk, only the sectors allocated in the topmost image, or
only new I/O).
</p></dd>
<dt><code>granularity: int</code> (optional)</dt>
<dd><p>granularity of the dirty bitmap, default is 64K
if the image format doesn&rsquo;t have clusters, 4K if the clusters
are smaller than that, else the cluster size.  Must be a
power of 2 between 512 and 64M
</p></dd>
<dt><code>buf-size: int</code> (optional)</dt>
<dd><p>maximum amount of data in flight from source to
target
</p></dd>
<dt><code>on-source-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error on the source,
default &rsquo;report&rsquo;.  &rsquo;stop&rsquo; and &rsquo;enospc&rsquo; can only be used
if the block device supports io-status (see BlockInfo).
</p></dd>
<dt><code>on-target-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error on the target,
default &rsquo;report&rsquo; (no limitations, since this applies to
a different block device than <code>device</code>).
</p></dd>
<dt><code>filter-node-name: string</code> (optional)</dt>
<dd><p>the node name that should be assigned to the
filter driver that the mirror job inserts into the graph
above <code>device</code>. If this option is not given, a node name is
autogenerated. (Since: 2.9)
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success.
</p>
<p><b>Since:</b>
2.6
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-mirror&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;ide-hd0&quot;,
                    &quot;target&quot;: &quot;target0&quot;,
                    &quot;sync&quot;: &quot;full&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-block_005fset_005fio_005fthrottle"></a>Command: <em></em> <strong>block_set_io_throttle</strong></dt>
<dd>
<p>Change I/O throttle limits for a block drive.
</p>
<p>Since QEMU 2.4, each device with I/O limits is member of a throttle
group.
</p>
<p>If two or more devices are members of the same group, the limits
will apply to the combined I/O of the whole group in a round-robin
fashion. Therefore, setting new I/O limits to a device will affect
the whole group.
</p>
<p>The name of the group can be specified using the &rsquo;group&rsquo; parameter.
If the parameter is unset, it is assumed to be the current group of
that device. If it&rsquo;s not in any group yet, the name of the device
will be used as the name for its group.
</p>
<p>The &rsquo;group&rsquo; parameter can also be used to move a device to a
different group. In this case the limits specified in the parameters
will be applied to the new group only.
</p>
<p>I/O limits can be disabled by setting all of them to 0. In this case
the device will be removed from its group and the rest of its
members will not be affected. The &rsquo;group&rsquo; parameter is ignored.
</p>
<p><b>Arguments:</b> the members of <code>BlockIOThrottle</code>
</p>
<p><b>Returns:</b>
Nothing on success
If <code>device</code> is not a valid block device, DeviceNotFound
</p>
<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;block_set_io_throttle&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;ide0-1-0&quot;,
                    &quot;bps&quot;: 1000000,
                    &quot;bps_rd&quot;: 0,
                    &quot;bps_wr&quot;: 0,
                    &quot;iops&quot;: 0,
                    &quot;iops_rd&quot;: 0,
                    &quot;iops_wr&quot;: 0,
                    &quot;bps_max&quot;: 8000000,
                    &quot;bps_rd_max&quot;: 0,
                    &quot;bps_wr_max&quot;: 0,
                    &quot;iops_max&quot;: 0,
                    &quot;iops_rd_max&quot;: 0,
                    &quot;iops_wr_max&quot;: 0,
                    &quot;bps_max_length&quot;: 60,
                    &quot;iops_size&quot;: 0 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BlockIOThrottle"></a>Object: <strong>BlockIOThrottle</strong></dt>
<dd>
<p>A set of parameters describing block throttling.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>Block device name (deprecated, use <code>id</code> instead)
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>The name or QOM path of the guest device (since: 2.8)
</p></dd>
<dt><code>bps: int</code></dt>
<dd><p>total throughput limit in bytes per second
</p></dd>
<dt><code>bps_rd: int</code></dt>
<dd><p>read throughput limit in bytes per second
</p></dd>
<dt><code>bps_wr: int</code></dt>
<dd><p>write throughput limit in bytes per second
</p></dd>
<dt><code>iops: int</code></dt>
<dd><p>total I/O operations per second
</p></dd>
<dt><code>iops_rd: int</code></dt>
<dd><p>read I/O operations per second
</p></dd>
<dt><code>iops_wr: int</code></dt>
<dd><p>write I/O operations per second
</p></dd>
<dt><code>bps_max: int</code> (optional)</dt>
<dd><p>total throughput limit during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>bps_rd_max: int</code> (optional)</dt>
<dd><p>read throughput limit during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>bps_wr_max: int</code> (optional)</dt>
<dd><p>write throughput limit during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>iops_max: int</code> (optional)</dt>
<dd><p>total I/O operations per second during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>iops_rd_max: int</code> (optional)</dt>
<dd><p>read I/O operations per second during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>iops_wr_max: int</code> (optional)</dt>
<dd><p>write I/O operations per second during bursts,
in bytes (Since 1.7)
</p></dd>
<dt><code>bps_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>bps_max</code> burst
period, in seconds. It must only
be set if <code>bps_max</code> is set as well.
Defaults to 1. (Since 2.6)
</p></dd>
<dt><code>bps_rd_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>bps_rd_max</code>
burst period, in seconds. It must only
be set if <code>bps_rd_max</code> is set as well.
Defaults to 1. (Since 2.6)
</p></dd>
<dt><code>bps_wr_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>bps_wr_max</code>
burst period, in seconds. It must only
be set if <code>bps_wr_max</code> is set as well.
Defaults to 1. (Since 2.6)
</p></dd>
<dt><code>iops_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>iops</code> burst
period, in seconds. It must only
be set if <code>iops_max</code> is set as well.
Defaults to 1. (Since 2.6)
</p></dd>
<dt><code>iops_rd_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>iops_rd_max</code>
burst period, in seconds. It must only
be set if <code>iops_rd_max</code> is set as well.
Defaults to 1. (Since 2.6)
</p></dd>
<dt><code>iops_wr_max_length: int</code> (optional)</dt>
<dd><p>maximum length of the <code>iops_wr_max</code>
burst period, in seconds. It must only
be set if <code>iops_wr_max</code> is set as well.
Defaults to 1. (Since 2.6)
</p></dd>
<dt><code>iops_size: int</code> (optional)</dt>
<dd><p>an I/O size in bytes (Since 1.7)
</p></dd>
<dt><code>group: string</code> (optional)</dt>
<dd><p>throttle group name (Since 2.4)
</p></dd>
</dl>


<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-ThrottleLimits"></a>Object: <strong>ThrottleLimits</strong></dt>
<dd>
<p>Limit parameters for throttling.
Since some limit combinations are illegal, limits should always be set in one
transaction. All fields are optional. When setting limits, if a field is
missing the current value is not changed.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>iops-total: int</code> (optional)</dt>
<dd><p>limit total I/O operations per second
</p></dd>
<dt><code>iops-total-max: int</code> (optional)</dt>
<dd><p>I/O operations burst
</p></dd>
<dt><code>iops-total-max-length: int</code> (optional)</dt>
<dd><p>length of the iops-total-max burst period, in seconds
It must only be set if <code>iops-total-max</code> is set as well.
</p></dd>
<dt><code>iops-read: int</code> (optional)</dt>
<dd><p>limit read operations per second
</p></dd>
<dt><code>iops-read-max: int</code> (optional)</dt>
<dd><p>I/O operations read burst
</p></dd>
<dt><code>iops-read-max-length: int</code> (optional)</dt>
<dd><p>length of the iops-read-max burst period, in seconds
It must only be set if <code>iops-read-max</code> is set as well.
</p></dd>
<dt><code>iops-write: int</code> (optional)</dt>
<dd><p>limit write operations per second
</p></dd>
<dt><code>iops-write-max: int</code> (optional)</dt>
<dd><p>I/O operations write burst
</p></dd>
<dt><code>iops-write-max-length: int</code> (optional)</dt>
<dd><p>length of the iops-write-max burst period, in seconds
It must only be set if <code>iops-write-max</code> is set as well.
</p></dd>
<dt><code>bps-total: int</code> (optional)</dt>
<dd><p>limit total bytes per second
</p></dd>
<dt><code>bps-total-max: int</code> (optional)</dt>
<dd><p>total bytes burst
</p></dd>
<dt><code>bps-total-max-length: int</code> (optional)</dt>
<dd><p>length of the bps-total-max burst period, in seconds.
It must only be set if <code>bps-total-max</code> is set as well.
</p></dd>
<dt><code>bps-read: int</code> (optional)</dt>
<dd><p>limit read bytes per second
</p></dd>
<dt><code>bps-read-max: int</code> (optional)</dt>
<dd><p>total bytes read burst
</p></dd>
<dt><code>bps-read-max-length: int</code> (optional)</dt>
<dd><p>length of the bps-read-max burst period, in seconds
It must only be set if <code>bps-read-max</code> is set as well.
</p></dd>
<dt><code>bps-write: int</code> (optional)</dt>
<dd><p>limit write bytes per second
</p></dd>
<dt><code>bps-write-max: int</code> (optional)</dt>
<dd><p>total bytes write burst
</p></dd>
<dt><code>bps-write-max-length: int</code> (optional)</dt>
<dd><p>length of the bps-write-max burst period, in seconds
It must only be set if <code>bps-write-max</code> is set as well.
</p></dd>
<dt><code>iops-size: int</code> (optional)</dt>
<dd><p>when limiting by iops max size of an I/O in bytes
</p></dd>
</dl>


<p><b>Since:</b>
2.11
</p>
</dd></dl>



<dl>
<dt><a name="index-block_002dstream"></a>Command: <em></em> <strong>block-stream</strong></dt>
<dd>
<p>Copy data from a backing file into a block device.
</p>
<p>The block streaming operation is performed in the background until the entire
backing file has been copied.  This command returns immediately once streaming
has started.  The status of ongoing block streaming operations can be checked
with query-block-jobs.  The operation can be stopped before it has completed
using the block-job-cancel command.
</p>
<p>The node that receives the data is called the top image, can be located in
any part of the chain (but always above the base image; see below) and can be
specified using its device or node name. Earlier qemu versions only allowed
&rsquo;device&rsquo; to name the top level node; presence of the &rsquo;base-node&rsquo; parameter
during introspection can be used as a witness of the enhanced semantics
of &rsquo;device&rsquo;.
</p>
<p>If a base file is specified then sectors are not copied from that base file and
its backing chain.  When streaming completes the image file will have the base
file as its backing file.  This can be used to stream a subset of the backing
file chain instead of flattening the entire image.
</p>
<p>On successful completion the image file is updated to drop the backing file
and the BLOCK_JOB_COMPLETED event is emitted.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>job-id: string</code> (optional)</dt>
<dd><p>identifier for the newly-created block job. If
omitted, the device name will be used. (Since 2.7)
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>the device or node name of the top image
</p></dd>
<dt><code>base: string</code> (optional)</dt>
<dd><p>the common backing file name.
It cannot be set if <code>base-node</code> is also set.
</p></dd>
<dt><code>base-node: string</code> (optional)</dt>
<dd><p>the node name of the backing file.
It cannot be set if <code>base</code> is also set. (Since 2.8)
</p></dd>
<dt><code>backing-file: string</code> (optional)</dt>
<dd><p>The backing file string to write into the top
image. This filename is not validated.
</p>
<p>If a pathname string is such that it cannot be
resolved by QEMU, that means that subsequent QMP or
HMP commands must use node-names for the image in
question, as filename lookup methods will fail.
</p>
<p>If not specified, QEMU will automatically determine
the backing file string to use, or error out if there
is no obvious choice.  Care should be taken when
specifying the string, to specify a valid filename or
protocol.
(Since 2.1)
</p></dd>
<dt><code>speed: int</code> (optional)</dt>
<dd><p>the maximum speed, in bytes per second
</p></dd>
<dt><code>on-error: BlockdevOnError</code> (optional)</dt>
<dd><p>the action to take on an error (default report).
&rsquo;stop&rsquo; and &rsquo;enospc&rsquo; can only be used if the block device
supports io-status (see BlockInfo).  Since 1.3.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success. If <code>device</code> does not exist, DeviceNotFound.
</p>
<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;block-stream&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;virtio0&quot;,
                    &quot;base&quot;: &quot;/tmp/master.qcow2&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-block_002djob_002dset_002dspeed"></a>Command: <em></em> <strong>block-job-set-speed</strong></dt>
<dd>
<p>Set maximum speed for a background block operation.
</p>
<p>This command can only be issued when there is an active block job.
</p>
<p>Throttling can be disabled by setting the speed to 0.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The job identifier. This used to be a device name (hence
the name of the parameter), but since QEMU 2.7 it can have
other values.
</p></dd>
<dt><code>speed: int</code></dt>
<dd><p>the maximum speed, in bytes per second, or 0 for unlimited.
Defaults to 0.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If no background operation is active on this device, DeviceNotActive
</p>
<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-block_002djob_002dcancel"></a>Command: <em></em> <strong>block-job-cancel</strong></dt>
<dd>
<p>Stop an active background block operation.
</p>
<p>This command returns immediately after marking the active background block
operation for cancellation.  It is an error to call this command if no
operation is in progress.
</p>
<p>The operation will cancel as soon as possible and then emit the
BLOCK_JOB_CANCELLED event.  Before that happens the job is still visible when
enumerated using query-block-jobs.
</p>
<p>Note that if you issue &rsquo;block-job-cancel&rsquo; after &rsquo;drive-mirror&rsquo; has indicated
(via the event BLOCK_JOB_READY) that the source and destination are
synchronized, then the event triggered by this command changes to
BLOCK_JOB_COMPLETED, to indicate that the mirroring has ended and the
destination now has a point-in-time copy tied to the time of the cancellation.
</p>
<p>For streaming, the image file retains its backing file unless the streaming
operation happens to complete just as it is being cancelled.  A new streaming
operation can be started at a later time to finish copying all data from the
backing file.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The job identifier. This used to be a device name (hence
the name of the parameter), but since QEMU 2.7 it can have
other values.
</p></dd>
<dt><code>force: boolean</code> (optional)</dt>
<dd><p>whether to allow cancellation of a paused job (default
false).  Since 1.3.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If no background operation is active on this device, DeviceNotActive
</p>
<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-block_002djob_002dpause"></a>Command: <em></em> <strong>block-job-pause</strong></dt>
<dd>
<p>Pause an active background block operation.
</p>
<p>This command returns immediately after marking the active background block
operation for pausing.  It is an error to call this command if no
operation is in progress.  Pausing an already paused job has no cumulative
effect; a single block-job-resume command will resume the job.
</p>
<p>The operation will pause as soon as possible.  No event is emitted when
the operation is actually paused.  Cancelling a paused job automatically
resumes it.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The job identifier. This used to be a device name (hence
the name of the parameter), but since QEMU 2.7 it can have
other values.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If no background operation is active on this device, DeviceNotActive
</p>
<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-block_002djob_002dresume"></a>Command: <em></em> <strong>block-job-resume</strong></dt>
<dd>
<p>Resume an active background block operation.
</p>
<p>This command returns immediately after resuming a paused background block
operation.  It is an error to call this command if no operation is in
progress.  Resuming an already running job is not an error.
</p>
<p>This command also clears the error status of the job.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The job identifier. This used to be a device name (hence
the name of the parameter), but since QEMU 2.7 it can have
other values.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If no background operation is active on this device, DeviceNotActive
</p>
<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-block_002djob_002dcomplete"></a>Command: <em></em> <strong>block-job-complete</strong></dt>
<dd>
<p>Manually trigger completion of an active background block operation.  This
is supported for drive mirroring, where it also switches the device to
write to the target path only.  The ability to complete is signaled with
a BLOCK_JOB_READY event.
</p>
<p>This command completes an active background block operation synchronously.
The ordering of this command&rsquo;s return with the BLOCK_JOB_COMPLETED event
is not defined.  Note that if an I/O error occurs during the processing of
this command: 1) the command itself will fail; 2) the error will be processed
according to the rerror/werror arguments that were specified when starting
the operation.
</p>
<p>A cancelled or paused job cannot be completed.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The job identifier. This used to be a device name (hence
the name of the parameter), but since QEMU 2.7 it can have
other values.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If no background operation is active on this device, DeviceNotActive
</p>
<p><b>Since:</b>
1.3
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevDiscardOptions"></a>Enum: <strong>BlockdevDiscardOptions</strong></dt>
<dd>
<p>Determines how to handle discard requests.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>ignore</code></dt>
<dd><p>Ignore the request
</p></dd>
<dt><code>unmap</code></dt>
<dd><p>Forward as an unmap request
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevDetectZeroesOptions"></a>Enum: <strong>BlockdevDetectZeroesOptions</strong></dt>
<dd>
<p>Describes the operation mode for the automatic conversion of plain
zero writes by the OS to driver specific optimized zero write commands.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>off</code></dt>
<dd><p>Disabled (default)
</p></dd>
<dt><code>on</code></dt>
<dd><p>Enabled
</p></dd>
<dt><code>unmap</code></dt>
<dd><p>Enabled and even try to unmap blocks if possible. This requires
also that <code>BlockdevDiscardOptions</code> is set to unmap for this device.
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevAioOptions"></a>Enum: <strong>BlockdevAioOptions</strong></dt>
<dd>
<p>Selects the AIO backend to handle I/O requests
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>threads</code></dt>
<dd><p>Use qemu&rsquo;s thread pool
</p></dd>
<dt><code>native</code></dt>
<dd><p>Use native AIO backend (only Linux and Windows)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevCacheOptions"></a>Object: <strong>BlockdevCacheOptions</strong></dt>
<dd>
<p>Includes cache-related options for block devices
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>direct: boolean</code> (optional)</dt>
<dd><p>enables use of O_DIRECT (bypass the host page cache;
default: false)
</p></dd>
<dt><code>no-flush: boolean</code> (optional)</dt>
<dd><p>ignore any flush requests for the device (default:
false)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevDriver"></a>Enum: <strong>BlockdevDriver</strong></dt>
<dd>
<p>Drivers that are supported in block device operations.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>vxhs</code></dt>
<dd><p>Since 2.10
</p></dd>
<dt><code>throttle</code></dt>
<dd><p>Since 2.11
</p></dd>
<dt><code>blkdebug</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>blkverify</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>bochs</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>cloop</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>dmg</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>file</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ftp</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ftps</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>gluster</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>host_cdrom</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>host_device</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>http</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>https</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>iscsi</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>luks</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>nbd</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>nfs</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>null-aio</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>null-co</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>parallels</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>qcow</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>qcow2</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>qed</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>quorum</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>raw</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>rbd</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>replication</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>sheepdog</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ssh</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vdi</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vhdx</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vmdk</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vpc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vvfat</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsFile"></a>Object: <strong>BlockdevOptionsFile</strong></dt>
<dd>
<p>Driver specific block device options for the file backend.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>filename: string</code></dt>
<dd><p>path to the image file
</p></dd>
<dt><code>pr-manager: string</code> (optional)</dt>
<dd><p>the id for the object that will handle persistent reservations
for this device (default: none, forward the commands via SG_IO;
since 2.11)
</p></dd>
<dt><code>aio: BlockdevAioOptions</code> (optional)</dt>
<dd><p>AIO backend (default: threads) (since: 2.8)
</p></dd>
<dt><code>locking: OnOffAuto</code> (optional)</dt>
<dd><p>whether to enable file locking. If set to &rsquo;auto&rsquo;, only enable
when Open File Descriptor (OFD) locking API is available
(default: auto, since 2.10)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsNull"></a>Object: <strong>BlockdevOptionsNull</strong></dt>
<dd>
<p>Driver specific block device options for the null backend.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>size: int</code> (optional)</dt>
<dd><p>size of the device in bytes.
</p></dd>
<dt><code>latency-ns: int</code> (optional)</dt>
<dd><p>emulated latency (in nanoseconds) in processing
requests. Default to zero which completes requests immediately.
(Since 2.4)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsVVFAT"></a>Object: <strong>BlockdevOptionsVVFAT</strong></dt>
<dd>
<p>Driver specific block device options for the vvfat protocol.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>dir: string</code></dt>
<dd><p>directory to be exported as FAT image
</p></dd>
<dt><code>fat-type: int</code> (optional)</dt>
<dd><p>FAT type: 12, 16 or 32
</p></dd>
<dt><code>floppy: boolean</code> (optional)</dt>
<dd><p>whether to export a floppy image (true) or
partitioned hard disk (false; default)
</p></dd>
<dt><code>label: string</code> (optional)</dt>
<dd><p>set the volume label, limited to 11 bytes. FAT16 and
FAT32 traditionally have some restrictions on labels, which are
ignored by most operating systems. Defaults to &quot;QEMU VVFAT&quot;.
(since 2.4)
</p></dd>
<dt><code>rw: boolean</code> (optional)</dt>
<dd><p>whether to allow write operations (default: false)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsGenericFormat"></a>Object: <strong>BlockdevOptionsGenericFormat</strong></dt>
<dd>
<p>Driver specific block device options for image format that have no option
besides their data source.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>file: BlockdevRef</code></dt>
<dd><p>reference to or definition of the data source block device
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsLUKS"></a>Object: <strong>BlockdevOptionsLUKS</strong></dt>
<dd>
<p>Driver specific block device options for LUKS.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>key-secret: string</code> (optional)</dt>
<dd><p>the ID of a QCryptoSecret object providing
the decryption key (since 2.6). Mandatory except when
doing a metadata-only probe of the image.
</p></dd>
<dt>The members of <code>BlockdevOptionsGenericFormat</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsGenericCOWFormat"></a>Object: <strong>BlockdevOptionsGenericCOWFormat</strong></dt>
<dd>
<p>Driver specific block device options for image format that have no option
besides their data source and an optional backing file.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>backing: BlockdevRefOrNull</code> (optional)</dt>
<dd><p>reference to or definition of the backing file block
device, null disables the backing file entirely.
Defaults to the backing file stored the image file.
</p></dd>
<dt>The members of <code>BlockdevOptionsGenericFormat</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-Qcow2OverlapCheckMode"></a>Enum: <strong>Qcow2OverlapCheckMode</strong></dt>
<dd>
<p>General overlap check modes.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>none</code></dt>
<dd><p>Do not perform any checks
</p></dd>
<dt><code>constant</code></dt>
<dd><p>Perform only checks which can be done in constant time and
without reading anything from disk
</p></dd>
<dt><code>cached</code></dt>
<dd><p>Perform only checks which can be done without reading anything
from disk
</p></dd>
<dt><code>all</code></dt>
<dd><p>Perform all available overlap checks
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-Qcow2OverlapCheckFlags"></a>Object: <strong>Qcow2OverlapCheckFlags</strong></dt>
<dd>
<p>Structure of flags for each metadata structure. Setting a field to &rsquo;true&rsquo;
makes qemu guard that structure against unintended overwriting. The default
value is chosen according to the template given.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>template: Qcow2OverlapCheckMode</code> (optional)</dt>
<dd><p>Specifies a template mode which can be adjusted using the other
flags, defaults to &rsquo;cached&rsquo;
</p></dd>
<dt><code>main-header: boolean</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>active-l1: boolean</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>active-l2: boolean</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>refcount-table: boolean</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>refcount-block: boolean</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>snapshot-table: boolean</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>inactive-l1: boolean</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
<dt><code>inactive-l2: boolean</code> (optional)</dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-Qcow2OverlapChecks"></a>Alternate: <strong>Qcow2OverlapChecks</strong></dt>
<dd>
<p>Specifies which metadata structures should be guarded against unintended
overwriting.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>flags: Qcow2OverlapCheckFlags</code></dt>
<dd><p>set of flags for separate specification of each metadata structure
type
</p></dd>
<dt><code>mode: Qcow2OverlapCheckMode</code></dt>
<dd><p>named mode which chooses a specific set of flags
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevQcowEncryptionFormat"></a>Enum: <strong>BlockdevQcowEncryptionFormat</strong></dt>
<dd>


<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>aes</code></dt>
<dd><p>AES-CBC with plain64 initialization vectors
</p></dd>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevQcowEncryption"></a>Object: <strong>BlockdevQcowEncryption</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>format: BlockdevQcowEncryptionFormat</code></dt>
<dd><p>Not documented
</p></dd>
<dt>The members of <code>QCryptoBlockOptionsQCow</code> when <code>format</code> is <tt>&quot;aes&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsQcow"></a>Object: <strong>BlockdevOptionsQcow</strong></dt>
<dd>
<p>Driver specific block device options for qcow.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>encrypt: BlockdevQcowEncryption</code> (optional)</dt>
<dd><p>Image decryption options. Mandatory for
encrypted images, except when doing a metadata-only
probe of the image.
</p></dd>
<dt>The members of <code>BlockdevOptionsGenericCOWFormat</code></dt>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevQcow2EncryptionFormat"></a>Enum: <strong>BlockdevQcow2EncryptionFormat</strong></dt>
<dd>


<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>aes</code></dt>
<dd><p>AES-CBC with plain64 initialization venctors
</p></dd>
<dt><code>luks</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevQcow2Encryption"></a>Object: <strong>BlockdevQcow2Encryption</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>format: BlockdevQcow2EncryptionFormat</code></dt>
<dd><p>Not documented
</p></dd>
<dt>The members of <code>QCryptoBlockOptionsQCow</code> when <code>format</code> is <tt>&quot;aes&quot;</tt></dt>
<dt>The members of <code>QCryptoBlockOptionsLUKS</code> when <code>format</code> is <tt>&quot;luks&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsQcow2"></a>Object: <strong>BlockdevOptionsQcow2</strong></dt>
<dd>
<p>Driver specific block device options for qcow2.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>lazy-refcounts: boolean</code> (optional)</dt>
<dd><p>whether to enable the lazy refcounts
feature (default is taken from the image file)
</p></dd>
<dt><code>pass-discard-request: boolean</code> (optional)</dt>
<dd><p>whether discard requests to the qcow2
device should be forwarded to the data source
</p></dd>
<dt><code>pass-discard-snapshot: boolean</code> (optional)</dt>
<dd><p>whether discard requests for the data source
should be issued when a snapshot operation (e.g.
deleting a snapshot) frees clusters in the qcow2 file
</p></dd>
<dt><code>pass-discard-other: boolean</code> (optional)</dt>
<dd><p>whether discard requests for the data source
should be issued on other occasions where a cluster
gets freed
</p></dd>
<dt><code>overlap-check: Qcow2OverlapChecks</code> (optional)</dt>
<dd><p>which overlap checks to perform for writes
to the image, defaults to &rsquo;cached&rsquo; (since 2.2)
</p></dd>
<dt><code>cache-size: int</code> (optional)</dt>
<dd><p>the maximum total size of the L2 table and
refcount block caches in bytes (since 2.2)
</p></dd>
<dt><code>l2-cache-size: int</code> (optional)</dt>
<dd><p>the maximum size of the L2 table cache in
bytes (since 2.2)
</p></dd>
<dt><code>refcount-cache-size: int</code> (optional)</dt>
<dd><p>the maximum size of the refcount block cache
in bytes (since 2.2)
</p></dd>
<dt><code>cache-clean-interval: int</code> (optional)</dt>
<dd><p>clean unused entries in the L2 and refcount
caches. The interval is in seconds. The default value
is 0 and it disables this feature (since 2.5)
</p></dd>
<dt><code>encrypt: BlockdevQcow2Encryption</code> (optional)</dt>
<dd><p>Image decryption options. Mandatory for
encrypted images, except when doing a metadata-only
probe of the image. (since 2.10)
</p></dd>
<dt>The members of <code>BlockdevOptionsGenericCOWFormat</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsSsh"></a>Object: <strong>BlockdevOptionsSsh</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>server: InetSocketAddress</code></dt>
<dd><p>host address
</p></dd>
<dt><code>path: string</code></dt>
<dd><p>path to the image on the host
</p></dd>
<dt><code>user: string</code> (optional)</dt>
<dd><p>user as which to connect, defaults to current
local user name
</p></dd>
</dl>


<p><b>TODO:</b>
Expose the host_key_check option in QMP
</p>
<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlkdebugEvent"></a>Enum: <strong>BlkdebugEvent</strong></dt>
<dd>
<p>Trigger events supported by blkdebug.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>l1_shrink_write_table</code></dt>
<dd><p>write zeros to the l1 table to shrink image.
(since 2.11)
</p></dd>
<dt><code>l1_shrink_free_l2_clusters</code></dt>
<dd><p>discard the l2 tables. (since 2.11)
</p></dd>
<dt><code>cor_write</code></dt>
<dd><p>a write due to copy-on-read (since 2.11)
</p></dd>
<dt><code>l1_update</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l1_grow_alloc_table</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l1_grow_write_table</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l1_grow_activate_table</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l2_load</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l2_update</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l2_update_compressed</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l2_alloc_cow_read</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l2_alloc_write</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>read_aio</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>read_backing_aio</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>read_compressed</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>write_aio</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>write_compressed</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vmstate_load</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vmstate_save</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>cow_read</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>cow_write</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>reftable_load</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>reftable_grow</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>reftable_update</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_load</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_update</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_update_part</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_alloc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_alloc_hookup</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_alloc_write</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_alloc_write_blocks</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_alloc_write_table</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>refblock_alloc_switch_table</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>cluster_alloc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>cluster_alloc_bytes</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>cluster_free</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>flush_to_os</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>flush_to_disk</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pwritev_rmw_head</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pwritev_rmw_after_head</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pwritev_rmw_tail</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pwritev_rmw_after_tail</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pwritev</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pwritev_zero</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pwritev_done</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>empty_image_prepare</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlkdebugInjectErrorOptions"></a>Object: <strong>BlkdebugInjectErrorOptions</strong></dt>
<dd>
<p>Describes a single error injection for blkdebug.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>event: BlkdebugEvent</code></dt>
<dd><p>trigger event
</p></dd>
<dt><code>state: int</code> (optional)</dt>
<dd><p>the state identifier blkdebug needs to be in to
actually trigger the event; defaults to &quot;any&quot;
</p></dd>
<dt><code>errno: int</code> (optional)</dt>
<dd><p>error identifier (errno) to be returned; defaults to
EIO
</p></dd>
<dt><code>sector: int</code> (optional)</dt>
<dd><p>specifies the sector index which has to be affected
in order to actually trigger the event; defaults to &quot;any
sector&quot;
</p></dd>
<dt><code>once: boolean</code> (optional)</dt>
<dd><p>disables further events after this one has been
triggered; defaults to false
</p></dd>
<dt><code>immediately: boolean</code> (optional)</dt>
<dd><p>fail immediately; defaults to false
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlkdebugSetStateOptions"></a>Object: <strong>BlkdebugSetStateOptions</strong></dt>
<dd>
<p>Describes a single state-change event for blkdebug.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>event: BlkdebugEvent</code></dt>
<dd><p>trigger event
</p></dd>
<dt><code>state: int</code> (optional)</dt>
<dd><p>the current state identifier blkdebug needs to be in;
defaults to &quot;any&quot;
</p></dd>
<dt><code>new_state: int</code></dt>
<dd><p>the state identifier blkdebug is supposed to assume if
this event is triggered
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsBlkdebug"></a>Object: <strong>BlockdevOptionsBlkdebug</strong></dt>
<dd>
<p>Driver specific block device options for blkdebug.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>image: BlockdevRef</code></dt>
<dd><p>underlying raw block device (or image file)
</p></dd>
<dt><code>config: string</code> (optional)</dt>
<dd><p>filename of the configuration file
</p></dd>
<dt><code>align: int</code> (optional)</dt>
<dd><p>required alignment for requests in bytes, must be
positive power of 2, or 0 for default
</p></dd>
<dt><code>max-transfer: int</code> (optional)</dt>
<dd><p>maximum size for I/O transfers in bytes, must be
positive multiple of <code>align</code> and of the underlying
file&rsquo;s request alignment (but need not be a power of
2), or 0 for default (since 2.10)
</p></dd>
<dt><code>opt-write-zero: int</code> (optional)</dt>
<dd><p>preferred alignment for write zero requests in bytes,
must be positive multiple of <code>align</code> and of the
underlying file&rsquo;s request alignment (but need not be a
power of 2), or 0 for default (since 2.10)
</p></dd>
<dt><code>max-write-zero: int</code> (optional)</dt>
<dd><p>maximum size for write zero requests in bytes, must be
positive multiple of <code>align</code>, of <code>opt-write-zero</code>, and of
the underlying file&rsquo;s request alignment (but need not
be a power of 2), or 0 for default (since 2.10)
</p></dd>
<dt><code>opt-discard: int</code> (optional)</dt>
<dd><p>preferred alignment for discard requests in bytes, must
be positive multiple of <code>align</code> and of the underlying
file&rsquo;s request alignment (but need not be a power of
2), or 0 for default (since 2.10)
</p></dd>
<dt><code>max-discard: int</code> (optional)</dt>
<dd><p>maximum size for discard requests in bytes, must be
positive multiple of <code>align</code>, of <code>opt-discard</code>, and of
the underlying file&rsquo;s request alignment (but need not
be a power of 2), or 0 for default (since 2.10)
</p></dd>
<dt><code>inject-error: array of BlkdebugInjectErrorOptions</code> (optional)</dt>
<dd><p>array of error injection descriptions
</p></dd>
<dt><code>set-state: array of BlkdebugSetStateOptions</code> (optional)</dt>
<dd><p>array of state-change descriptions
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsBlkverify"></a>Object: <strong>BlockdevOptionsBlkverify</strong></dt>
<dd>
<p>Driver specific block device options for blkverify.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>test: BlockdevRef</code></dt>
<dd><p>block device to be tested
</p></dd>
<dt><code>raw: BlockdevRef</code></dt>
<dd><p>raw image used for verification
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-QuorumReadPattern"></a>Enum: <strong>QuorumReadPattern</strong></dt>
<dd>
<p>An enumeration of quorum read patterns.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>quorum</code></dt>
<dd><p>read all the children and do a quorum vote on reads
</p></dd>
<dt><code>fifo</code></dt>
<dd><p>read only from the first child that has not failed
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsQuorum"></a>Object: <strong>BlockdevOptionsQuorum</strong></dt>
<dd>
<p>Driver specific block device options for Quorum
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>blkverify: boolean</code> (optional)</dt>
<dd><p>true if the driver must print content mismatch
set to false by default
</p></dd>
<dt><code>children: array of BlockdevRef</code></dt>
<dd><p>the children block devices to use
</p></dd>
<dt><code>vote-threshold: int</code></dt>
<dd><p>the vote limit under which a read will fail
</p></dd>
<dt><code>rewrite-corrupted: boolean</code> (optional)</dt>
<dd><p>rewrite corrupted data when quorum is reached
(Since 2.1)
</p></dd>
<dt><code>read-pattern: QuorumReadPattern</code> (optional)</dt>
<dd><p>choose read pattern and set to quorum by default
(Since 2.2)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsGluster"></a>Object: <strong>BlockdevOptionsGluster</strong></dt>
<dd>
<p>Driver specific block device options for Gluster
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>volume: string</code></dt>
<dd><p>name of gluster volume where VM image resides
</p></dd>
<dt><code>path: string</code></dt>
<dd><p>absolute path to image file in gluster volume
</p></dd>
<dt><code>server: array of SocketAddress</code></dt>
<dd><p>gluster servers description
</p></dd>
<dt><code>debug: int</code> (optional)</dt>
<dd><p>libgfapi log level (default &rsquo;4&rsquo; which is Error)
(Since 2.8)
</p></dd>
<dt><code>logfile: string</code> (optional)</dt>
<dd><p>libgfapi log file (default /dev/stderr) (Since 2.8)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-IscsiTransport"></a>Enum: <strong>IscsiTransport</strong></dt>
<dd>
<p>An enumeration of libiscsi transport types
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>tcp</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>iser</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-IscsiHeaderDigest"></a>Enum: <strong>IscsiHeaderDigest</strong></dt>
<dd>
<p>An enumeration of header digests supported by libiscsi
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>crc32c</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>none</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>crc32c-none</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>none-crc32c</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsIscsi"></a>Object: <strong>BlockdevOptionsIscsi</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>transport: IscsiTransport</code></dt>
<dd><p>The iscsi transport type
</p></dd>
<dt><code>portal: string</code></dt>
<dd><p>The address of the iscsi portal
</p></dd>
<dt><code>target: string</code></dt>
<dd><p>The target iqn name
</p></dd>
<dt><code>lun: int</code> (optional)</dt>
<dd><p>LUN to connect to. Defaults to 0.
</p></dd>
<dt><code>user: string</code> (optional)</dt>
<dd><p>User name to log in with. If omitted, no CHAP
authentication is performed.
</p></dd>
<dt><code>password-secret: string</code> (optional)</dt>
<dd><p>The ID of a QCryptoSecret object providing
the password for the login. This option is required if
<code>user</code> is specified.
</p></dd>
<dt><code>initiator-name: string</code> (optional)</dt>
<dd><p>The iqn name we want to identify to the target
as. If this option is not specified, an initiator name is
generated automatically.
</p></dd>
<dt><code>header-digest: IscsiHeaderDigest</code> (optional)</dt>
<dd><p>The desired header digest. Defaults to
none-crc32c.
</p></dd>
<dt><code>timeout: int</code> (optional)</dt>
<dd><p>Timeout in seconds after which a request will
timeout. 0 means no timeout and is the default.
</p></dd>
</dl>
<p>Driver specific block device options for iscsi
</p>
<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsRbd"></a>Object: <strong>BlockdevOptionsRbd</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>pool: string</code></dt>
<dd><p>Ceph pool name.
</p></dd>
<dt><code>image: string</code></dt>
<dd><p>Image name in the Ceph pool.
</p></dd>
<dt><code>conf: string</code> (optional)</dt>
<dd><p>path to Ceph configuration file.  Values
in the configuration file will be overridden by
options specified via QAPI.
</p></dd>
<dt><code>snapshot: string</code> (optional)</dt>
<dd><p>Ceph snapshot name.
</p></dd>
<dt><code>user: string</code> (optional)</dt>
<dd><p>Ceph id name.
</p></dd>
<dt><code>server: array of InetSocketAddressBase</code> (optional)</dt>
<dd><p>Monitor host address and port.  This maps
to the &quot;mon_host&quot; Ceph option.
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsSheepdog"></a>Object: <strong>BlockdevOptionsSheepdog</strong></dt>
<dd>
<p>Driver specific block device options for sheepdog
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>vdi: string</code></dt>
<dd><p>Virtual disk image name
</p></dd>
<dt><code>server: SocketAddress</code></dt>
<dd><p>The Sheepdog server to connect to
</p></dd>
<dt><code>snap-id: int</code> (optional)</dt>
<dd><p>Snapshot ID
</p></dd>
<dt><code>tag: string</code> (optional)</dt>
<dd><p>Snapshot tag name
</p></dd>
</dl>
<p>Only one of <code>snap-id</code> and <code>tag</code> may be present.
</p>
<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-ReplicationMode"></a>Enum: <strong>ReplicationMode</strong></dt>
<dd>
<p>An enumeration of replication modes.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>primary</code></dt>
<dd><p>Primary mode, the vm&rsquo;s state will be sent to secondary QEMU.
</p></dd>
<dt><code>secondary</code></dt>
<dd><p>Secondary mode, receive the vm&rsquo;s state from primary QEMU.
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsReplication"></a>Object: <strong>BlockdevOptionsReplication</strong></dt>
<dd>
<p>Driver specific block device options for replication
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>mode: ReplicationMode</code></dt>
<dd><p>the replication mode
</p></dd>
<dt><code>top-id: string</code> (optional)</dt>
<dd><p>In secondary mode, node name or device ID of the root
node who owns the replication node chain. Must not be given in
primary mode.
</p></dd>
<dt>The members of <code>BlockdevOptionsGenericFormat</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-NFSTransport"></a>Enum: <strong>NFSTransport</strong></dt>
<dd>
<p>An enumeration of NFS transport types
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>inet</code></dt>
<dd><p>TCP transport
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-NFSServer"></a>Object: <strong>NFSServer</strong></dt>
<dd>
<p>Captures the address of the socket
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: NFSTransport</code></dt>
<dd><p>transport type used for NFS (only TCP supported)
</p></dd>
<dt><code>host: string</code></dt>
<dd><p>host address for NFS server
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsNfs"></a>Object: <strong>BlockdevOptionsNfs</strong></dt>
<dd>
<p>Driver specific block device option for NFS
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>server: NFSServer</code></dt>
<dd><p>host address
</p></dd>
<dt><code>path: string</code></dt>
<dd><p>path of the image on the host
</p></dd>
<dt><code>user: int</code> (optional)</dt>
<dd><p>UID value to use when talking to the
server (defaults to 65534 on Windows and getuid()
on unix)
</p></dd>
<dt><code>group: int</code> (optional)</dt>
<dd><p>GID value to use when talking to the
server (defaults to 65534 on Windows and getgid()
in unix)
</p></dd>
<dt><code>tcp-syn-count: int</code> (optional)</dt>
<dd><p>number of SYNs during the session
establishment (defaults to libnfs default)
</p></dd>
<dt><code>readahead-size: int</code> (optional)</dt>
<dd><p>set the readahead size in bytes (defaults
to libnfs default)
</p></dd>
<dt><code>page-cache-size: int</code> (optional)</dt>
<dd><p>set the pagecache size in bytes (defaults
to libnfs default)
</p></dd>
<dt><code>debug: int</code> (optional)</dt>
<dd><p>set the NFS debug level (max 2) (defaults
to libnfs default)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsCurlBase"></a>Object: <strong>BlockdevOptionsCurlBase</strong></dt>
<dd>
<p>Driver specific block device options shared by all protocols supported by the
curl backend.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>url: string</code></dt>
<dd><p>URL of the image file
</p></dd>
<dt><code>readahead: int</code> (optional)</dt>
<dd><p>Size of the read-ahead cache; must be a multiple of
512 (defaults to 256 kB)
</p></dd>
<dt><code>timeout: int</code> (optional)</dt>
<dd><p>Timeout for connections, in seconds (defaults to 5)
</p></dd>
<dt><code>username: string</code> (optional)</dt>
<dd><p>Username for authentication (defaults to none)
</p></dd>
<dt><code>password-secret: string</code> (optional)</dt>
<dd><p>ID of a QCryptoSecret object providing a password
for authentication (defaults to no password)
</p></dd>
<dt><code>proxy-username: string</code> (optional)</dt>
<dd><p>Username for proxy authentication (defaults to none)
</p></dd>
<dt><code>proxy-password-secret: string</code> (optional)</dt>
<dd><p>ID of a QCryptoSecret object providing a password
for proxy authentication (defaults to no password)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsCurlHttp"></a>Object: <strong>BlockdevOptionsCurlHttp</strong></dt>
<dd>
<p>Driver specific block device options for HTTP connections over the curl
backend.  URLs must start with &quot;http://&quot;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>cookie: string</code> (optional)</dt>
<dd><p>List of cookies to set; format is
&quot;name1=content1; name2=content2;&quot; as explained by
CURLOPT_COOKIE(3). Defaults to no cookies.
</p></dd>
<dt><code>cookie-secret: string</code> (optional)</dt>
<dd><p>ID of a QCryptoSecret object providing the cookie data in a
secure way. See <code>cookie</code> for the format. (since 2.10)
</p></dd>
<dt>The members of <code>BlockdevOptionsCurlBase</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsCurlHttps"></a>Object: <strong>BlockdevOptionsCurlHttps</strong></dt>
<dd>
<p>Driver specific block device options for HTTPS connections over the curl
backend.  URLs must start with &quot;https://&quot;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>cookie: string</code> (optional)</dt>
<dd><p>List of cookies to set; format is
&quot;name1=content1; name2=content2;&quot; as explained by
CURLOPT_COOKIE(3). Defaults to no cookies.
</p></dd>
<dt><code>sslverify: boolean</code> (optional)</dt>
<dd><p>Whether to verify the SSL certificate&rsquo;s validity (defaults to
true)
</p></dd>
<dt><code>cookie-secret: string</code> (optional)</dt>
<dd><p>ID of a QCryptoSecret object providing the cookie data in a
secure way. See <code>cookie</code> for the format. (since 2.10)
</p></dd>
<dt>The members of <code>BlockdevOptionsCurlBase</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsCurlFtp"></a>Object: <strong>BlockdevOptionsCurlFtp</strong></dt>
<dd>
<p>Driver specific block device options for FTP connections over the curl
backend.  URLs must start with &quot;ftp://&quot;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt>The members of <code>BlockdevOptionsCurlBase</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsCurlFtps"></a>Object: <strong>BlockdevOptionsCurlFtps</strong></dt>
<dd>
<p>Driver specific block device options for FTPS connections over the curl
backend.  URLs must start with &quot;ftps://&quot;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>sslverify: boolean</code> (optional)</dt>
<dd><p>Whether to verify the SSL certificate&rsquo;s validity (defaults to
true)
</p></dd>
<dt>The members of <code>BlockdevOptionsCurlBase</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsNbd"></a>Object: <strong>BlockdevOptionsNbd</strong></dt>
<dd>
<p>Driver specific block device options for NBD.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>server: SocketAddress</code></dt>
<dd><p>NBD server address
</p></dd>
<dt><code>export: string</code> (optional)</dt>
<dd><p>export name
</p></dd>
<dt><code>tls-creds: string</code> (optional)</dt>
<dd><p>TLS credentials ID
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsRaw"></a>Object: <strong>BlockdevOptionsRaw</strong></dt>
<dd>
<p>Driver specific block device options for the raw driver.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>offset: int</code> (optional)</dt>
<dd><p>position where the block device starts
</p></dd>
<dt><code>size: int</code> (optional)</dt>
<dd><p>the assumed size of the device
</p></dd>
<dt>The members of <code>BlockdevOptionsGenericFormat</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsVxHS"></a>Object: <strong>BlockdevOptionsVxHS</strong></dt>
<dd>
<p>Driver specific block device options for VxHS
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>vdisk-id: string</code></dt>
<dd><p>UUID of VxHS volume
</p></dd>
<dt><code>server: InetSocketAddressBase</code></dt>
<dd><p>vxhs server IP, port
</p></dd>
<dt><code>tls-creds: string</code> (optional)</dt>
<dd><p>TLS credentials ID
</p></dd>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptionsThrottle"></a>Object: <strong>BlockdevOptionsThrottle</strong></dt>
<dd>
<p>Driver specific block device options for the throttle driver
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>throttle-group: string</code></dt>
<dd><p>the name of the throttle-group object to use. It
must already exist.
</p></dd>
<dt><code>file: BlockdevRef</code></dt>
<dd><p>reference to or definition of the data source block device
</p></dd>
</dl>


<p><b>Since:</b>
2.11
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevOptions"></a>Object: <strong>BlockdevOptions</strong></dt>
<dd>
<p>Options for creating a block device.  Many options are available for all
block devices, independent of the block driver:
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>driver: BlockdevDriver</code></dt>
<dd><p>block driver name
</p></dd>
<dt><code>node-name: string</code> (optional)</dt>
<dd><p>the node name of the new node (Since 2.0).
This option is required on the top level of blockdev-add.
</p></dd>
<dt><code>discard: BlockdevDiscardOptions</code> (optional)</dt>
<dd><p>discard-related options (default: ignore)
</p></dd>
<dt><code>cache: BlockdevCacheOptions</code> (optional)</dt>
<dd><p>cache-related options
</p></dd>
<dt><code>read-only: boolean</code> (optional)</dt>
<dd><p>whether the block device should be read-only (default: false).
Note that some block drivers support only read-only access,
either generally or in certain configurations. In this case,
the default value does not work and the option must be
specified explicitly.
</p></dd>
<dt><code>detect-zeroes: BlockdevDetectZeroesOptions</code> (optional)</dt>
<dd><p>detect and optimize zero writes (Since 2.1)
(default: off)
</p></dd>
<dt><code>force-share: boolean</code> (optional)</dt>
<dd><p>force share all permission on added nodes.
Requires read-only=true. (Since 2.10)
</p></dd>
<dt>The members of <code>BlockdevOptionsBlkdebug</code> when <code>driver</code> is <tt>&quot;blkdebug&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsBlkverify</code> when <code>driver</code> is <tt>&quot;blkverify&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericFormat</code> when <code>driver</code> is <tt>&quot;bochs&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericFormat</code> when <code>driver</code> is <tt>&quot;cloop&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericFormat</code> when <code>driver</code> is <tt>&quot;dmg&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsFile</code> when <code>driver</code> is <tt>&quot;file&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsCurlFtp</code> when <code>driver</code> is <tt>&quot;ftp&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsCurlFtps</code> when <code>driver</code> is <tt>&quot;ftps&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGluster</code> when <code>driver</code> is <tt>&quot;gluster&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsFile</code> when <code>driver</code> is <tt>&quot;host_cdrom&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsFile</code> when <code>driver</code> is <tt>&quot;host_device&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsCurlHttp</code> when <code>driver</code> is <tt>&quot;http&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsCurlHttps</code> when <code>driver</code> is <tt>&quot;https&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsIscsi</code> when <code>driver</code> is <tt>&quot;iscsi&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsLUKS</code> when <code>driver</code> is <tt>&quot;luks&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsNbd</code> when <code>driver</code> is <tt>&quot;nbd&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsNfs</code> when <code>driver</code> is <tt>&quot;nfs&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsNull</code> when <code>driver</code> is <tt>&quot;null-aio&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsNull</code> when <code>driver</code> is <tt>&quot;null-co&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericFormat</code> when <code>driver</code> is <tt>&quot;parallels&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsQcow2</code> when <code>driver</code> is <tt>&quot;qcow2&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsQcow</code> when <code>driver</code> is <tt>&quot;qcow&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericCOWFormat</code> when <code>driver</code> is <tt>&quot;qed&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsQuorum</code> when <code>driver</code> is <tt>&quot;quorum&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsRaw</code> when <code>driver</code> is <tt>&quot;raw&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsRbd</code> when <code>driver</code> is <tt>&quot;rbd&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsReplication</code> when <code>driver</code> is <tt>&quot;replication&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsSheepdog</code> when <code>driver</code> is <tt>&quot;sheepdog&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsSsh</code> when <code>driver</code> is <tt>&quot;ssh&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsThrottle</code> when <code>driver</code> is <tt>&quot;throttle&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericFormat</code> when <code>driver</code> is <tt>&quot;vdi&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericFormat</code> when <code>driver</code> is <tt>&quot;vhdx&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericCOWFormat</code> when <code>driver</code> is <tt>&quot;vmdk&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsGenericFormat</code> when <code>driver</code> is <tt>&quot;vpc&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsVVFAT</code> when <code>driver</code> is <tt>&quot;vvfat&quot;</tt></dt>
<dt>The members of <code>BlockdevOptionsVxHS</code> when <code>driver</code> is <tt>&quot;vxhs&quot;</tt></dt>
</dl>
<p>Remaining options are determined by the block driver.
</p>
<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevRef"></a>Alternate: <strong>BlockdevRef</strong></dt>
<dd>
<p>Reference to a block device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>definition: BlockdevOptions</code></dt>
<dd><p>defines a new block device inline
</p></dd>
<dt><code>reference: string</code></dt>
<dd><p>references the ID of an existing block device
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevRefOrNull"></a>Alternate: <strong>BlockdevRefOrNull</strong></dt>
<dd>
<p>Reference to a block device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>definition: BlockdevOptions</code></dt>
<dd><p>defines a new block device inline
</p></dd>
<dt><code>reference: string</code></dt>
<dd><p>references the ID of an existing block device.
An empty string means that no block device should
be referenced.  Deprecated; use null instead.
</p></dd>
<dt><code>null: null</code></dt>
<dd><p>No block device should be referenced (since 2.10)
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-blockdev_002dadd"></a>Command: <em></em> <strong>blockdev-add</strong></dt>
<dd>
<p>Creates a new block device. If the <code>id</code> option is given at the top level, a
BlockBackend will be created; otherwise, <code>node-name</code> is mandatory at the top
level and no BlockBackend will be created.
</p>
<p><b>Arguments:</b> the members of <code>BlockdevOptions</code>
</p>
<p><b>Since:</b>
2.9
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">1.
-&gt; { &quot;execute&quot;: &quot;blockdev-add&quot;,
     &quot;arguments&quot;: {
          &quot;driver&quot;: &quot;qcow2&quot;,
          &quot;node-name&quot;: &quot;test1&quot;,
          &quot;file&quot;: {
              &quot;driver&quot;: &quot;file&quot;,
              &quot;filename&quot;: &quot;test.qcow2&quot;
           }
      }
    }
&lt;- { &quot;return&quot;: {} }

2.
-&gt; { &quot;execute&quot;: &quot;blockdev-add&quot;,
     &quot;arguments&quot;: {
          &quot;driver&quot;: &quot;qcow2&quot;,
          &quot;node-name&quot;: &quot;node0&quot;,
          &quot;discard&quot;: &quot;unmap&quot;,
          &quot;cache&quot;: {
             &quot;direct&quot;: true
           },
           &quot;file&quot;: {
             &quot;driver&quot;: &quot;file&quot;,
             &quot;filename&quot;: &quot;/tmp/test.qcow2&quot;
           },
           &quot;backing&quot;: {
              &quot;driver&quot;: &quot;raw&quot;,
              &quot;file&quot;: {
                 &quot;driver&quot;: &quot;file&quot;,
                 &quot;filename&quot;: &quot;/dev/fdset/4&quot;
               }
           }
       }
     }

&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-blockdev_002ddel"></a>Command: <em></em> <strong>blockdev-del</strong></dt>
<dd>
<p>Deletes a block device that has been added using blockdev-add.
The command will fail if the node is attached to a device or is
otherwise being used.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>node-name: string</code></dt>
<dd><p>Name of the graph node to delete.
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-add&quot;,
     &quot;arguments&quot;: {
          &quot;driver&quot;: &quot;qcow2&quot;,
          &quot;node-name&quot;: &quot;node0&quot;,
          &quot;file&quot;: {
              &quot;driver&quot;: &quot;file&quot;,
              &quot;filename&quot;: &quot;test.qcow2&quot;
          }
     }
   }
&lt;- { &quot;return&quot;: {} }

-&gt; { &quot;execute&quot;: &quot;blockdev-del&quot;,
     &quot;arguments&quot;: { &quot;node-name&quot;: &quot;node0&quot; }
   }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-blockdev_002dopen_002dtray"></a>Command: <em></em> <strong>blockdev-open-tray</strong></dt>
<dd>
<p>Opens a block device&rsquo;s tray. If there is a block driver state tree inserted as
a medium, it will become inaccessible to the guest (but it will remain
associated to the block device, so closing the tray will make it accessible
again).
</p>
<p>If the tray was already open before, this will be a no-op.
</p>
<p>Once the tray opens, a DEVICE_TRAY_MOVED event is emitted. There are cases in
which no such event will be generated, these include:
</p><ul class="no-bullet">
<li>- if the guest has locked the tray, <code>force</code> is false and the guest does not
respond to the eject request
</li><li>- if the BlockBackend denoted by <code>device</code> does not have a guest device attached
to it
</li><li>- if the guest device does not have an actual tray
</li></ul>


<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>Block device name (deprecated, use <code>id</code> instead)
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>The name or QOM path of the guest device (since: 2.8)
</p></dd>
<dt><code>force: boolean</code> (optional)</dt>
<dd><p>if false (the default), an eject request will be sent to
the guest if it has locked the tray (and the tray will not be opened
immediately); if true, the tray will be opened regardless of whether
it is locked
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-open-tray&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;ide0-1-0&quot; } }

&lt;- { &quot;timestamp&quot;: { &quot;seconds&quot;: 1418751016,
                    &quot;microseconds&quot;: 716996 },
     &quot;event&quot;: &quot;DEVICE_TRAY_MOVED&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;ide1-cd0&quot;,
               &quot;id&quot;: &quot;ide0-1-0&quot;,
               &quot;tray-open&quot;: true } }

&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-blockdev_002dclose_002dtray"></a>Command: <em></em> <strong>blockdev-close-tray</strong></dt>
<dd>
<p>Closes a block device&rsquo;s tray. If there is a block driver state tree associated
with the block device (which is currently ejected), that tree will be loaded
as the medium.
</p>
<p>If the tray was already closed before, this will be a no-op.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>Block device name (deprecated, use <code>id</code> instead)
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>The name or QOM path of the guest device (since: 2.8)
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-close-tray&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;ide0-1-0&quot; } }

&lt;- { &quot;timestamp&quot;: { &quot;seconds&quot;: 1418751345,
                    &quot;microseconds&quot;: 272147 },
     &quot;event&quot;: &quot;DEVICE_TRAY_MOVED&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;ide1-cd0&quot;,
               &quot;id&quot;: &quot;ide0-1-0&quot;,
               &quot;tray-open&quot;: false } }

&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-x_002dblockdev_002dremove_002dmedium"></a>Command: <em></em> <strong>x-blockdev-remove-medium</strong></dt>
<dd>
<p>Removes a medium (a block driver state tree) from a block device. That block
device&rsquo;s tray must currently be open (unless there is no attached guest
device).
</p>
<p>If the tray is open and there is no medium inserted, this will be a no-op.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>Block device name (deprecated, use <code>id</code> instead)
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>The name or QOM path of the guest device (since: 2.8)
</p></dd>
</dl>


<p><b>Note:</b>
This command is still a work in progress and is considered experimental.
Stay away from it unless you want to help with its development.
</p>
<p><b>Since:</b>
2.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;x-blockdev-remove-medium&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;ide0-1-0&quot; } }

&lt;- { &quot;error&quot;: { &quot;class&quot;: &quot;GenericError&quot;,
                &quot;desc&quot;: &quot;Tray of device 'ide0-1-0' is not open&quot; } }

-&gt; { &quot;execute&quot;: &quot;blockdev-open-tray&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;ide0-1-0&quot; } }

&lt;- { &quot;timestamp&quot;: { &quot;seconds&quot;: 1418751627,
                    &quot;microseconds&quot;: 549958 },
     &quot;event&quot;: &quot;DEVICE_TRAY_MOVED&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;ide1-cd0&quot;,
               &quot;id&quot;: &quot;ide0-1-0&quot;,
               &quot;tray-open&quot;: true } }

&lt;- { &quot;return&quot;: {} }

-&gt; { &quot;execute&quot;: &quot;x-blockdev-remove-medium&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;ide0-1-0&quot; } }

&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-x_002dblockdev_002dinsert_002dmedium"></a>Command: <em></em> <strong>x-blockdev-insert-medium</strong></dt>
<dd>
<p>Inserts a medium (a block driver state tree) into a block device. That block
device&rsquo;s tray must currently be open (unless there is no attached guest
device) and there must be no medium inserted already.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>Block device name (deprecated, use <code>id</code> instead)
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>The name or QOM path of the guest device (since: 2.8)
</p></dd>
<dt><code>node-name: string</code></dt>
<dd><p>name of a node in the block driver state graph
</p></dd>
</dl>


<p><b>Note:</b>
This command is still a work in progress and is considered experimental.
Stay away from it unless you want to help with its development.
</p>
<p><b>Since:</b>
2.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-add&quot;,
     &quot;arguments&quot;: {
         &quot;node-name&quot;: &quot;node0&quot;,
         &quot;driver&quot;: &quot;raw&quot;,
         &quot;file&quot;: { &quot;driver&quot;: &quot;file&quot;,
                   &quot;filename&quot;: &quot;fedora.iso&quot; } } }
&lt;- { &quot;return&quot;: {} }

-&gt; { &quot;execute&quot;: &quot;x-blockdev-insert-medium&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;ide0-1-0&quot;,
                    &quot;node-name&quot;: &quot;node0&quot; } }

&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BlockdevChangeReadOnlyMode"></a>Enum: <strong>BlockdevChangeReadOnlyMode</strong></dt>
<dd>
<p>Specifies the new read-only mode of a block device subject to the
<code>blockdev-change-medium</code> command.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>retain</code></dt>
<dd><p>Retains the current read-only mode
</p></dd>
<dt><code>read-only</code></dt>
<dd><p>Makes the device read-only
</p></dd>
<dt><code>read-write</code></dt>
<dd><p>Makes the device writable
</p></dd>
</dl>


<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-blockdev_002dchange_002dmedium"></a>Command: <em></em> <strong>blockdev-change-medium</strong></dt>
<dd>
<p>Changes the medium inserted into a block device by ejecting the current medium
and loading a new image file which is inserted as the new medium (this command
combines blockdev-open-tray, x-blockdev-remove-medium,
x-blockdev-insert-medium and blockdev-close-tray).
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>Block device name (deprecated, use <code>id</code> instead)
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>The name or QOM path of the guest device
(since: 2.8)
</p></dd>
<dt><code>filename: string</code></dt>
<dd><p>filename of the new image to be loaded
</p></dd>
<dt><code>format: string</code> (optional)</dt>
<dd><p>format to open the new image with (defaults to
the probed format)
</p></dd>
<dt><code>read-only-mode: BlockdevChangeReadOnlyMode</code> (optional)</dt>
<dd><p>change the read-only mode of the device; defaults
to &rsquo;retain&rsquo;
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
<p><b>Examples:</b>
</p><div class="example">
<pre class="example">1. Change a removable medium

-&gt; { &quot;execute&quot;: &quot;blockdev-change-medium&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;ide0-1-0&quot;,
                    &quot;filename&quot;: &quot;/srv/images/Fedora-12-x86_64-DVD.iso&quot;,
                    &quot;format&quot;: &quot;raw&quot; } }
&lt;- { &quot;return&quot;: {} }

2. Load a read-only medium into a writable drive

-&gt; { &quot;execute&quot;: &quot;blockdev-change-medium&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;floppyA&quot;,
                    &quot;filename&quot;: &quot;/srv/images/ro.img&quot;,
                    &quot;format&quot;: &quot;raw&quot;,
                    &quot;read-only-mode&quot;: &quot;retain&quot; } }

&lt;- { &quot;error&quot;:
     { &quot;class&quot;: &quot;GenericError&quot;,
       &quot;desc&quot;: &quot;Could not open '/srv/images/ro.img': Permission denied&quot; } }

-&gt; { &quot;execute&quot;: &quot;blockdev-change-medium&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;floppyA&quot;,
                    &quot;filename&quot;: &quot;/srv/images/ro.img&quot;,
                    &quot;format&quot;: &quot;raw&quot;,
                    &quot;read-only-mode&quot;: &quot;read-only&quot; } }

&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BlockErrorAction"></a>Enum: <strong>BlockErrorAction</strong></dt>
<dd>
<p>An enumeration of action that has been taken when a DISK I/O occurs
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>ignore</code></dt>
<dd><p>error has been ignored
</p></dd>
<dt><code>report</code></dt>
<dd><p>error has been reported to the device
</p></dd>
<dt><code>stop</code></dt>
<dd><p>error caused VM to be stopped
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-BLOCK_005fIMAGE_005fCORRUPTED"></a>Event: <em></em> <strong>BLOCK_IMAGE_CORRUPTED</strong></dt>
<dd>
<p>Emitted when a disk image is being marked corrupt. The image can be
identified by its device or node name. The &rsquo;device&rsquo; field is always
present for compatibility reasons, but it can be empty (&quot;&quot;) if the
image does not have a device name associated.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>device name. This is always present for compatibility
reasons, but it can be empty (&quot;&quot;) if the image does not
have a device name associated.
</p></dd>
<dt><code>node-name: string</code> (optional)</dt>
<dd><p>node name (Since: 2.4)
</p></dd>
<dt><code>msg: string</code></dt>
<dd><p>informative message for human consumption, such as the kind of
corruption being detected. It should not be parsed by machine as it is
not guaranteed to be stable
</p></dd>
<dt><code>offset: int</code> (optional)</dt>
<dd><p>if the corruption resulted from an image access, this is
the host&rsquo;s access offset into the image
</p></dd>
<dt><code>size: int</code> (optional)</dt>
<dd><p>if the corruption resulted from an image access, this is
the access size
</p></dd>
<dt><code>fatal: boolean</code></dt>
<dd><p>if set, the image is marked corrupt and therefore unusable after this
event and must be repaired (Since 2.2; before, every
BLOCK_IMAGE_CORRUPTED event was fatal)
</p></dd>
</dl>


<p><b>Note:</b>
If action is &quot;stop&quot;, a STOP event will eventually follow the
BLOCK_IO_ERROR event.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;BLOCK_IMAGE_CORRUPTED&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;ide0-hd0&quot;, &quot;node-name&quot;: &quot;node0&quot;,
               &quot;msg&quot;: &quot;Prevented active L1 table overwrite&quot;, &quot;offset&quot;: 196608,
               &quot;size&quot;: 65536 },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1378126126, &quot;microseconds&quot;: 966463 } }
</pre></div>


<p><b>Since:</b>
1.7
</p>
</dd></dl>



<dl>
<dt><a name="index-BLOCK_005fIO_005fERROR"></a>Event: <em></em> <strong>BLOCK_IO_ERROR</strong></dt>
<dd>
<p>Emitted when a disk I/O error occurs
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>device name. This is always present for compatibility
reasons, but it can be empty (&quot;&quot;) if the image does not
have a device name associated.
</p></dd>
<dt><code>node-name: string</code></dt>
<dd><p>node name. Note that errors may be reported for the root node
that is directly attached to a guest device rather than for the
node where the error occurred. (Since: 2.8)
</p></dd>
<dt><code>operation: IoOperationType</code></dt>
<dd><p>I/O operation
</p></dd>
<dt><code>action: BlockErrorAction</code></dt>
<dd><p>action that has been taken
</p></dd>
<dt><code>nospace: boolean</code> (optional)</dt>
<dd><p>true if I/O error was caused due to a no-space
condition. This key is only present if query-block&rsquo;s
io-status is present, please see query-block documentation
for more information (since: 2.2)
</p></dd>
<dt><code>reason: string</code></dt>
<dd><p>human readable string describing the error cause.
(This field is a debugging aid for humans, it should not
be parsed by applications) (since: 2.2)
</p></dd>
</dl>


<p><b>Note:</b>
If action is &quot;stop&quot;, a STOP event will eventually follow the
BLOCK_IO_ERROR event
</p>
<p><b>Since:</b>
0.13.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;BLOCK_IO_ERROR&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;ide0-hd1&quot;,
               &quot;node-name&quot;: &quot;#block212&quot;,
               &quot;operation&quot;: &quot;write&quot;,
               &quot;action&quot;: &quot;stop&quot; },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1265044230, &quot;microseconds&quot;: 450486 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BLOCK_005fJOB_005fCOMPLETED"></a>Event: <em></em> <strong>BLOCK_JOB_COMPLETED</strong></dt>
<dd>
<p>Emitted when a block job has completed
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>type: BlockJobType</code></dt>
<dd><p>job type
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>The job identifier. Originally the device name but other
values are allowed since QEMU 2.7
</p></dd>
<dt><code>len: int</code></dt>
<dd><p>maximum progress value
</p></dd>
<dt><code>offset: int</code></dt>
<dd><p>current progress value. On success this is equal to len.
On failure this is less than len
</p></dd>
<dt><code>speed: int</code></dt>
<dd><p>rate limit, bytes per second
</p></dd>
<dt><code>error: string</code> (optional)</dt>
<dd><p>error message. Only present on failure. This field
contains a human-readable error message. There are no semantics
other than that streaming has failed and clients should not try to
interpret the error string
</p></dd>
</dl>


<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;BLOCK_JOB_COMPLETED&quot;,
     &quot;data&quot;: { &quot;type&quot;: &quot;stream&quot;, &quot;device&quot;: &quot;virtio-disk0&quot;,
               &quot;len&quot;: 10737418240, &quot;offset&quot;: 10737418240,
               &quot;speed&quot;: 0 },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1267061043, &quot;microseconds&quot;: 959568 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BLOCK_005fJOB_005fCANCELLED"></a>Event: <em></em> <strong>BLOCK_JOB_CANCELLED</strong></dt>
<dd>
<p>Emitted when a block job has been cancelled
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>type: BlockJobType</code></dt>
<dd><p>job type
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>The job identifier. Originally the device name but other
values are allowed since QEMU 2.7
</p></dd>
<dt><code>len: int</code></dt>
<dd><p>maximum progress value
</p></dd>
<dt><code>offset: int</code></dt>
<dd><p>current progress value. On success this is equal to len.
On failure this is less than len
</p></dd>
<dt><code>speed: int</code></dt>
<dd><p>rate limit, bytes per second
</p></dd>
</dl>


<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;BLOCK_JOB_CANCELLED&quot;,
     &quot;data&quot;: { &quot;type&quot;: &quot;stream&quot;, &quot;device&quot;: &quot;virtio-disk0&quot;,
               &quot;len&quot;: 10737418240, &quot;offset&quot;: 134217728,
               &quot;speed&quot;: 0 },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1267061043, &quot;microseconds&quot;: 959568 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BLOCK_005fJOB_005fERROR"></a>Event: <em></em> <strong>BLOCK_JOB_ERROR</strong></dt>
<dd>
<p>Emitted when a block job encounters an error
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The job identifier. Originally the device name but other
values are allowed since QEMU 2.7
</p></dd>
<dt><code>operation: IoOperationType</code></dt>
<dd><p>I/O operation
</p></dd>
<dt><code>action: BlockErrorAction</code></dt>
<dd><p>action that has been taken
</p></dd>
</dl>


<p><b>Since:</b>
1.3
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;BLOCK_JOB_ERROR&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;ide0-hd1&quot;,
               &quot;operation&quot;: &quot;write&quot;,
               &quot;action&quot;: &quot;stop&quot; },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1265044230, &quot;microseconds&quot;: 450486 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BLOCK_005fJOB_005fREADY"></a>Event: <em></em> <strong>BLOCK_JOB_READY</strong></dt>
<dd>
<p>Emitted when a block job is ready to complete
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>type: BlockJobType</code></dt>
<dd><p>job type
</p></dd>
<dt><code>device: string</code></dt>
<dd><p>The job identifier. Originally the device name but other
values are allowed since QEMU 2.7
</p></dd>
<dt><code>len: int</code></dt>
<dd><p>maximum progress value
</p></dd>
<dt><code>offset: int</code></dt>
<dd><p>current progress value. On success this is equal to len.
On failure this is less than len
</p></dd>
<dt><code>speed: int</code></dt>
<dd><p>rate limit, bytes per second
</p></dd>
</dl>


<p><b>Note:</b>
The &quot;ready to complete&quot; status is always reset by a <code>BLOCK_JOB_ERROR</code>
event
</p>
<p><b>Since:</b>
1.3
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;BLOCK_JOB_READY&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;drive0&quot;, &quot;type&quot;: &quot;mirror&quot;, &quot;speed&quot;: 0,
               &quot;len&quot;: 2097152, &quot;offset&quot;: 2097152 }
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1265044230, &quot;microseconds&quot;: 450486 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-PreallocMode"></a>Enum: <strong>PreallocMode</strong></dt>
<dd>
<p>Preallocation mode of QEMU image file
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>off</code></dt>
<dd><p>no preallocation
</p></dd>
<dt><code>metadata</code></dt>
<dd><p>preallocate only for metadata
</p></dd>
<dt><code>falloc</code></dt>
<dd><p>like <code>full</code> preallocation but allocate disk space by
posix_fallocate() rather than writing zeros.
</p></dd>
<dt><code>full</code></dt>
<dd><p>preallocate all data by writing zeros to device to ensure disk
space is really available. <code>full</code> preallocation also sets up
metadata correctly.
</p></dd>
</dl>


<p><b>Since:</b>
2.2
</p>
</dd></dl>



<dl>
<dt><a name="index-BLOCK_005fWRITE_005fTHRESHOLD"></a>Event: <em></em> <strong>BLOCK_WRITE_THRESHOLD</strong></dt>
<dd>
<p>Emitted when writes on block device reaches or exceeds the
configured write threshold. For thin-provisioned devices, this
means the device should be extended to avoid pausing for
disk exhaustion.
The event is one shot. Once triggered, it needs to be
re-registered with another block-set-write-threshold command.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>node-name: string</code></dt>
<dd><p>graph node name on which the threshold was exceeded.
</p></dd>
<dt><code>amount-exceeded: int</code></dt>
<dd><p>amount of data which exceeded the threshold, in bytes.
</p></dd>
<dt><code>write-threshold: int</code></dt>
<dd><p>last configured threshold, in bytes.
</p></dd>
</dl>


<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-block_002dset_002dwrite_002dthreshold"></a>Command: <em></em> <strong>block-set-write-threshold</strong></dt>
<dd>
<p>Change the write threshold for a block drive. An event will be
delivered if a write to this block drive crosses the configured
threshold.  The threshold is an offset, thus must be
non-negative. Default is no write threshold. Setting the threshold
to zero disables it.
</p>
<p>This is useful to transparently resize thin-provisioned drives without
the guest OS noticing.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>node-name: string</code></dt>
<dd><p>graph node name on which the threshold must be set.
</p></dd>
<dt><code>write-threshold: int</code></dt>
<dd><p>configured threshold for the block device, bytes.
Use 0 to disable the threshold.
</p></dd>
</dl>


<p><b>Since:</b>
2.3
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;block-set-write-threshold&quot;,
     &quot;arguments&quot;: { &quot;node-name&quot;: &quot;mydev&quot;,
                    &quot;write-threshold&quot;: 17179869184 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-x_002dblockdev_002dchange"></a>Command: <em></em> <strong>x-blockdev-change</strong></dt>
<dd>
<p>Dynamically reconfigure the block driver state graph. It can be used
to add, remove, insert or replace a graph node. Currently only the
Quorum driver implements this feature to add or remove its child. This
is useful to fix a broken quorum child.
</p>
<p>If <code>node</code> is specified, it will be inserted under <code>parent</code>. <code>child</code>
may not be specified in this case. If both <code>parent</code> and <code>child</code> are
specified but <code>node</code> is not, <code>child</code> will be detached from <code>parent</code>.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>parent: string</code></dt>
<dd><p>the id or name of the parent node.
</p></dd>
<dt><code>child: string</code> (optional)</dt>
<dd><p>the name of a child under the given parent node.
</p></dd>
<dt><code>node: string</code> (optional)</dt>
<dd><p>the name of the node that will be added.
</p></dd>
</dl>


<p><b>Note:</b>
this command is experimental, and its API is not stable. It
does not support all kinds of operations, all kinds of children, nor
all block drivers.
</p>
<p>Warning: The data in a new quorum child MUST be consistent with that of
the rest of the array.
</p>
<p><b>Since:</b>
2.7
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">1. Add a new node to a quorum
-&gt; { &quot;execute&quot;: &quot;blockdev-add&quot;,
     &quot;arguments&quot;: {
         &quot;driver&quot;: &quot;raw&quot;,
         &quot;node-name&quot;: &quot;new_node&quot;,
         &quot;file&quot;: { &quot;driver&quot;: &quot;file&quot;,
                   &quot;filename&quot;: &quot;test.raw&quot; } } }
&lt;- { &quot;return&quot;: {} }
-&gt; { &quot;execute&quot;: &quot;x-blockdev-change&quot;,
     &quot;arguments&quot;: { &quot;parent&quot;: &quot;disk1&quot;,
                    &quot;node&quot;: &quot;new_node&quot; } }
&lt;- { &quot;return&quot;: {} }

2. Delete a quorum's node
-&gt; { &quot;execute&quot;: &quot;x-blockdev-change&quot;,
     &quot;arguments&quot;: { &quot;parent&quot;: &quot;disk1&quot;,
                    &quot;child&quot;: &quot;children.1&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>


<a name="Additional-block-stuff-_0028VM-related_0029"></a>
<h4 class="subsection">1.7.2 Additional block stuff (VM related)</h4>


<dl>
<dt><a name="index-BiosAtaTranslation"></a>Enum: <strong>BiosAtaTranslation</strong></dt>
<dd>
<p>Policy that BIOS should use to interpret cylinder/head/sector
addresses.  Note that Bochs BIOS and SeaBIOS will not actually
translate logical CHS to physical; instead, they will use logical
block addressing.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>auto</code></dt>
<dd><p>If cylinder/heads/sizes are passed, choose between none and LBA
depending on the size of the disk.  If they are not passed,
choose none if QEMU can guess that the disk had 16 or fewer
heads, large if QEMU can guess that the disk had 131072 or
fewer tracks across all heads (i.e. cylinders*heads&lt;131072),
otherwise LBA.
</p></dd>
<dt><code>none</code></dt>
<dd><p>The physical disk geometry is equal to the logical geometry.
</p></dd>
<dt><code>lba</code></dt>
<dd><p>Assume 63 sectors per track and one of 16, 32, 64, 128 or 255
heads (if fewer than 255 are enough to cover the whole disk
with 1024 cylinders/head).  The number of cylinders/head is
then computed based on the number of sectors and heads.
</p></dd>
<dt><code>large</code></dt>
<dd><p>The number of cylinders per head is scaled down to 1024
by correspondingly scaling up the number of heads.
</p></dd>
<dt><code>rechs</code></dt>
<dd><p>Same as <code>large</code>, but first convert a 16-head geometry to
15-head, by proportionally scaling up the number of
cylinders/head.
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-FloppyDriveType"></a>Enum: <strong>FloppyDriveType</strong></dt>
<dd>
<p>Type of Floppy drive to be emulated by the Floppy Disk Controller.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>144</code></dt>
<dd><p>1.44MB 3.5&quot; drive
</p></dd>
<dt><code>288</code></dt>
<dd><p>2.88MB 3.5&quot; drive
</p></dd>
<dt><code>120</code></dt>
<dd><p>1.2MB 5.25&quot; drive
</p></dd>
<dt><code>none</code></dt>
<dd><p>No drive connected
</p></dd>
<dt><code>auto</code></dt>
<dd><p>Automatically determined by inserted media at boot
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-BlockdevSnapshotInternal"></a>Object: <strong>BlockdevSnapshotInternal</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>the device name or node-name of a root node to generate the snapshot
from
</p></dd>
<dt><code>name: string</code></dt>
<dd><p>the name of the internal snapshot to be created
</p></dd>
</dl>


<p><b>Notes:</b>
In transaction, if <code>name</code> is empty, or any snapshot matching <code>name</code>
exists, the operation will fail. Only some image formats support it,
for example, qcow2, rbd, and sheepdog.
</p>
<p><b>Since:</b>
1.7
</p>
</dd></dl>



<dl>
<dt><a name="index-blockdev_002dsnapshot_002dinternal_002dsync"></a>Command: <em></em> <strong>blockdev-snapshot-internal-sync</strong></dt>
<dd>
<p>Synchronously take an internal snapshot of a block device, when the
format of the image used supports it. If the name is an empty
string, or a snapshot with name already exists, the operation will
fail.
</p>
<p>For the arguments, see the documentation of BlockdevSnapshotInternal.
</p>

<p><b>Returns:</b>
nothing on success
</p>
<p>If <code>device</code> is not a valid block device, GenericError
</p>
<p>If any snapshot matching <code>name</code> exists, or <code>name</code> is empty,
GenericError
</p>
<p>If the format of the image used does not support it,
BlockFormatFeatureNotSupported
</p>
<p><b>Since:</b>
1.7
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-snapshot-internal-sync&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;ide-hd0&quot;,
                    &quot;name&quot;: &quot;snapshot0&quot; }
   }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-blockdev_002dsnapshot_002ddelete_002dinternal_002dsync"></a>Command: <em></em> <strong>blockdev-snapshot-delete-internal-sync</strong></dt>
<dd>
<p>Synchronously delete an internal snapshot of a block device, when the format
of the image used support it. The snapshot is identified by name or id or
both. One of the name or id is required. Return SnapshotInfo for the
successfully deleted snapshot.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>the device name or node-name of a root node to delete the snapshot
from
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>optional the snapshot&rsquo;s ID to be deleted
</p></dd>
<dt><code>name: string</code> (optional)</dt>
<dd><p>optional the snapshot&rsquo;s name to be deleted
</p></dd>
</dl>


<p><b>Returns:</b>
SnapshotInfo on success
If <code>device</code> is not a valid block device, GenericError
If snapshot not found, GenericError
If the format of the image used does not support it,
BlockFormatFeatureNotSupported
If <code>id</code> and <code>name</code> are both not specified, GenericError
</p>
<p><b>Since:</b>
1.7
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;blockdev-snapshot-delete-internal-sync&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;ide-hd0&quot;,
                    &quot;name&quot;: &quot;snapshot0&quot; }
   }
&lt;- { &quot;return&quot;: {
                   &quot;id&quot;: &quot;1&quot;,
                   &quot;name&quot;: &quot;snapshot0&quot;,
                   &quot;vm-state-size&quot;: 0,
                   &quot;date-sec&quot;: 1000012,
                   &quot;date-nsec&quot;: 10,
                   &quot;vm-clock-sec&quot;: 100,
                   &quot;vm-clock-nsec&quot;: 20
     }
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-eject"></a>Command: <em></em> <strong>eject</strong></dt>
<dd>
<p>Ejects a device from a removable drive.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>Block device name (deprecated, use <code>id</code> instead)
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>The name or QOM path of the guest device (since: 2.8)
</p></dd>
<dt><code>force: boolean</code> (optional)</dt>
<dd><p>If true, eject regardless of whether the drive is locked.
If not specified, the default value is false.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p>If <code>device</code> is not a valid block device, DeviceNotFound
</p>
<p><b>Notes:</b>
Ejecting a device with no media results in success
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;eject&quot;, &quot;arguments&quot;: { &quot;id&quot;: &quot;ide1-0-1&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-nbd_002dserver_002dstart"></a>Command: <em></em> <strong>nbd-server-start</strong></dt>
<dd>
<p>Start an NBD server listening on the given host and port.  Block
devices can then be exported using <code>nbd-server-add</code>.  The NBD
server will present them as named exports; for example, another
QEMU instance could refer to them as &quot;nbd:HOST:PORT:exportname=NAME&quot;.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>addr: SocketAddressLegacy</code></dt>
<dd><p>Address on which to listen.
</p></dd>
<dt><code>tls-creds: string</code> (optional)</dt>
<dd><p>(optional) ID of the TLS credentials object. Since 2.6
</p></dd>
</dl>


<p><b>Returns:</b>
error if the server is already running.
</p>
<p><b>Since:</b>
1.3.0
</p>
</dd></dl>



<dl>
<dt><a name="index-nbd_002dserver_002dadd"></a>Command: <em></em> <strong>nbd-server-add</strong></dt>
<dd>
<p>Export a block node to QEMU&rsquo;s embedded NBD server.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The device name or node name of the node to be exported
</p></dd>
<dt><code>writable: boolean</code> (optional)</dt>
<dd><p>Whether clients should be able to write to the device via the
NBD connection (default false).
</p></dd>
</dl>


<p><b>Returns:</b>
error if the device is already marked for export.
</p>
<p><b>Since:</b>
1.3.0
</p>
</dd></dl>



<dl>
<dt><a name="index-nbd_002dserver_002dstop"></a>Command: <em></em> <strong>nbd-server-stop</strong></dt>
<dd>
<p>Stop QEMU&rsquo;s embedded NBD server, and unregister all devices previously
added via <code>nbd-server-add</code>.
</p>

<p><b>Since:</b>
1.3.0
</p>
</dd></dl>



<dl>
<dt><a name="index-DEVICE_005fTRAY_005fMOVED"></a>Event: <em></em> <strong>DEVICE_TRAY_MOVED</strong></dt>
<dd>
<p>Emitted whenever the tray of a removable device is moved by the guest or by
HMP/QMP commands
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>Block device name. This is always present for compatibility
reasons, but it can be empty (&quot;&quot;) if the image does not
have a device name associated.
</p></dd>
<dt><code>id: string</code></dt>
<dd><p>The name or QOM path of the guest device (since 2.8)
</p></dd>
<dt><code>tray-open: boolean</code></dt>
<dd><p>true if the tray has been opened or false if it has been closed
</p></dd>
</dl>


<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;DEVICE_TRAY_MOVED&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;ide1-cd0&quot;,
               &quot;id&quot;: &quot;/machine/unattached/device[22]&quot;,
               &quot;tray-open&quot;: true
     },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1265044230, &quot;microseconds&quot;: 450486 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-QuorumOpType"></a>Enum: <strong>QuorumOpType</strong></dt>
<dd>
<p>An enumeration of the quorum operation types
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>read</code></dt>
<dd><p>read operation
</p></dd>
<dt><code>write</code></dt>
<dd><p>write operation
</p></dd>
<dt><code>flush</code></dt>
<dd><p>flush operation
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-QUORUM_005fFAILURE"></a>Event: <em></em> <strong>QUORUM_FAILURE</strong></dt>
<dd>
<p>Emitted by the Quorum block driver if it fails to establish a quorum
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>reference: string</code></dt>
<dd><p>device name if defined else node name
</p></dd>
<dt><code>sector-num: int</code></dt>
<dd><p>number of the first sector of the failed read operation
</p></dd>
<dt><code>sectors-count: int</code></dt>
<dd><p>failed read operation sector count
</p></dd>
</dl>


<p><b>Note:</b>
This event is rate-limited.
</p>
<p><b>Since:</b>
2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;QUORUM_FAILURE&quot;,
     &quot;data&quot;: { &quot;reference&quot;: &quot;usr1&quot;, &quot;sector-num&quot;: 345435, &quot;sectors-count&quot;: 5 },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1344522075, &quot;microseconds&quot;: 745528 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-QUORUM_005fREPORT_005fBAD"></a>Event: <em></em> <strong>QUORUM_REPORT_BAD</strong></dt>
<dd>
<p>Emitted to report a corruption of a Quorum file
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>type: QuorumOpType</code></dt>
<dd><p>quorum operation type (Since 2.6)
</p></dd>
<dt><code>error: string</code> (optional)</dt>
<dd><p>error message. Only present on failure. This field
contains a human-readable error message. There are no semantics other
than that the block layer reported an error and clients should not
try to interpret the error string.
</p></dd>
<dt><code>node-name: string</code></dt>
<dd><p>the graph node name of the block driver state
</p></dd>
<dt><code>sector-num: int</code></dt>
<dd><p>number of the first sector of the failed read operation
</p></dd>
<dt><code>sectors-count: int</code></dt>
<dd><p>failed read operation sector count
</p></dd>
</dl>


<p><b>Note:</b>
This event is rate-limited.
</p>
<p><b>Since:</b>
2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">1. Read operation

{ &quot;event&quot;: &quot;QUORUM_REPORT_BAD&quot;,
     &quot;data&quot;: { &quot;node-name&quot;: &quot;node0&quot;, &quot;sector-num&quot;: 345435, &quot;sectors-count&quot;: 5,
               &quot;type&quot;: &quot;read&quot; },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1344522075, &quot;microseconds&quot;: 745528 } }

2. Flush operation

{ &quot;event&quot;: &quot;QUORUM_REPORT_BAD&quot;,
     &quot;data&quot;: { &quot;node-name&quot;: &quot;node0&quot;, &quot;sector-num&quot;: 0, &quot;sectors-count&quot;: 2097120,
               &quot;type&quot;: &quot;flush&quot;, &quot;error&quot;: &quot;Broken pipe&quot; },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1456406829, &quot;microseconds&quot;: 291763 } }
</pre></div>


</dd></dl>


<a name="Character-devices"></a>
<h3 class="section">1.8 Character devices</h3>


<dl>
<dt><a name="index-ChardevInfo"></a>Object: <strong>ChardevInfo</strong></dt>
<dd>
<p>Information about a character device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>label: string</code></dt>
<dd><p>the label of the character device
</p></dd>
<dt><code>filename: string</code></dt>
<dd><p>the filename of the character device
</p></dd>
<dt><code>frontend-open: boolean</code></dt>
<dd><p>shows whether the frontend device attached to this backend
(eg. with the chardev=... option) is in open or closed state
(since 2.1)
</p></dd>
</dl>


<p><b>Notes:</b>
<code>filename</code> is encoded using the QEMU command line character device
encoding.  See the QEMU man page for details.
</p>
<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dchardev"></a>Command: <em></em> <strong>query-chardev</strong></dt>
<dd>
<p>Returns information about current character devices.
</p>

<p><b>Returns:</b>
a list of <code>ChardevInfo</code>
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-chardev&quot; }
&lt;- {
      &quot;return&quot;: [
         {
            &quot;label&quot;: &quot;charchannel0&quot;,
            &quot;filename&quot;: &quot;unix:/var/lib/libvirt/qemu/seabios.rhel6.agent,server&quot;,
            &quot;frontend-open&quot;: false
         },
         {
            &quot;label&quot;: &quot;charmonitor&quot;,
            &quot;filename&quot;: &quot;unix:/var/lib/libvirt/qemu/seabios.rhel6.monitor,server&quot;,
            &quot;frontend-open&quot;: true
         },
         {
            &quot;label&quot;: &quot;charserial0&quot;,
            &quot;filename&quot;: &quot;pty:/dev/pts/2&quot;,
            &quot;frontend-open&quot;: true
         }
      ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-ChardevBackendInfo"></a>Object: <strong>ChardevBackendInfo</strong></dt>
<dd>
<p>Information about a character device backend
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>The backend name
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dchardev_002dbackends"></a>Command: <em></em> <strong>query-chardev-backends</strong></dt>
<dd>
<p>Returns information about character device backends.
</p>

<p><b>Returns:</b>
a list of <code>ChardevBackendInfo</code>
</p>
<p><b>Since:</b>
2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-chardev-backends&quot; }
&lt;- {
      &quot;return&quot;:[
         {
            &quot;name&quot;:&quot;udp&quot;
         },
         {
            &quot;name&quot;:&quot;tcp&quot;
         },
         {
            &quot;name&quot;:&quot;unix&quot;
         },
         {
            &quot;name&quot;:&quot;spiceport&quot;
         }
      ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-DataFormat"></a>Enum: <strong>DataFormat</strong></dt>
<dd>
<p>An enumeration of data format.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>utf8</code></dt>
<dd><p>Data is a UTF-8 string (RFC 3629)
</p></dd>
<dt><code>base64</code></dt>
<dd><p>Data is Base64 encoded binary (RFC 3548)
</p></dd>
</dl>


<p><b>Since:</b>
1.4
</p>
</dd></dl>



<dl>
<dt><a name="index-ringbuf_002dwrite"></a>Command: <em></em> <strong>ringbuf-write</strong></dt>
<dd>
<p>Write to a ring buffer character device.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>the ring buffer character device name
</p></dd>
<dt><code>data: string</code></dt>
<dd><p>data to write
</p></dd>
<dt><code>format: DataFormat</code> (optional)</dt>
<dd><p>data encoding (default &rsquo;utf8&rsquo;).
</p><ul class="no-bullet">
<li>- base64: data must be base64 encoded text.  Its binary
decoding gets written.
</li><li>- utf8: data&rsquo;s UTF-8 encoding is written
</li><li>- data itself is always Unicode regardless of format, like
any other string.
</li></ul>

</dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
1.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;ringbuf-write&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;foo&quot;,
                    &quot;data&quot;: &quot;abcdefgh&quot;,
                    &quot;format&quot;: &quot;utf8&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-ringbuf_002dread"></a>Command: <em></em> <strong>ringbuf-read</strong></dt>
<dd>
<p>Read from a ring buffer character device.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>the ring buffer character device name
</p></dd>
<dt><code>size: int</code></dt>
<dd><p>how many bytes to read at most
</p></dd>
<dt><code>format: DataFormat</code> (optional)</dt>
<dd><p>data encoding (default &rsquo;utf8&rsquo;).
</p><ul class="no-bullet">
<li>- base64: the data read is returned in base64 encoding.
</li><li>- utf8: the data read is interpreted as UTF-8.
Bug: can screw up when the buffer contains invalid UTF-8
sequences, NUL characters, after the ring buffer lost
data, and when reading stops because the size limit is
reached.
</li><li>- The return value is always Unicode regardless of format,
like any other string.
</li></ul>

</dd>
</dl>


<p><b>Returns:</b>
data read from the device
</p>
<p><b>Since:</b>
1.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;ringbuf-read&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;foo&quot;,
                    &quot;size&quot;: 1000,
                    &quot;format&quot;: &quot;utf8&quot; } }
&lt;- { &quot;return&quot;: &quot;abcdefgh&quot; }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-ChardevCommon"></a>Object: <strong>ChardevCommon</strong></dt>
<dd>
<p>Configuration shared across all chardev backends
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>logfile: string</code> (optional)</dt>
<dd><p>The name of a logfile to save output
</p></dd>
<dt><code>logappend: boolean</code> (optional)</dt>
<dd><p>true to append instead of truncate
(default to false to truncate)
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevFile"></a>Object: <strong>ChardevFile</strong></dt>
<dd>
<p>Configuration info for file chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>in: string</code> (optional)</dt>
<dd><p>The name of the input file
</p></dd>
<dt><code>out: string</code></dt>
<dd><p>The name of the output file
</p></dd>
<dt><code>append: boolean</code> (optional)</dt>
<dd><p>Open the file in append mode (default false to
truncate) (Since 2.6)
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.4
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevHostdev"></a>Object: <strong>ChardevHostdev</strong></dt>
<dd>
<p>Configuration info for device and pipe chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>The name of the special file for the device,
i.e. /dev/ttyS0 on Unix or COM1: on Windows
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.4
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevSocket"></a>Object: <strong>ChardevSocket</strong></dt>
<dd>
<p>Configuration info for (stream) socket chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>addr: SocketAddressLegacy</code></dt>
<dd><p>socket address to listen on (server=true)
or connect to (server=false)
</p></dd>
<dt><code>tls-creds: string</code> (optional)</dt>
<dd><p>the ID of the TLS credentials object (since 2.6)
</p></dd>
<dt><code>server: boolean</code> (optional)</dt>
<dd><p>create server socket (default: true)
</p></dd>
<dt><code>wait: boolean</code> (optional)</dt>
<dd><p>wait for incoming connection on server
sockets (default: false).
</p></dd>
<dt><code>nodelay: boolean</code> (optional)</dt>
<dd><p>set TCP_NODELAY socket option (default: false)
</p></dd>
<dt><code>telnet: boolean</code> (optional)</dt>
<dd><p>enable telnet protocol on server
sockets (default: false)
</p></dd>
<dt><code>tn3270: boolean</code> (optional)</dt>
<dd><p>enable tn3270 protocol on server
sockets (default: false) (Since: 2.10)
</p></dd>
<dt><code>reconnect: int</code> (optional)</dt>
<dd><p>For a client socket, if a socket is disconnected,
then attempt a reconnect after the given number of seconds.
Setting this to zero disables this function. (default: 0)
(Since: 2.2)
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.4
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevUdp"></a>Object: <strong>ChardevUdp</strong></dt>
<dd>
<p>Configuration info for datagram socket chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>remote: SocketAddressLegacy</code></dt>
<dd><p>remote address
</p></dd>
<dt><code>local: SocketAddressLegacy</code> (optional)</dt>
<dd><p>local address
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevMux"></a>Object: <strong>ChardevMux</strong></dt>
<dd>
<p>Configuration info for mux chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>chardev: string</code></dt>
<dd><p>name of the base chardev.
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevStdio"></a>Object: <strong>ChardevStdio</strong></dt>
<dd>
<p>Configuration info for stdio chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>signal: boolean</code> (optional)</dt>
<dd><p>Allow signals (such as SIGINT triggered by ^C)
be delivered to qemu.  Default: true in -nographic mode,
false otherwise.
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevSpiceChannel"></a>Object: <strong>ChardevSpiceChannel</strong></dt>
<dd>
<p>Configuration info for spice vm channel chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: string</code></dt>
<dd><p>kind of channel (for example vdagent).
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevSpicePort"></a>Object: <strong>ChardevSpicePort</strong></dt>
<dd>
<p>Configuration info for spice port chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>fqdn: string</code></dt>
<dd><p>name of the channel (see docs/spice-port-fqdn.txt)
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevVC"></a>Object: <strong>ChardevVC</strong></dt>
<dd>
<p>Configuration info for virtual console chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>width: int</code> (optional)</dt>
<dd><p>console width,  in pixels
</p></dd>
<dt><code>height: int</code> (optional)</dt>
<dd><p>console height, in pixels
</p></dd>
<dt><code>cols: int</code> (optional)</dt>
<dd><p>console width,  in chars
</p></dd>
<dt><code>rows: int</code> (optional)</dt>
<dd><p>console height, in chars
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevRingbuf"></a>Object: <strong>ChardevRingbuf</strong></dt>
<dd>
<p>Configuration info for ring buffer chardevs.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>size: int</code> (optional)</dt>
<dd><p>ring buffer size, must be power of two, default is 65536
</p></dd>
<dt>The members of <code>ChardevCommon</code></dt>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevBackend"></a>Object: <strong>ChardevBackend</strong></dt>
<dd>
<p>Configuration info for the new chardev backend.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type</code></dt>
<dd><p>One of <tt>&quot;file&quot;</tt>, <tt>&quot;serial&quot;</tt>, <tt>&quot;parallel&quot;</tt>, <tt>&quot;pipe&quot;</tt>, <tt>&quot;socket&quot;</tt>, <tt>&quot;udp&quot;</tt>, <tt>&quot;pty&quot;</tt>, <tt>&quot;null&quot;</tt>, <tt>&quot;mux&quot;</tt>, <tt>&quot;msmouse&quot;</tt>, <tt>&quot;wctablet&quot;</tt>, <tt>&quot;braille&quot;</tt>, <tt>&quot;testdev&quot;</tt>, <tt>&quot;stdio&quot;</tt>, <tt>&quot;console&quot;</tt>, <tt>&quot;spicevmc&quot;</tt>, <tt>&quot;spiceport&quot;</tt>, <tt>&quot;vc&quot;</tt>, <tt>&quot;ringbuf&quot;</tt>, <tt>&quot;memory&quot;</tt>
</p></dd>
<dt><code>data: ChardevFile</code> when <code>type</code> is <tt>&quot;file&quot;</tt></dt>
<dt><code>data: ChardevHostdev</code> when <code>type</code> is <tt>&quot;serial&quot;</tt></dt>
<dt><code>data: ChardevHostdev</code> when <code>type</code> is <tt>&quot;parallel&quot;</tt></dt>
<dt><code>data: ChardevHostdev</code> when <code>type</code> is <tt>&quot;pipe&quot;</tt></dt>
<dt><code>data: ChardevSocket</code> when <code>type</code> is <tt>&quot;socket&quot;</tt></dt>
<dt><code>data: ChardevUdp</code> when <code>type</code> is <tt>&quot;udp&quot;</tt></dt>
<dt><code>data: ChardevCommon</code> when <code>type</code> is <tt>&quot;pty&quot;</tt></dt>
<dt><code>data: ChardevCommon</code> when <code>type</code> is <tt>&quot;null&quot;</tt></dt>
<dt><code>data: ChardevMux</code> when <code>type</code> is <tt>&quot;mux&quot;</tt></dt>
<dt><code>data: ChardevCommon</code> when <code>type</code> is <tt>&quot;msmouse&quot;</tt></dt>
<dt><code>data: ChardevCommon</code> when <code>type</code> is <tt>&quot;wctablet&quot;</tt></dt>
<dt><code>data: ChardevCommon</code> when <code>type</code> is <tt>&quot;braille&quot;</tt></dt>
<dt><code>data: ChardevCommon</code> when <code>type</code> is <tt>&quot;testdev&quot;</tt></dt>
<dt><code>data: ChardevStdio</code> when <code>type</code> is <tt>&quot;stdio&quot;</tt></dt>
<dt><code>data: ChardevCommon</code> when <code>type</code> is <tt>&quot;console&quot;</tt></dt>
<dt><code>data: ChardevSpiceChannel</code> when <code>type</code> is <tt>&quot;spicevmc&quot;</tt></dt>
<dt><code>data: ChardevSpicePort</code> when <code>type</code> is <tt>&quot;spiceport&quot;</tt></dt>
<dt><code>data: ChardevVC</code> when <code>type</code> is <tt>&quot;vc&quot;</tt></dt>
<dt><code>data: ChardevRingbuf</code> when <code>type</code> is <tt>&quot;ringbuf&quot;</tt></dt>
<dt><code>data: ChardevRingbuf</code> when <code>type</code> is <tt>&quot;memory&quot;</tt></dt>
</dl>


<p><b>Since:</b>
1.4 (testdev since 2.2, wctablet since 2.9)
</p>
</dd></dl>



<dl>
<dt><a name="index-ChardevReturn"></a>Object: <strong>ChardevReturn</strong></dt>
<dd>
<p>Return info about the chardev backend just created.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>pty: string</code> (optional)</dt>
<dd><p>name of the slave pseudoterminal device, present if
and only if a chardev of type &rsquo;pty&rsquo; was created
</p></dd>
</dl>


<p><b>Since:</b>
1.4
</p>
</dd></dl>



<dl>
<dt><a name="index-chardev_002dadd"></a>Command: <em></em> <strong>chardev-add</strong></dt>
<dd>
<p>Add a character device backend
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>the chardev&rsquo;s ID, must be unique
</p></dd>
<dt><code>backend: ChardevBackend</code></dt>
<dd><p>backend type and parameters
</p></dd>
</dl>


<p><b>Returns:</b>
ChardevReturn.
</p>
<p><b>Since:</b>
1.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot; : &quot;chardev-add&quot;,
     &quot;arguments&quot; : { &quot;id&quot; : &quot;foo&quot;,
                     &quot;backend&quot; : { &quot;type&quot; : &quot;null&quot;, &quot;data&quot; : {} } } }
&lt;- { &quot;return&quot;: {} }

-&gt; { &quot;execute&quot; : &quot;chardev-add&quot;,
     &quot;arguments&quot; : { &quot;id&quot; : &quot;bar&quot;,
                     &quot;backend&quot; : { &quot;type&quot; : &quot;file&quot;,
                                   &quot;data&quot; : { &quot;out&quot; : &quot;/tmp/bar.log&quot; } } } }
&lt;- { &quot;return&quot;: {} }

-&gt; { &quot;execute&quot; : &quot;chardev-add&quot;,
     &quot;arguments&quot; : { &quot;id&quot; : &quot;baz&quot;,
                     &quot;backend&quot; : { &quot;type&quot; : &quot;pty&quot;, &quot;data&quot; : {} } } }
&lt;- { &quot;return&quot;: { &quot;pty&quot; : &quot;/dev/pty/42&quot; } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-chardev_002dchange"></a>Command: <em></em> <strong>chardev-change</strong></dt>
<dd>
<p>Change a character device backend
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>the chardev&rsquo;s ID, must exist
</p></dd>
<dt><code>backend: ChardevBackend</code></dt>
<dd><p>new backend type and parameters
</p></dd>
</dl>


<p><b>Returns:</b>
ChardevReturn.
</p>
<p><b>Since:</b>
2.10
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot; : &quot;chardev-change&quot;,
     &quot;arguments&quot; : { &quot;id&quot; : &quot;baz&quot;,
                     &quot;backend&quot; : { &quot;type&quot; : &quot;pty&quot;, &quot;data&quot; : {} } } }
&lt;- { &quot;return&quot;: { &quot;pty&quot; : &quot;/dev/pty/42&quot; } }

-&gt; {&quot;execute&quot; : &quot;chardev-change&quot;,
    &quot;arguments&quot; : {
        &quot;id&quot; : &quot;charchannel2&quot;,
        &quot;backend&quot; : {
            &quot;type&quot; : &quot;socket&quot;,
            &quot;data&quot; : {
                &quot;addr&quot; : {
                    &quot;type&quot; : &quot;unix&quot; ,
                    &quot;data&quot; : {
                        &quot;path&quot; : &quot;/tmp/charchannel2.socket&quot;
                    }
                 },
                 &quot;server&quot; : true,
                 &quot;wait&quot; : false }}}}
&lt;- {&quot;return&quot;: {}}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-chardev_002dremove"></a>Command: <em></em> <strong>chardev-remove</strong></dt>
<dd>
<p>Remove a character device backend
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>the chardev&rsquo;s ID, must exist and not be in use
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
1.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;chardev-remove&quot;, &quot;arguments&quot;: { &quot;id&quot; : &quot;foo&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-chardev_002dsend_002dbreak"></a>Command: <em></em> <strong>chardev-send-break</strong></dt>
<dd>
<p>Send a break to a character device
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>the chardev&rsquo;s ID, must exist
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
2.10
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;chardev-send-break&quot;, &quot;arguments&quot;: { &quot;id&quot; : &quot;foo&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-VSERPORT_005fCHANGE"></a>Event: <em></em> <strong>VSERPORT_CHANGE</strong></dt>
<dd>
<p>Emitted when the guest opens or closes a virtio-serial port.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>device identifier of the virtio-serial port
</p></dd>
<dt><code>open: boolean</code></dt>
<dd><p>true if the guest has opened the virtio-serial port
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;VSERPORT_CHANGE&quot;,
     &quot;data&quot;: { &quot;id&quot;: &quot;channel0&quot;, &quot;open&quot;: true },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1401385907, &quot;microseconds&quot;: 422329 } }
</pre></div>


</dd></dl>


<a name="Net-devices"></a>
<h3 class="section">1.9 Net devices</h3>


<dl>
<dt><a name="index-set_005flink"></a>Command: <em></em> <strong>set_link</strong></dt>
<dd>
<p>Sets the link status of a virtual network adapter.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the device name of the virtual network adapter
</p></dd>
<dt><code>up: boolean</code></dt>
<dd><p>true to set the link status to be up
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If <code>name</code> is not a valid network device, DeviceNotFound
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
Not all network adapters support setting link status.  This command
will succeed even if the network adapter does not support link status
notification.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;set_link&quot;,
     &quot;arguments&quot;: { &quot;name&quot;: &quot;e1000.0&quot;, &quot;up&quot;: false } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-netdev_005fadd"></a>Command: <em></em> <strong>netdev_add</strong></dt>
<dd>
<p>Add a network backend.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>type: string</code></dt>
<dd><p>the type of network backend.  Current valid values are &rsquo;user&rsquo;, &rsquo;tap&rsquo;,
&rsquo;vde&rsquo;, &rsquo;socket&rsquo;, &rsquo;dump&rsquo; and &rsquo;bridge&rsquo;
</p></dd>
<dt><code>id: string</code></dt>
<dd><p>the name of the new network backend
</p></dd>
</dl>
<p>Additional arguments depend on the type.
</p>
<p><b>TODO:</b>
This command effectively bypasses QAPI completely due to its
&quot;additional arguments&quot; business.  It shouldn&rsquo;t have been added to
the schema in this form.  It should be qapified properly, or
replaced by a properly qapified command.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Returns:</b>
Nothing on success
If <code>type</code> is not a valid network backend, DeviceNotFound
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;netdev_add&quot;,
     &quot;arguments&quot;: { &quot;type&quot;: &quot;user&quot;, &quot;id&quot;: &quot;netdev1&quot;,
                    &quot;dnssearch&quot;: &quot;example.org&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-netdev_005fdel"></a>Command: <em></em> <strong>netdev_del</strong></dt>
<dd>
<p>Remove a network backend.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>the name of the network backend to remove
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If <code>id</code> is not a valid network backend, DeviceNotFound
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;netdev_del&quot;, &quot;arguments&quot;: { &quot;id&quot;: &quot;netdev1&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-NetdevNoneOptions"></a>Object: <strong>NetdevNoneOptions</strong></dt>
<dd>
<p>Use it alone to have zero network devices.
</p>

<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetLegacyNicOptions"></a>Object: <strong>NetLegacyNicOptions</strong></dt>
<dd>
<p>Create a new Network Interface Card.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>netdev: string</code> (optional)</dt>
<dd><p>id of -netdev to connect to
</p></dd>
<dt><code>macaddr: string</code> (optional)</dt>
<dd><p>MAC address
</p></dd>
<dt><code>model: string</code> (optional)</dt>
<dd><p>device model (e1000, rtl8139, virtio etc.)
</p></dd>
<dt><code>addr: string</code> (optional)</dt>
<dd><p>PCI device address
</p></dd>
<dt><code>vectors: int</code> (optional)</dt>
<dd><p>number of MSI-x vectors, 0 to disable MSI-X
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevUserOptions"></a>Object: <strong>NetdevUserOptions</strong></dt>
<dd>
<p>Use the user mode network stack which requires no administrator privilege to
run.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>hostname: string</code> (optional)</dt>
<dd><p>client hostname reported by the builtin DHCP server
</p></dd>
<dt><code>restrict: boolean</code> (optional)</dt>
<dd><p>isolate the guest from the host
</p></dd>
<dt><code>ipv4: boolean</code> (optional)</dt>
<dd><p>whether to support IPv4, default true for enabled
(since 2.6)
</p></dd>
<dt><code>ipv6: boolean</code> (optional)</dt>
<dd><p>whether to support IPv6, default true for enabled
(since 2.6)
</p></dd>
<dt><code>ip: string</code> (optional)</dt>
<dd><p>legacy parameter, use net= instead
</p></dd>
<dt><code>net: string</code> (optional)</dt>
<dd><p>IP network address that the guest will see, in the
form addr[/netmask] The netmask is optional, and can be
either in the form a.b.c.d or as a number of valid top-most
bits. Default is 10.0.2.0/24.
</p></dd>
<dt><code>host: string</code> (optional)</dt>
<dd><p>guest-visible address of the host
</p></dd>
<dt><code>tftp: string</code> (optional)</dt>
<dd><p>root directory of the built-in TFTP server
</p></dd>
<dt><code>bootfile: string</code> (optional)</dt>
<dd><p>BOOTP filename, for use with tftp=
</p></dd>
<dt><code>dhcpstart: string</code> (optional)</dt>
<dd><p>the first of the 16 IPs the built-in DHCP server can
assign
</p></dd>
<dt><code>dns: string</code> (optional)</dt>
<dd><p>guest-visible address of the virtual nameserver
</p></dd>
<dt><code>dnssearch: array of String</code> (optional)</dt>
<dd><p>list of DNS suffixes to search, passed as DHCP option
to the guest
</p></dd>
<dt><code>domainname: string</code> (optional)</dt>
<dd><p>guest-visible domain name of the virtual nameserver
(since 2.12)
</p></dd>
<dt><code>ipv6-prefix: string</code> (optional)</dt>
<dd><p>IPv6 network prefix (default is fec0::) (since
2.6). The network prefix is given in the usual
hexadecimal IPv6 address notation.
</p></dd>
<dt><code>ipv6-prefixlen: int</code> (optional)</dt>
<dd><p>IPv6 network prefix length (default is 64)
(since 2.6)
</p></dd>
<dt><code>ipv6-host: string</code> (optional)</dt>
<dd><p>guest-visible IPv6 address of the host (since 2.6)
</p></dd>
<dt><code>ipv6-dns: string</code> (optional)</dt>
<dd><p>guest-visible IPv6 address of the virtual
nameserver (since 2.6)
</p></dd>
<dt><code>smb: string</code> (optional)</dt>
<dd><p>root directory of the built-in SMB server
</p></dd>
<dt><code>smbserver: string</code> (optional)</dt>
<dd><p>IP address of the built-in SMB server
</p></dd>
<dt><code>hostfwd: array of String</code> (optional)</dt>
<dd><p>redirect incoming TCP or UDP host connections to guest
endpoints
</p></dd>
<dt><code>guestfwd: array of String</code> (optional)</dt>
<dd><p>forward guest TCP connections
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevTapOptions"></a>Object: <strong>NetdevTapOptions</strong></dt>
<dd>
<p>Connect the host TAP network interface name to the VLAN.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>ifname: string</code> (optional)</dt>
<dd><p>interface name
</p></dd>
<dt><code>fd: string</code> (optional)</dt>
<dd><p>file descriptor of an already opened tap
</p></dd>
<dt><code>fds: string</code> (optional)</dt>
<dd><p>multiple file descriptors of already opened multiqueue capable
tap
</p></dd>
<dt><code>script: string</code> (optional)</dt>
<dd><p>script to initialize the interface
</p></dd>
<dt><code>downscript: string</code> (optional)</dt>
<dd><p>script to shut down the interface
</p></dd>
<dt><code>br: string</code> (optional)</dt>
<dd><p>bridge name (since 2.8)
</p></dd>
<dt><code>helper: string</code> (optional)</dt>
<dd><p>command to execute to configure bridge
</p></dd>
<dt><code>sndbuf: int</code> (optional)</dt>
<dd><p>send buffer limit. Understands [TGMKkb] suffixes.
</p></dd>
<dt><code>vnet_hdr: boolean</code> (optional)</dt>
<dd><p>enable the IFF_VNET_HDR flag on the tap interface
</p></dd>
<dt><code>vhost: boolean</code> (optional)</dt>
<dd><p>enable vhost-net network accelerator
</p></dd>
<dt><code>vhostfd: string</code> (optional)</dt>
<dd><p>file descriptor of an already opened vhost net device
</p></dd>
<dt><code>vhostfds: string</code> (optional)</dt>
<dd><p>file descriptors of multiple already opened vhost net
devices
</p></dd>
<dt><code>vhostforce: boolean</code> (optional)</dt>
<dd><p>vhost on for non-MSIX virtio guests
</p></dd>
<dt><code>queues: int</code> (optional)</dt>
<dd><p>number of queues to be created for multiqueue capable tap
</p></dd>
<dt><code>poll-us: int</code> (optional)</dt>
<dd><p>maximum number of microseconds that could
be spent on busy polling for tap (since 2.7)
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevSocketOptions"></a>Object: <strong>NetdevSocketOptions</strong></dt>
<dd>
<p>Connect the VLAN to a remote VLAN in another QEMU virtual machine using a TCP
socket connection.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>fd: string</code> (optional)</dt>
<dd><p>file descriptor of an already opened socket
</p></dd>
<dt><code>listen: string</code> (optional)</dt>
<dd><p>port number, and optional hostname, to listen on
</p></dd>
<dt><code>connect: string</code> (optional)</dt>
<dd><p>port number, and optional hostname, to connect to
</p></dd>
<dt><code>mcast: string</code> (optional)</dt>
<dd><p>UDP multicast address and port number
</p></dd>
<dt><code>localaddr: string</code> (optional)</dt>
<dd><p>source address and port for multicast and udp packets
</p></dd>
<dt><code>udp: string</code> (optional)</dt>
<dd><p>UDP unicast address and port number
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevL2TPv3Options"></a>Object: <strong>NetdevL2TPv3Options</strong></dt>
<dd>
<p>Connect the VLAN to Ethernet over L2TPv3 Static tunnel
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>src: string</code></dt>
<dd><p>source address
</p></dd>
<dt><code>dst: string</code></dt>
<dd><p>destination address
</p></dd>
<dt><code>srcport: string</code> (optional)</dt>
<dd><p>source port - mandatory for udp, optional for ip
</p></dd>
<dt><code>dstport: string</code> (optional)</dt>
<dd><p>destination port - mandatory for udp, optional for ip
</p></dd>
<dt><code>ipv6: boolean</code> (optional)</dt>
<dd><p>force the use of ipv6
</p></dd>
<dt><code>udp: boolean</code> (optional)</dt>
<dd><p>use the udp version of l2tpv3 encapsulation
</p></dd>
<dt><code>cookie64: boolean</code> (optional)</dt>
<dd><p>use 64 bit coookies
</p></dd>
<dt><code>counter: boolean</code> (optional)</dt>
<dd><p>have sequence counter
</p></dd>
<dt><code>pincounter: boolean</code> (optional)</dt>
<dd><p>pin sequence counter to zero -
workaround for buggy implementations or
networks with packet reorder
</p></dd>
<dt><code>txcookie: int</code> (optional)</dt>
<dd><p>32 or 64 bit transmit cookie
</p></dd>
<dt><code>rxcookie: int</code> (optional)</dt>
<dd><p>32 or 64 bit receive cookie
</p></dd>
<dt><code>txsession: int</code></dt>
<dd><p>32 bit transmit session
</p></dd>
<dt><code>rxsession: int</code> (optional)</dt>
<dd><p>32 bit receive session - if not specified
set to the same value as transmit
</p></dd>
<dt><code>offset: int</code> (optional)</dt>
<dd><p>additional offset - allows the insertion of
additional application-specific data before the packet payload
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevVdeOptions"></a>Object: <strong>NetdevVdeOptions</strong></dt>
<dd>
<p>Connect the VLAN to a vde switch running on the host.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>sock: string</code> (optional)</dt>
<dd><p>socket path
</p></dd>
<dt><code>port: int</code> (optional)</dt>
<dd><p>port number
</p></dd>
<dt><code>group: string</code> (optional)</dt>
<dd><p>group owner of socket
</p></dd>
<dt><code>mode: int</code> (optional)</dt>
<dd><p>permissions for socket
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevDumpOptions"></a>Object: <strong>NetdevDumpOptions</strong></dt>
<dd>
<p>Dump VLAN network traffic to a file.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>len: int</code> (optional)</dt>
<dd><p>per-packet size limit (64k default). Understands [TGMKkb]
suffixes.
</p></dd>
<dt><code>file: string</code> (optional)</dt>
<dd><p>dump file path (default is qemu-vlan0.pcap)
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevBridgeOptions"></a>Object: <strong>NetdevBridgeOptions</strong></dt>
<dd>
<p>Connect a host TAP network interface to a host bridge device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>br: string</code> (optional)</dt>
<dd><p>bridge name
</p></dd>
<dt><code>helper: string</code> (optional)</dt>
<dd><p>command to execute to configure bridge
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevHubPortOptions"></a>Object: <strong>NetdevHubPortOptions</strong></dt>
<dd>
<p>Connect two or more net clients through a software hub.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>hubid: int</code></dt>
<dd><p>hub identifier number
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevNetmapOptions"></a>Object: <strong>NetdevNetmapOptions</strong></dt>
<dd>
<p>Connect a client to a netmap-enabled NIC or to a VALE switch port
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>ifname: string</code></dt>
<dd><p>Either the name of an existing network interface supported by
netmap, or the name of a VALE port (created on the fly).
A VALE port name is in the form &rsquo;valeXXX:YYY&rsquo;, where XXX and
YYY are non-negative integers. XXX identifies a switch and
YYY identifies a port of the switch. VALE ports having the
same XXX are therefore connected to the same switch.
</p></dd>
<dt><code>devname: string</code> (optional)</dt>
<dd><p>path of the netmap device (default: &rsquo;/dev/netmap&rsquo;).
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-NetdevVhostUserOptions"></a>Object: <strong>NetdevVhostUserOptions</strong></dt>
<dd>
<p>Vhost-user network backend
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>chardev: string</code></dt>
<dd><p>name of a unix socket chardev
</p></dd>
<dt><code>vhostforce: boolean</code> (optional)</dt>
<dd><p>vhost on for non-MSIX virtio guests (default: false).
</p></dd>
<dt><code>queues: int</code> (optional)</dt>
<dd><p>number of queues to be created for multiqueue vhost-user
(default: 1) (Since 2.5)
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-NetClientDriver"></a>Enum: <strong>NetClientDriver</strong></dt>
<dd>
<p>Available netdev drivers.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>none</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>nic</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>user</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tap</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l2tpv3</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>socket</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vde</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>dump</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>bridge</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>hubport</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>netmap</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vhost-user</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.7
</p>
</dd></dl>



<dl>
<dt><a name="index-Netdev"></a>Object: <strong>Netdev</strong></dt>
<dd>
<p>Captures the configuration of a network device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>identifier for monitor commands.
</p></dd>
<dt><code>type: NetClientDriver</code></dt>
<dd><p>Specify the driver used for interpreting remaining arguments.
</p></dd>
<dt>The members of <code>NetdevNoneOptions</code> when <code>type</code> is <tt>&quot;none&quot;</tt></dt>
<dt>The members of <code>NetLegacyNicOptions</code> when <code>type</code> is <tt>&quot;nic&quot;</tt></dt>
<dt>The members of <code>NetdevUserOptions</code> when <code>type</code> is <tt>&quot;user&quot;</tt></dt>
<dt>The members of <code>NetdevTapOptions</code> when <code>type</code> is <tt>&quot;tap&quot;</tt></dt>
<dt>The members of <code>NetdevL2TPv3Options</code> when <code>type</code> is <tt>&quot;l2tpv3&quot;</tt></dt>
<dt>The members of <code>NetdevSocketOptions</code> when <code>type</code> is <tt>&quot;socket&quot;</tt></dt>
<dt>The members of <code>NetdevVdeOptions</code> when <code>type</code> is <tt>&quot;vde&quot;</tt></dt>
<dt>The members of <code>NetdevDumpOptions</code> when <code>type</code> is <tt>&quot;dump&quot;</tt></dt>
<dt>The members of <code>NetdevBridgeOptions</code> when <code>type</code> is <tt>&quot;bridge&quot;</tt></dt>
<dt>The members of <code>NetdevHubPortOptions</code> when <code>type</code> is <tt>&quot;hubport&quot;</tt></dt>
<dt>The members of <code>NetdevNetmapOptions</code> when <code>type</code> is <tt>&quot;netmap&quot;</tt></dt>
<dt>The members of <code>NetdevVhostUserOptions</code> when <code>type</code> is <tt>&quot;vhost-user&quot;</tt></dt>
</dl>


<p><b>Since:</b>
1.2
</p>
<p>&rsquo;l2tpv3&rsquo; - since 2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-NetLegacy"></a>Object: <strong>NetLegacy</strong></dt>
<dd>
<p>Captures the configuration of a network device; legacy.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>vlan: int</code> (optional)</dt>
<dd><p>vlan number
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>identifier for monitor commands
</p></dd>
<dt><code>name: string</code> (optional)</dt>
<dd><p>identifier for monitor commands, ignored if <code>id</code> is present
</p></dd>
<dt><code>opts: NetLegacyOptions</code></dt>
<dd><p>device type specific properties (legacy)
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetLegacyOptionsType"></a>Enum: <strong>NetLegacyOptionsType</strong></dt>
<dd>


<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>none</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>nic</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>user</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tap</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l2tpv3</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>socket</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vde</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>dump</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>bridge</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>netmap</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vhost-user</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetLegacyOptions"></a>Object: <strong>NetLegacyOptions</strong></dt>
<dd>
<p>Like Netdev, but for use only by the legacy command line options
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: NetLegacyOptionsType</code></dt>
<dd><p>Not documented
</p></dd>
<dt>The members of <code>NetdevNoneOptions</code> when <code>type</code> is <tt>&quot;none&quot;</tt></dt>
<dt>The members of <code>NetLegacyNicOptions</code> when <code>type</code> is <tt>&quot;nic&quot;</tt></dt>
<dt>The members of <code>NetdevUserOptions</code> when <code>type</code> is <tt>&quot;user&quot;</tt></dt>
<dt>The members of <code>NetdevTapOptions</code> when <code>type</code> is <tt>&quot;tap&quot;</tt></dt>
<dt>The members of <code>NetdevL2TPv3Options</code> when <code>type</code> is <tt>&quot;l2tpv3&quot;</tt></dt>
<dt>The members of <code>NetdevSocketOptions</code> when <code>type</code> is <tt>&quot;socket&quot;</tt></dt>
<dt>The members of <code>NetdevVdeOptions</code> when <code>type</code> is <tt>&quot;vde&quot;</tt></dt>
<dt>The members of <code>NetdevDumpOptions</code> when <code>type</code> is <tt>&quot;dump&quot;</tt></dt>
<dt>The members of <code>NetdevBridgeOptions</code> when <code>type</code> is <tt>&quot;bridge&quot;</tt></dt>
<dt>The members of <code>NetdevNetmapOptions</code> when <code>type</code> is <tt>&quot;netmap&quot;</tt></dt>
<dt>The members of <code>NetdevVhostUserOptions</code> when <code>type</code> is <tt>&quot;vhost-user&quot;</tt></dt>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-NetFilterDirection"></a>Enum: <strong>NetFilterDirection</strong></dt>
<dd>
<p>Indicates whether a netfilter is attached to a netdev&rsquo;s transmit queue or
receive queue or both.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>all</code></dt>
<dd><p>the filter is attached both to the receive and the transmit
queue of the netdev (default).
</p></dd>
<dt><code>rx</code></dt>
<dd><p>the filter is attached to the receive queue of the netdev,
where it will receive packets sent to the netdev.
</p></dd>
<dt><code>tx</code></dt>
<dd><p>the filter is attached to the transmit queue of the netdev,
where it will receive packets sent by the netdev.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-RxState"></a>Enum: <strong>RxState</strong></dt>
<dd>
<p>Packets receiving state
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>normal</code></dt>
<dd><p>filter assigned packets according to the mac-table
</p></dd>
<dt><code>none</code></dt>
<dd><p>don&rsquo;t receive any assigned packet
</p></dd>
<dt><code>all</code></dt>
<dd><p>receive all assigned packets
</p></dd>
</dl>


<p><b>Since:</b>
1.6
</p>
</dd></dl>



<dl>
<dt><a name="index-RxFilterInfo"></a>Object: <strong>RxFilterInfo</strong></dt>
<dd>
<p>Rx-filter information for a NIC.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>net client name
</p></dd>
<dt><code>promiscuous: boolean</code></dt>
<dd><p>whether promiscuous mode is enabled
</p></dd>
<dt><code>multicast: RxState</code></dt>
<dd><p>multicast receive state
</p></dd>
<dt><code>unicast: RxState</code></dt>
<dd><p>unicast receive state
</p></dd>
<dt><code>vlan: RxState</code></dt>
<dd><p>vlan receive state (Since 2.0)
</p></dd>
<dt><code>broadcast-allowed: boolean</code></dt>
<dd><p>whether to receive broadcast
</p></dd>
<dt><code>multicast-overflow: boolean</code></dt>
<dd><p>multicast table is overflowed or not
</p></dd>
<dt><code>unicast-overflow: boolean</code></dt>
<dd><p>unicast table is overflowed or not
</p></dd>
<dt><code>main-mac: string</code></dt>
<dd><p>the main macaddr string
</p></dd>
<dt><code>vlan-table: array of int</code></dt>
<dd><p>a list of active vlan id
</p></dd>
<dt><code>unicast-table: array of string</code></dt>
<dd><p>a list of unicast macaddr string
</p></dd>
<dt><code>multicast-table: array of string</code></dt>
<dd><p>a list of multicast macaddr string
</p></dd>
</dl>


<p><b>Since:</b>
1.6
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002drx_002dfilter"></a>Command: <em></em> <strong>query-rx-filter</strong></dt>
<dd>
<p>Return rx-filter information for all NICs (or for the given NIC).
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code> (optional)</dt>
<dd><p>net client name
</p></dd>
</dl>


<p><b>Returns:</b>
list of <code>RxFilterInfo</code> for all NICs (or for the given NIC).
Returns an error if the given <code>name</code> doesn&rsquo;t exist, or given
NIC doesn&rsquo;t support rx-filter querying, or given net client
isn&rsquo;t a NIC.
</p>
<p><b>Since:</b>
1.6
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-rx-filter&quot;, &quot;arguments&quot;: { &quot;name&quot;: &quot;vnet0&quot; } }
&lt;- { &quot;return&quot;: [
        {
            &quot;promiscuous&quot;: true,
            &quot;name&quot;: &quot;vnet0&quot;,
            &quot;main-mac&quot;: &quot;52:54:00:12:34:56&quot;,
            &quot;unicast&quot;: &quot;normal&quot;,
            &quot;vlan&quot;: &quot;normal&quot;,
            &quot;vlan-table&quot;: [
                4,
                0
            ],
            &quot;unicast-table&quot;: [
            ],
            &quot;multicast&quot;: &quot;normal&quot;,
            &quot;multicast-overflow&quot;: false,
            &quot;unicast-overflow&quot;: false,
            &quot;multicast-table&quot;: [
                &quot;01:00:5e:00:00:01&quot;,
                &quot;33:33:00:00:00:01&quot;,
                &quot;33:33:ff:12:34:56&quot;
            ],
            &quot;broadcast-allowed&quot;: false
        }
      ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-NIC_005fRX_005fFILTER_005fCHANGED"></a>Event: <em></em> <strong>NIC_RX_FILTER_CHANGED</strong></dt>
<dd>
<p>Emitted once until the &rsquo;query-rx-filter&rsquo; command is executed, the first event
will always be emitted
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code> (optional)</dt>
<dd><p>net client name
</p></dd>
<dt><code>path: string</code></dt>
<dd><p>device path
</p></dd>
</dl>


<p><b>Since:</b>
1.6
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;NIC_RX_FILTER_CHANGED&quot;,
     &quot;data&quot;: { &quot;name&quot;: &quot;vnet0&quot;,
               &quot;path&quot;: &quot;/machine/peripheral/vnet0/virtio-backend&quot; },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1368697518, &quot;microseconds&quot;: 326866 } }
   }
</pre></div>


</dd></dl>


<a name="Rocker-switch-device"></a>
<h3 class="section">1.10 Rocker switch device</h3>


<dl>
<dt><a name="index-RockerSwitch"></a>Object: <strong>RockerSwitch</strong></dt>
<dd>
<p>Rocker switch information.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>switch name
</p></dd>
<dt><code>id: int</code></dt>
<dd><p>switch ID
</p></dd>
<dt><code>ports: int</code></dt>
<dd><p>number of front-panel ports
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002drocker"></a>Command: <em></em> <strong>query-rocker</strong></dt>
<dd>
<p>Return rocker switch information.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Returns:</b>
<code>Rocker</code> information
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-rocker&quot;, &quot;arguments&quot;: { &quot;name&quot;: &quot;sw1&quot; } }
&lt;- { &quot;return&quot;: {&quot;name&quot;: &quot;sw1&quot;, &quot;ports&quot;: 2, &quot;id&quot;: 1327446905938}}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-RockerPortDuplex"></a>Enum: <strong>RockerPortDuplex</strong></dt>
<dd>
<p>An eumeration of port duplex states.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>half</code></dt>
<dd><p>half duplex
</p></dd>
<dt><code>full</code></dt>
<dd><p>full duplex
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-RockerPortAutoneg"></a>Enum: <strong>RockerPortAutoneg</strong></dt>
<dd>
<p>An eumeration of port autoneg states.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>off</code></dt>
<dd><p>autoneg is off
</p></dd>
<dt><code>on</code></dt>
<dd><p>autoneg is on
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-RockerPort"></a>Object: <strong>RockerPort</strong></dt>
<dd>
<p>Rocker switch port information.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>port name
</p></dd>
<dt><code>enabled: boolean</code></dt>
<dd><p>port is enabled for I/O
</p></dd>
<dt><code>link-up: boolean</code></dt>
<dd><p>physical link is UP on port
</p></dd>
<dt><code>speed: int</code></dt>
<dd><p>port link speed in Mbps
</p></dd>
<dt><code>duplex: RockerPortDuplex</code></dt>
<dd><p>port link duplex
</p></dd>
<dt><code>autoneg: RockerPortAutoneg</code></dt>
<dd><p>port link autoneg
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002drocker_002dports"></a>Command: <em></em> <strong>query-rocker-ports</strong></dt>
<dd>
<p>Return rocker switch port information.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Returns:</b>
a list of <code>RockerPort</code> information
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-rocker-ports&quot;, &quot;arguments&quot;: { &quot;name&quot;: &quot;sw1&quot; } }
&lt;- { &quot;return&quot;: [ {&quot;duplex&quot;: &quot;full&quot;, &quot;enabled&quot;: true, &quot;name&quot;: &quot;sw1.1&quot;,
                  &quot;autoneg&quot;: &quot;off&quot;, &quot;link-up&quot;: true, &quot;speed&quot;: 10000},
                 {&quot;duplex&quot;: &quot;full&quot;, &quot;enabled&quot;: true, &quot;name&quot;: &quot;sw1.2&quot;,
                  &quot;autoneg&quot;: &quot;off&quot;, &quot;link-up&quot;: true, &quot;speed&quot;: 10000}
   ]}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-RockerOfDpaFlowKey"></a>Object: <strong>RockerOfDpaFlowKey</strong></dt>
<dd>
<p>Rocker switch OF-DPA flow key
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>priority: int</code></dt>
<dd><p>key priority, 0 being lowest priority
</p></dd>
<dt><code>tbl-id: int</code></dt>
<dd><p>flow table ID
</p></dd>
<dt><code>in-pport: int</code> (optional)</dt>
<dd><p>physical input port
</p></dd>
<dt><code>tunnel-id: int</code> (optional)</dt>
<dd><p>tunnel ID
</p></dd>
<dt><code>vlan-id: int</code> (optional)</dt>
<dd><p>VLAN ID
</p></dd>
<dt><code>eth-type: int</code> (optional)</dt>
<dd><p>Ethernet header type
</p></dd>
<dt><code>eth-src: string</code> (optional)</dt>
<dd><p>Ethernet header source MAC address
</p></dd>
<dt><code>eth-dst: string</code> (optional)</dt>
<dd><p>Ethernet header destination MAC address
</p></dd>
<dt><code>ip-proto: int</code> (optional)</dt>
<dd><p>IP Header protocol field
</p></dd>
<dt><code>ip-tos: int</code> (optional)</dt>
<dd><p>IP header TOS field
</p></dd>
<dt><code>ip-dst: string</code> (optional)</dt>
<dd><p>IP header destination address
</p></dd>
</dl>


<p><b>Note:</b>
optional members may or may not appear in the flow key
depending if they&rsquo;re relevant to the flow key.
</p>
<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-RockerOfDpaFlowMask"></a>Object: <strong>RockerOfDpaFlowMask</strong></dt>
<dd>
<p>Rocker switch OF-DPA flow mask
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>in-pport: int</code> (optional)</dt>
<dd><p>physical input port
</p></dd>
<dt><code>tunnel-id: int</code> (optional)</dt>
<dd><p>tunnel ID
</p></dd>
<dt><code>vlan-id: int</code> (optional)</dt>
<dd><p>VLAN ID
</p></dd>
<dt><code>eth-src: string</code> (optional)</dt>
<dd><p>Ethernet header source MAC address
</p></dd>
<dt><code>eth-dst: string</code> (optional)</dt>
<dd><p>Ethernet header destination MAC address
</p></dd>
<dt><code>ip-proto: int</code> (optional)</dt>
<dd><p>IP Header protocol field
</p></dd>
<dt><code>ip-tos: int</code> (optional)</dt>
<dd><p>IP header TOS field
</p></dd>
</dl>


<p><b>Note:</b>
optional members may or may not appear in the flow mask
depending if they&rsquo;re relevant to the flow mask.
</p>
<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-RockerOfDpaFlowAction"></a>Object: <strong>RockerOfDpaFlowAction</strong></dt>
<dd>
<p>Rocker switch OF-DPA flow action
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>goto-tbl: int</code> (optional)</dt>
<dd><p>next table ID
</p></dd>
<dt><code>group-id: int</code> (optional)</dt>
<dd><p>group ID
</p></dd>
<dt><code>tunnel-lport: int</code> (optional)</dt>
<dd><p>tunnel logical port ID
</p></dd>
<dt><code>vlan-id: int</code> (optional)</dt>
<dd><p>VLAN ID
</p></dd>
<dt><code>new-vlan-id: int</code> (optional)</dt>
<dd><p>new VLAN ID
</p></dd>
<dt><code>out-pport: int</code> (optional)</dt>
<dd><p>physical output port
</p></dd>
</dl>


<p><b>Note:</b>
optional members may or may not appear in the flow action
depending if they&rsquo;re relevant to the flow action.
</p>
<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-RockerOfDpaFlow"></a>Object: <strong>RockerOfDpaFlow</strong></dt>
<dd>
<p>Rocker switch OF-DPA flow
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>cookie: int</code></dt>
<dd><p>flow unique cookie ID
</p></dd>
<dt><code>hits: int</code></dt>
<dd><p>count of matches (hits) on flow
</p></dd>
<dt><code>key: RockerOfDpaFlowKey</code></dt>
<dd><p>flow key
</p></dd>
<dt><code>mask: RockerOfDpaFlowMask</code></dt>
<dd><p>flow mask
</p></dd>
<dt><code>action: RockerOfDpaFlowAction</code></dt>
<dd><p>flow action
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002drocker_002dof_002ddpa_002dflows"></a>Command: <em></em> <strong>query-rocker-of-dpa-flows</strong></dt>
<dd>
<p>Return rocker OF-DPA flow information.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>switch name
</p></dd>
<dt><code>tbl-id: int</code> (optional)</dt>
<dd><p>flow table ID.  If tbl-id is not specified, returns
flow information for all tables.
</p></dd>
</dl>


<p><b>Returns:</b>
rocker OF-DPA flow information
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-rocker-of-dpa-flows&quot;,
     &quot;arguments&quot;: { &quot;name&quot;: &quot;sw1&quot; } }
&lt;- { &quot;return&quot;: [ {&quot;key&quot;: {&quot;in-pport&quot;: 0, &quot;priority&quot;: 1, &quot;tbl-id&quot;: 0},
                  &quot;hits&quot;: 138,
                  &quot;cookie&quot;: 0,
                  &quot;action&quot;: {&quot;goto-tbl&quot;: 10},
                  &quot;mask&quot;: {&quot;in-pport&quot;: 4294901760}
                 },
                 {...more...},
   ]}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-RockerOfDpaGroup"></a>Object: <strong>RockerOfDpaGroup</strong></dt>
<dd>
<p>Rocker switch OF-DPA group
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>id: int</code></dt>
<dd><p>group unique ID
</p></dd>
<dt><code>type: int</code></dt>
<dd><p>group type
</p></dd>
<dt><code>vlan-id: int</code> (optional)</dt>
<dd><p>VLAN ID
</p></dd>
<dt><code>pport: int</code> (optional)</dt>
<dd><p>physical port number
</p></dd>
<dt><code>index: int</code> (optional)</dt>
<dd><p>group index, unique with group type
</p></dd>
<dt><code>out-pport: int</code> (optional)</dt>
<dd><p>output physical port number
</p></dd>
<dt><code>group-id: int</code> (optional)</dt>
<dd><p>next group ID
</p></dd>
<dt><code>set-vlan-id: int</code> (optional)</dt>
<dd><p>VLAN ID to set
</p></dd>
<dt><code>pop-vlan: int</code> (optional)</dt>
<dd><p>pop VLAN headr from packet
</p></dd>
<dt><code>group-ids: array of int</code> (optional)</dt>
<dd><p>list of next group IDs
</p></dd>
<dt><code>set-eth-src: string</code> (optional)</dt>
<dd><p>set source MAC address in Ethernet header
</p></dd>
<dt><code>set-eth-dst: string</code> (optional)</dt>
<dd><p>set destination MAC address in Ethernet header
</p></dd>
<dt><code>ttl-check: int</code> (optional)</dt>
<dd><p>perform TTL check
</p></dd>
</dl>


<p><b>Note:</b>
optional members may or may not appear in the group depending
if they&rsquo;re relevant to the group type.
</p>
<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002drocker_002dof_002ddpa_002dgroups"></a>Command: <em></em> <strong>query-rocker-of-dpa-groups</strong></dt>
<dd>
<p>Return rocker OF-DPA group information.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>switch name
</p></dd>
<dt><code>type: int</code> (optional)</dt>
<dd><p>group type.  If type is not specified, returns
group information for all group types.
</p></dd>
</dl>


<p><b>Returns:</b>
rocker OF-DPA group information
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-rocker-of-dpa-groups&quot;,
     &quot;arguments&quot;: { &quot;name&quot;: &quot;sw1&quot; } }
&lt;- { &quot;return&quot;: [ {&quot;type&quot;: 0, &quot;out-pport&quot;: 2,
                  &quot;pport&quot;: 2, &quot;vlan-id&quot;: 3841,
                  &quot;pop-vlan&quot;: 1, &quot;id&quot;: 251723778},
                 {&quot;type&quot;: 0, &quot;out-pport&quot;: 0,
                  &quot;pport&quot;: 0, &quot;vlan-id&quot;: 3841,
                  &quot;pop-vlan&quot;: 1, &quot;id&quot;: 251723776},
                 {&quot;type&quot;: 0, &quot;out-pport&quot;: 1,
                  &quot;pport&quot;: 1, &quot;vlan-id&quot;: 3840,
                  &quot;pop-vlan&quot;: 1, &quot;id&quot;: 251658241},
                 {&quot;type&quot;: 0, &quot;out-pport&quot;: 0,
                  &quot;pport&quot;: 0, &quot;vlan-id&quot;: 3840,
                  &quot;pop-vlan&quot;: 1, &quot;id&quot;: 251658240}
   ]}
</pre></div>


</dd></dl>


<a name="TPM-_0028trusted-platform-module_0029-devices"></a>
<h3 class="section">1.11 TPM (trusted platform module) devices</h3>


<dl>
<dt><a name="index-TpmModel"></a>Enum: <strong>TpmModel</strong></dt>
<dd>
<p>An enumeration of TPM models
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>tpm-tis</code></dt>
<dd><p>TPM TIS model
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dtpm_002dmodels"></a>Command: <em></em> <strong>query-tpm-models</strong></dt>
<dd>
<p>Return a list of supported TPM models
</p>

<p><b>Returns:</b>
a list of TpmModel
</p>
<p><b>Since:</b>
1.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-tpm-models&quot; }
&lt;- { &quot;return&quot;: [ &quot;tpm-tis&quot; ] }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-TpmType"></a>Enum: <strong>TpmType</strong></dt>
<dd>
<p>An enumeration of TPM types
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>passthrough</code></dt>
<dd><p>TPM passthrough type
</p></dd>
<dt><code>emulator</code></dt>
<dd><p>Software Emulator TPM type
Since: 2.11
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dtpm_002dtypes"></a>Command: <em></em> <strong>query-tpm-types</strong></dt>
<dd>
<p>Return a list of supported TPM types
</p>

<p><b>Returns:</b>
a list of TpmType
</p>
<p><b>Since:</b>
1.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-tpm-types&quot; }
&lt;- { &quot;return&quot;: [ &quot;passthrough&quot;, &quot;emulator&quot; ] }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-TPMPassthroughOptions"></a>Object: <strong>TPMPassthroughOptions</strong></dt>
<dd>
<p>Information about the TPM passthrough type
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>path: string</code> (optional)</dt>
<dd><p>string describing the path used for accessing the TPM device
</p></dd>
<dt><code>cancel-path: string</code> (optional)</dt>
<dd><p>string showing the TPM&rsquo;s sysfs cancel file
for cancellation of TPM commands while they are executing
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-TPMEmulatorOptions"></a>Object: <strong>TPMEmulatorOptions</strong></dt>
<dd>
<p>Information about the TPM emulator type
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>chardev: string</code></dt>
<dd><p>Name of a unix socket chardev
</p></dd>
</dl>


<p><b>Since:</b>
2.11
</p>
</dd></dl>



<dl>
<dt><a name="index-TpmTypeOptions"></a>Object: <strong>TpmTypeOptions</strong></dt>
<dd>
<p>A union referencing different TPM backend types&rsquo; configuration options
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type</code></dt>
<dd><p>&rsquo;passthrough&rsquo; The configuration options for the TPM passthrough type
&rsquo;emulator&rsquo; The configuration options for TPM emulator backend type
</p></dd>
<dt><code>data: TPMPassthroughOptions</code> when <code>type</code> is <tt>&quot;passthrough&quot;</tt></dt>
<dt><code>data: TPMEmulatorOptions</code> when <code>type</code> is <tt>&quot;emulator&quot;</tt></dt>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-TPMInfo"></a>Object: <strong>TPMInfo</strong></dt>
<dd>
<p>Information about the TPM
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>The Id of the TPM
</p></dd>
<dt><code>model: TpmModel</code></dt>
<dd><p>The TPM frontend model
</p></dd>
<dt><code>options: TpmTypeOptions</code></dt>
<dd><p>The TPM (backend) type configuration options
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dtpm"></a>Command: <em></em> <strong>query-tpm</strong></dt>
<dd>
<p>Return information about the TPM device
</p>

<p><b>Returns:</b>
<code>TPMInfo</code> on success
</p>
<p><b>Since:</b>
1.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-tpm&quot; }
&lt;- { &quot;return&quot;:
     [
       { &quot;model&quot;: &quot;tpm-tis&quot;,
         &quot;options&quot;:
           { &quot;type&quot;: &quot;passthrough&quot;,
             &quot;data&quot;:
               { &quot;cancel-path&quot;: &quot;/sys/class/misc/tpm0/device/cancel&quot;,
                 &quot;path&quot;: &quot;/dev/tpm0&quot;
               }
           },
         &quot;id&quot;: &quot;tpm0&quot;
       }
     ]
   }
</pre></div>


</dd></dl>


<a name="Remote-desktop"></a>
<h3 class="section">1.12 Remote desktop</h3>


<dl>
<dt><a name="index-set_005fpassword"></a>Command: <em></em> <strong>set_password</strong></dt>
<dd>
<p>Sets the password of a remote display session.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>protocol: string</code></dt>
<dd><p>&lsquo;vnc&rsquo; to modify the VNC server password
&lsquo;spice&rsquo; to modify the Spice server password
</p></dd>
<dt><code>password: string</code></dt>
<dd><p>the new password
</p></dd>
<dt><code>connected: string</code> (optional)</dt>
<dd><p>how to handle existing clients when changing the
password.  If nothing is specified, defaults to &lsquo;keep&rsquo;
&lsquo;fail&rsquo; to fail the command if clients are connected
&lsquo;disconnect&rsquo; to disconnect existing clients
&lsquo;keep&rsquo; to maintain existing clients
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If Spice is not enabled, DeviceNotFound
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;set_password&quot;, &quot;arguments&quot;: { &quot;protocol&quot;: &quot;vnc&quot;,
                                               &quot;password&quot;: &quot;secret&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-expire_005fpassword"></a>Command: <em></em> <strong>expire_password</strong></dt>
<dd>
<p>Expire the password of a remote display server.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>protocol: string</code></dt>
<dd><p>the name of the remote display protocol &lsquo;vnc&rsquo; or &lsquo;spice&rsquo;
</p></dd>
<dt><code>time: string</code></dt>
<dd><p>when to expire the password.
&lsquo;now&rsquo; to expire the password immediately
&lsquo;never&rsquo; to cancel password expiration
&lsquo;+INT&rsquo; where INT is the number of seconds from now (integer)
&lsquo;INT&rsquo; where INT is the absolute time in seconds
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If <code>protocol</code> is &lsquo;spice&rsquo; and Spice is not active, DeviceNotFound
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
Time is relative to the server and currently there is no way to
coordinate server time with client time.  It is not recommended to
use the absolute time version of the <code>time</code> parameter unless you&rsquo;re
sure you are on the same machine as the QEMU instance.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;expire_password&quot;, &quot;arguments&quot;: { &quot;protocol&quot;: &quot;vnc&quot;,
                                                  &quot;time&quot;: &quot;+60&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-screendump"></a>Command: <em></em> <strong>screendump</strong></dt>
<dd>
<p>Write a PPM of the VGA screen to a file.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>filename: string</code></dt>
<dd><p>the path of a new PPM file to store the image
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;screendump&quot;,
     &quot;arguments&quot;: { &quot;filename&quot;: &quot;/tmp/image&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>


<a name="Spice"></a>
<h4 class="subsection">1.12.1 Spice</h4>


<dl>
<dt><a name="index-SpiceBasicInfo"></a>Object: <strong>SpiceBasicInfo</strong></dt>
<dd>
<p>The basic information for SPICE network connection
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>host: string</code></dt>
<dd><p>IP address
</p></dd>
<dt><code>port: string</code></dt>
<dd><p>port number
</p></dd>
<dt><code>family: NetworkAddressFamily</code></dt>
<dd><p>address family
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-SpiceServerInfo"></a>Object: <strong>SpiceServerInfo</strong></dt>
<dd>
<p>Information about a SPICE server
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>auth: string</code> (optional)</dt>
<dd><p>authentication method
</p></dd>
<dt>The members of <code>SpiceBasicInfo</code></dt>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-SpiceChannel"></a>Object: <strong>SpiceChannel</strong></dt>
<dd>
<p>Information about a SPICE client channel.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>connection-id: int</code></dt>
<dd><p>SPICE connection id number.  All channels with the same id
belong to the same SPICE session.
</p></dd>
<dt><code>channel-type: int</code></dt>
<dd><p>SPICE channel type number.  &quot;1&quot; is the main control
channel, filter for this one if you want to track spice
sessions only
</p></dd>
<dt><code>channel-id: int</code></dt>
<dd><p>SPICE channel ID number.  Usually &quot;0&quot;, might be different when
multiple channels of the same type exist, such as multiple
display channels in a multihead setup
</p></dd>
<dt><code>tls: boolean</code></dt>
<dd><p>true if the channel is encrypted, false otherwise.
</p></dd>
<dt>The members of <code>SpiceBasicInfo</code></dt>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-SpiceQueryMouseMode"></a>Enum: <strong>SpiceQueryMouseMode</strong></dt>
<dd>
<p>An enumeration of Spice mouse states.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>client</code></dt>
<dd><p>Mouse cursor position is determined by the client.
</p></dd>
<dt><code>server</code></dt>
<dd><p>Mouse cursor position is determined by the server.
</p></dd>
<dt><code>unknown</code></dt>
<dd><p>No information is available about mouse mode used by
the spice server.
</p></dd>
</dl>


<p><b>Note:</b>
spice/enums.h has a SpiceMouseMode already, hence the name.
</p>
<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-SpiceInfo"></a>Object: <strong>SpiceInfo</strong></dt>
<dd>
<p>Information about the SPICE session.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>enabled: boolean</code></dt>
<dd><p>true if the SPICE server is enabled, false otherwise
</p></dd>
<dt><code>migrated: boolean</code></dt>
<dd><p>true if the last guest migration completed and spice
migration had completed as well. false otherwise. (since 1.4)
</p></dd>
<dt><code>host: string</code> (optional)</dt>
<dd><p>The hostname the SPICE server is bound to.  This depends on
the name resolution on the host and may be an IP address.
</p></dd>
<dt><code>port: int</code> (optional)</dt>
<dd><p>The SPICE server&rsquo;s port number.
</p></dd>
<dt><code>compiled-version: string</code> (optional)</dt>
<dd><p>SPICE server version.
</p></dd>
<dt><code>tls-port: int</code> (optional)</dt>
<dd><p>The SPICE server&rsquo;s TLS port number.
</p></dd>
<dt><code>auth: string</code> (optional)</dt>
<dd><p>the current authentication type used by the server
&rsquo;none&rsquo;  if no authentication is being used
&rsquo;spice&rsquo; uses SASL or direct TLS authentication, depending on command
line options
</p></dd>
<dt><code>mouse-mode: SpiceQueryMouseMode</code></dt>
<dd><p>The mode in which the mouse cursor is displayed currently. Can
be determined by the client or the server, or unknown if spice
server doesn&rsquo;t provide this information. (since: 1.1)
</p></dd>
<dt><code>channels: array of SpiceChannel</code> (optional)</dt>
<dd><p>a list of <code>SpiceChannel</code> for each active spice channel
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dspice"></a>Command: <em></em> <strong>query-spice</strong></dt>
<dd>
<p>Returns information about the current SPICE server
</p>

<p><b>Returns:</b>
<code>SpiceInfo</code>
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-spice&quot; }
&lt;- { &quot;return&quot;: {
         &quot;enabled&quot;: true,
         &quot;auth&quot;: &quot;spice&quot;,
         &quot;port&quot;: 5920,
         &quot;tls-port&quot;: 5921,
         &quot;host&quot;: &quot;0.0.0.0&quot;,
         &quot;channels&quot;: [
            {
               &quot;port&quot;: &quot;54924&quot;,
               &quot;family&quot;: &quot;ipv4&quot;,
               &quot;channel-type&quot;: 1,
               &quot;connection-id&quot;: 1804289383,
               &quot;host&quot;: &quot;127.0.0.1&quot;,
               &quot;channel-id&quot;: 0,
               &quot;tls&quot;: true
            },
            {
               &quot;port&quot;: &quot;36710&quot;,
               &quot;family&quot;: &quot;ipv4&quot;,
               &quot;channel-type&quot;: 4,
               &quot;connection-id&quot;: 1804289383,
               &quot;host&quot;: &quot;127.0.0.1&quot;,
               &quot;channel-id&quot;: 0,
               &quot;tls&quot;: false
            },
            [ ... more channels follow ... ]
         ]
      }
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-SPICE_005fCONNECTED"></a>Event: <em></em> <strong>SPICE_CONNECTED</strong></dt>
<dd>
<p>Emitted when a SPICE client establishes a connection
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>server: SpiceBasicInfo</code></dt>
<dd><p>server information
</p></dd>
<dt><code>client: SpiceBasicInfo</code></dt>
<dd><p>client information
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;timestamp&quot;: {&quot;seconds&quot;: 1290688046, &quot;microseconds&quot;: 388707},
     &quot;event&quot;: &quot;SPICE_CONNECTED&quot;,
     &quot;data&quot;: {
       &quot;server&quot;: { &quot;port&quot;: &quot;5920&quot;, &quot;family&quot;: &quot;ipv4&quot;, &quot;host&quot;: &quot;127.0.0.1&quot;},
       &quot;client&quot;: {&quot;port&quot;: &quot;52873&quot;, &quot;family&quot;: &quot;ipv4&quot;, &quot;host&quot;: &quot;127.0.0.1&quot;}
   }}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-SPICE_005fINITIALIZED"></a>Event: <em></em> <strong>SPICE_INITIALIZED</strong></dt>
<dd>
<p>Emitted after initial handshake and authentication takes place (if any)
and the SPICE channel is up and running
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>server: SpiceServerInfo</code></dt>
<dd><p>server information
</p></dd>
<dt><code>client: SpiceChannel</code></dt>
<dd><p>client information
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;timestamp&quot;: {&quot;seconds&quot;: 1290688046, &quot;microseconds&quot;: 417172},
     &quot;event&quot;: &quot;SPICE_INITIALIZED&quot;,
     &quot;data&quot;: {&quot;server&quot;: {&quot;auth&quot;: &quot;spice&quot;, &quot;port&quot;: &quot;5921&quot;,
                         &quot;family&quot;: &quot;ipv4&quot;, &quot;host&quot;: &quot;127.0.0.1&quot;},
              &quot;client&quot;: {&quot;port&quot;: &quot;49004&quot;, &quot;family&quot;: &quot;ipv4&quot;, &quot;channel-type&quot;: 3,
                         &quot;connection-id&quot;: 1804289383, &quot;host&quot;: &quot;127.0.0.1&quot;,
                         &quot;channel-id&quot;: 0, &quot;tls&quot;: true}
   }}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-SPICE_005fDISCONNECTED"></a>Event: <em></em> <strong>SPICE_DISCONNECTED</strong></dt>
<dd>
<p>Emitted when the SPICE connection is closed
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>server: SpiceBasicInfo</code></dt>
<dd><p>server information
</p></dd>
<dt><code>client: SpiceBasicInfo</code></dt>
<dd><p>client information
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;timestamp&quot;: {&quot;seconds&quot;: 1290688046, &quot;microseconds&quot;: 388707},
     &quot;event&quot;: &quot;SPICE_DISCONNECTED&quot;,
     &quot;data&quot;: {
       &quot;server&quot;: { &quot;port&quot;: &quot;5920&quot;, &quot;family&quot;: &quot;ipv4&quot;, &quot;host&quot;: &quot;127.0.0.1&quot;},
       &quot;client&quot;: {&quot;port&quot;: &quot;52873&quot;, &quot;family&quot;: &quot;ipv4&quot;, &quot;host&quot;: &quot;127.0.0.1&quot;}
   }}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-SPICE_005fMIGRATE_005fCOMPLETED"></a>Event: <em></em> <strong>SPICE_MIGRATE_COMPLETED</strong></dt>
<dd>
<p>Emitted when SPICE migration has completed
</p>

<p><b>Since:</b>
1.3
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;timestamp&quot;: {&quot;seconds&quot;: 1290688046, &quot;microseconds&quot;: 417172},
     &quot;event&quot;: &quot;SPICE_MIGRATE_COMPLETED&quot; }
</pre></div>


</dd></dl>


<a name="VNC"></a>
<h4 class="subsection">1.12.2 VNC</h4>


<dl>
<dt><a name="index-VncBasicInfo"></a>Object: <strong>VncBasicInfo</strong></dt>
<dd>
<p>The basic information for vnc network connection
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>host: string</code></dt>
<dd><p>IP address
</p></dd>
<dt><code>service: string</code></dt>
<dd><p>The service name of the vnc port. This may depend on the host
system&rsquo;s service database so symbolic names should not be relied
on.
</p></dd>
<dt><code>family: NetworkAddressFamily</code></dt>
<dd><p>address family
</p></dd>
<dt><code>websocket: boolean</code></dt>
<dd><p>true in case the socket is a websocket (since 2.3).
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-VncServerInfo"></a>Object: <strong>VncServerInfo</strong></dt>
<dd>
<p>The network connection information for server
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>auth: string</code> (optional)</dt>
<dd><p>authentication method used for
the plain (non-websocket) VNC server
</p></dd>
<dt>The members of <code>VncBasicInfo</code></dt>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-VncClientInfo"></a>Object: <strong>VncClientInfo</strong></dt>
<dd>
<p>Information about a connected VNC client.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>x509_dname: string</code> (optional)</dt>
<dd><p>If x509 authentication is in use, the Distinguished
Name of the client.
</p></dd>
<dt><code>sasl_username: string</code> (optional)</dt>
<dd><p>If SASL authentication is in use, the SASL username
used for authentication.
</p></dd>
<dt>The members of <code>VncBasicInfo</code></dt>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-VncInfo"></a>Object: <strong>VncInfo</strong></dt>
<dd>
<p>Information about the VNC session.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>enabled: boolean</code></dt>
<dd><p>true if the VNC server is enabled, false otherwise
</p></dd>
<dt><code>host: string</code> (optional)</dt>
<dd><p>The hostname the VNC server is bound to.  This depends on
the name resolution on the host and may be an IP address.
</p></dd>
<dt><code>family: NetworkAddressFamily</code> (optional)</dt>
<dd><p>&rsquo;ipv6&rsquo; if the host is listening for IPv6 connections
&rsquo;ipv4&rsquo; if the host is listening for IPv4 connections
&rsquo;unix&rsquo; if the host is listening on a unix domain socket
&rsquo;unknown&rsquo; otherwise
</p></dd>
<dt><code>service: string</code> (optional)</dt>
<dd><p>The service name of the server&rsquo;s port.  This may depends
on the host system&rsquo;s service database so symbolic names should not
be relied on.
</p></dd>
<dt><code>auth: string</code> (optional)</dt>
<dd><p>the current authentication type used by the server
&rsquo;none&rsquo; if no authentication is being used
&rsquo;vnc&rsquo; if VNC authentication is being used
&rsquo;vencrypt+plain&rsquo; if VEncrypt is used with plain text authentication
&rsquo;vencrypt+tls+none&rsquo; if VEncrypt is used with TLS and no authentication
&rsquo;vencrypt+tls+vnc&rsquo; if VEncrypt is used with TLS and VNC authentication
&rsquo;vencrypt+tls+plain&rsquo; if VEncrypt is used with TLS and plain text auth
&rsquo;vencrypt+x509+none&rsquo; if VEncrypt is used with x509 and no auth
&rsquo;vencrypt+x509+vnc&rsquo; if VEncrypt is used with x509 and VNC auth
&rsquo;vencrypt+x509+plain&rsquo; if VEncrypt is used with x509 and plain text auth
&rsquo;vencrypt+tls+sasl&rsquo; if VEncrypt is used with TLS and SASL auth
&rsquo;vencrypt+x509+sasl&rsquo; if VEncrypt is used with x509 and SASL auth
</p></dd>
<dt><code>clients: array of VncClientInfo</code> (optional)</dt>
<dd><p>a list of <code>VncClientInfo</code> of all currently connected clients
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-VncPrimaryAuth"></a>Enum: <strong>VncPrimaryAuth</strong></dt>
<dd>
<p>vnc primary authentication method.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>none</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vnc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ra2</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ra2ne</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tight</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ultra</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tls</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>vencrypt</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>sasl</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-VncVencryptSubAuth"></a>Enum: <strong>VncVencryptSubAuth</strong></dt>
<dd>
<p>vnc sub authentication method with vencrypt.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>plain</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tls-none</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>x509-none</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tls-vnc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>x509-vnc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tls-plain</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>x509-plain</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tls-sasl</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>x509-sasl</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-VncServerInfo2"></a>Object: <strong>VncServerInfo2</strong></dt>
<dd>
<p>The network connection information for server
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>auth: VncPrimaryAuth</code></dt>
<dd><p>The current authentication type used by the servers
</p></dd>
<dt><code>vencrypt: VncVencryptSubAuth</code> (optional)</dt>
<dd><p>The vencrypt sub authentication type used by the
servers, only specified in case auth == vencrypt.
</p></dd>
<dt>The members of <code>VncBasicInfo</code></dt>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-VncInfo2"></a>Object: <strong>VncInfo2</strong></dt>
<dd>
<p>Information about a vnc server
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>vnc server name.
</p></dd>
<dt><code>server: array of VncServerInfo2</code></dt>
<dd><p>A list of <code>VncBasincInfo</code> describing all listening sockets.
The list can be empty (in case the vnc server is disabled).
It also may have multiple entries: normal + websocket,
possibly also ipv4 + ipv6 in the future.
</p></dd>
<dt><code>clients: array of VncClientInfo</code></dt>
<dd><p>A list of <code>VncClientInfo</code> of all currently connected clients.
The list can be empty, for obvious reasons.
</p></dd>
<dt><code>auth: VncPrimaryAuth</code></dt>
<dd><p>The current authentication type used by the non-websockets servers
</p></dd>
<dt><code>vencrypt: VncVencryptSubAuth</code> (optional)</dt>
<dd><p>The vencrypt authentication type used by the servers,
only specified in case auth == vencrypt.
</p></dd>
<dt><code>display: string</code> (optional)</dt>
<dd><p>The display device the vnc server is linked to.
</p></dd>
</dl>


<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dvnc"></a>Command: <em></em> <strong>query-vnc</strong></dt>
<dd>
<p>Returns information about the current VNC server
</p>

<p><b>Returns:</b>
<code>VncInfo</code>
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-vnc&quot; }
&lt;- { &quot;return&quot;: {
         &quot;enabled&quot;:true,
         &quot;host&quot;:&quot;0.0.0.0&quot;,
         &quot;service&quot;:&quot;50402&quot;,
         &quot;auth&quot;:&quot;vnc&quot;,
         &quot;family&quot;:&quot;ipv4&quot;,
         &quot;clients&quot;:[
            {
               &quot;host&quot;:&quot;127.0.0.1&quot;,
               &quot;service&quot;:&quot;50401&quot;,
               &quot;family&quot;:&quot;ipv4&quot;
            }
         ]
      }
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-query_002dvnc_002dservers"></a>Command: <em></em> <strong>query-vnc-servers</strong></dt>
<dd>
<p>Returns a list of vnc servers.  The list can be empty.
</p>

<p><b>Returns:</b>
a list of <code>VncInfo2</code>
</p>
<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-change_002dvnc_002dpassword"></a>Command: <em></em> <strong>change-vnc-password</strong></dt>
<dd>
<p>Change the VNC server password.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>password: string</code></dt>
<dd><p>the new password to use with VNC authentication
</p></dd>
</dl>


<p><b>Since:</b>
1.1
</p>
<p><b>Notes:</b>
An empty password in this command will set the password to the empty
string.  Existing clients are unaffected by executing this command.
</p>
</dd></dl>



<dl>
<dt><a name="index-VNC_005fCONNECTED"></a>Event: <em></em> <strong>VNC_CONNECTED</strong></dt>
<dd>
<p>Emitted when a VNC client establishes a connection
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>server: VncServerInfo</code></dt>
<dd><p>server information
</p></dd>
<dt><code>client: VncBasicInfo</code></dt>
<dd><p>client information
</p></dd>
</dl>


<p><b>Note:</b>
This event is emitted before any authentication takes place, thus
the authentication ID is not provided
</p>
<p><b>Since:</b>
0.13.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;VNC_CONNECTED&quot;,
     &quot;data&quot;: {
           &quot;server&quot;: { &quot;auth&quot;: &quot;sasl&quot;, &quot;family&quot;: &quot;ipv4&quot;,
                       &quot;service&quot;: &quot;5901&quot;, &quot;host&quot;: &quot;0.0.0.0&quot; },
           &quot;client&quot;: { &quot;family&quot;: &quot;ipv4&quot;, &quot;service&quot;: &quot;58425&quot;,
                       &quot;host&quot;: &quot;127.0.0.1&quot; } },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1262976601, &quot;microseconds&quot;: 975795 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-VNC_005fINITIALIZED"></a>Event: <em></em> <strong>VNC_INITIALIZED</strong></dt>
<dd>
<p>Emitted after authentication takes place (if any) and the VNC session is
made active
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>server: VncServerInfo</code></dt>
<dd><p>server information
</p></dd>
<dt><code>client: VncClientInfo</code></dt>
<dd><p>client information
</p></dd>
</dl>


<p><b>Since:</b>
0.13.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;-  { &quot;event&quot;: &quot;VNC_INITIALIZED&quot;,
      &quot;data&quot;: {
           &quot;server&quot;: { &quot;auth&quot;: &quot;sasl&quot;, &quot;family&quot;: &quot;ipv4&quot;,
                       &quot;service&quot;: &quot;5901&quot;, &quot;host&quot;: &quot;0.0.0.0&quot;},
           &quot;client&quot;: { &quot;family&quot;: &quot;ipv4&quot;, &quot;service&quot;: &quot;46089&quot;,
                       &quot;host&quot;: &quot;127.0.0.1&quot;, &quot;sasl_username&quot;: &quot;luiz&quot; } },
      &quot;timestamp&quot;: { &quot;seconds&quot;: 1263475302, &quot;microseconds&quot;: 150772 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-VNC_005fDISCONNECTED"></a>Event: <em></em> <strong>VNC_DISCONNECTED</strong></dt>
<dd>
<p>Emitted when the connection is closed
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>server: VncServerInfo</code></dt>
<dd><p>server information
</p></dd>
<dt><code>client: VncClientInfo</code></dt>
<dd><p>client information
</p></dd>
</dl>


<p><b>Since:</b>
0.13.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;VNC_DISCONNECTED&quot;,
     &quot;data&quot;: {
           &quot;server&quot;: { &quot;auth&quot;: &quot;sasl&quot;, &quot;family&quot;: &quot;ipv4&quot;,
                       &quot;service&quot;: &quot;5901&quot;, &quot;host&quot;: &quot;0.0.0.0&quot; },
           &quot;client&quot;: { &quot;family&quot;: &quot;ipv4&quot;, &quot;service&quot;: &quot;58425&quot;,
                       &quot;host&quot;: &quot;127.0.0.1&quot;, &quot;sasl_username&quot;: &quot;luiz&quot; } },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1262976601, &quot;microseconds&quot;: 975795 } }
</pre></div>


</dd></dl>


<a name="Input"></a>
<h3 class="section">1.13 Input</h3>


<dl>
<dt><a name="index-MouseInfo"></a>Object: <strong>MouseInfo</strong></dt>
<dd>
<p>Information about a mouse device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the name of the mouse device
</p></dd>
<dt><code>index: int</code></dt>
<dd><p>the index of the mouse device
</p></dd>
<dt><code>current: boolean</code></dt>
<dd><p>true if this device is currently receiving mouse events
</p></dd>
<dt><code>absolute: boolean</code></dt>
<dd><p>true if this device supports absolute coordinates as input
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dmice"></a>Command: <em></em> <strong>query-mice</strong></dt>
<dd>
<p>Returns information about each active mouse device
</p>

<p><b>Returns:</b>
a list of <code>MouseInfo</code> for each device
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-mice&quot; }
&lt;- { &quot;return&quot;: [
         {
            &quot;name&quot;:&quot;QEMU Microsoft Mouse&quot;,
            &quot;index&quot;:0,
            &quot;current&quot;:false,
            &quot;absolute&quot;:false
         },
         {
            &quot;name&quot;:&quot;QEMU PS/2 Mouse&quot;,
            &quot;index&quot;:1,
            &quot;current&quot;:true,
            &quot;absolute&quot;:true
         }
      ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-QKeyCode"></a>Enum: <strong>QKeyCode</strong></dt>
<dd>
<p>An enumeration of key name.
</p>
<p>This is used by the <code>send-key</code> command.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>unmapped</code></dt>
<dd><p>since 2.0
</p></dd>
<dt><code>pause</code></dt>
<dd><p>since 2.0
</p></dd>
<dt><code>ro</code></dt>
<dd><p>since 2.4
</p></dd>
<dt><code>kp_comma</code></dt>
<dd><p>since 2.4
</p></dd>
<dt><code>kp_equals</code></dt>
<dd><p>since 2.6
</p></dd>
<dt><code>power</code></dt>
<dd><p>since 2.6
</p></dd>
<dt><code>hiragana</code></dt>
<dd><p>since 2.9
</p></dd>
<dt><code>henkan</code></dt>
<dd><p>since 2.9
</p></dd>
<dt><code>yen</code></dt>
<dd><p>since 2.9
</p></dd>
<dt><code>sleep</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>wake</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>audionext</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>audioprev</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>audiostop</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>audioplay</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>audiomute</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>volumeup</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>volumedown</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>mediaselect</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>mail</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>calculator</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>computer</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>ac_home</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>ac_back</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>ac_forward</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>ac_refresh</code></dt>
<dd><p>since 2.10
</p></dd>
<dt><code>ac_bookmarks</code></dt>
<dd><p>since 2.10
altgr, altgr_r: dropped in 2.10
</p></dd>
<dt><code>shift</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>shift_r</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>alt</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>alt_r</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ctrl</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ctrl_r</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>menu</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>esc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>1</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>2</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>3</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>4</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>5</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>6</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>7</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>8</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>9</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>0</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>minus</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>equal</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>backspace</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tab</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>q</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>w</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>e</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>r</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>t</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>y</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>u</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>i</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>o</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>p</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>bracket_left</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>bracket_right</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ret</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>a</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>s</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>d</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>g</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>h</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>j</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>k</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>l</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>semicolon</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>apostrophe</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>grave_accent</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>backslash</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>z</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>x</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>c</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>v</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>b</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>n</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>m</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>comma</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>dot</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>slash</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>asterisk</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>spc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>caps_lock</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f1</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f2</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f3</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f4</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f5</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f6</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f7</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f8</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f9</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f10</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>num_lock</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>scroll_lock</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_divide</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_multiply</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_subtract</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_add</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_enter</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_decimal</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>sysrq</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_0</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_1</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_2</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_3</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_4</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_5</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_6</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_7</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_8</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>kp_9</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>less</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f11</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>f12</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>print</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>home</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pgup</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>pgdn</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>end</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>left</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>up</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>down</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>right</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>insert</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>delete</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>stop</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>again</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>props</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>undo</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>front</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>copy</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>open</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>paste</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>find</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>cut</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>lf</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>help</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>meta_l</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>meta_r</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>compose</code></dt>
<dd><p>Not documented
</p></dd>
</dl>
<p>&rsquo;sysrq&rsquo; was mistakenly added to hack around the fact that
the ps2 driver was not generating correct scancodes sequences
when &rsquo;alt+print&rsquo; was pressed. This flaw is now fixed and the
&rsquo;sysrq&rsquo; key serves no further purpose. Any further use of
&rsquo;sysrq&rsquo; will be transparently changed to &rsquo;print&rsquo;, so they
are effectively synonyms.
</p>
<p><b>Since:</b>
1.3.0
</p>
</dd></dl>



<dl>
<dt><a name="index-KeyValue"></a>Object: <strong>KeyValue</strong></dt>
<dd>
<p>Represents a keyboard key.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type</code></dt>
<dd><p>One of <tt>&quot;number&quot;</tt>, <tt>&quot;qcode&quot;</tt>
</p></dd>
<dt><code>data: int</code> when <code>type</code> is <tt>&quot;number&quot;</tt></dt>
<dt><code>data: QKeyCode</code> when <code>type</code> is <tt>&quot;qcode&quot;</tt></dt>
</dl>


<p><b>Since:</b>
1.3.0
</p>
</dd></dl>



<dl>
<dt><a name="index-send_002dkey"></a>Command: <em></em> <strong>send-key</strong></dt>
<dd>
<p>Send keys to guest.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>keys: array of KeyValue</code></dt>
<dd><p>An array of <code>KeyValue</code> elements. All <code>KeyValues</code> in this array are
simultaneously sent to the guest. A <code>KeyValue</code>.number value is sent
directly to the guest, while <code>KeyValue</code>.qcode must be a valid
<code>QKeyCode</code> value
</p></dd>
<dt><code>hold-time: int</code> (optional)</dt>
<dd><p>time to delay key up events, milliseconds. Defaults
to 100
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If key is unknown or redundant, InvalidParameter
</p>
<p><b>Since:</b>
1.3.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;send-key&quot;,
     &quot;arguments&quot;: { &quot;keys&quot;: [ { &quot;type&quot;: &quot;qcode&quot;, &quot;data&quot;: &quot;ctrl&quot; },
                              { &quot;type&quot;: &quot;qcode&quot;, &quot;data&quot;: &quot;alt&quot; },
                              { &quot;type&quot;: &quot;qcode&quot;, &quot;data&quot;: &quot;delete&quot; } ] } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-InputButton"></a>Enum: <strong>InputButton</strong></dt>
<dd>
<p>Button of a pointer input device (mouse, tablet).
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>side</code></dt>
<dd><p>front side button of a 5-button mouse (since 2.9)
</p></dd>
<dt><code>extra</code></dt>
<dd><p>rear side button of a 5-button mouse (since 2.9)
</p></dd>
<dt><code>left</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>middle</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>right</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>wheel-up</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>wheel-down</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-InputAxis"></a>Enum: <strong>InputAxis</strong></dt>
<dd>
<p>Position axis of a pointer input device (mouse, tablet).
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>x</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>y</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-InputKeyEvent"></a>Object: <strong>InputKeyEvent</strong></dt>
<dd>
<p>Keyboard input event.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>key: KeyValue</code></dt>
<dd><p>Which key this event is for.
</p></dd>
<dt><code>down: boolean</code></dt>
<dd><p>True for key-down and false for key-up events.
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-InputBtnEvent"></a>Object: <strong>InputBtnEvent</strong></dt>
<dd>
<p>Pointer button input event.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>button: InputButton</code></dt>
<dd><p>Which button this event is for.
</p></dd>
<dt><code>down: boolean</code></dt>
<dd><p>True for key-down and false for key-up events.
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-InputMoveEvent"></a>Object: <strong>InputMoveEvent</strong></dt>
<dd>
<p>Pointer motion input event.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>axis: InputAxis</code></dt>
<dd><p>Which axis is referenced by <code>value</code>.
</p></dd>
<dt><code>value: int</code></dt>
<dd><p>Pointer position.  For absolute coordinates the
valid range is 0 -&gt; 0x7ffff
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-InputEvent"></a>Object: <strong>InputEvent</strong></dt>
<dd>
<p>Input event union.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type</code></dt>
<dd><p>the input type, one of:
</p><ul class="no-bullet">
<li>- &rsquo;key&rsquo;: Input event of Keyboard
</li><li>- &rsquo;btn&rsquo;: Input event of pointer buttons
</li><li>- &rsquo;rel&rsquo;: Input event of relative pointer motion
</li><li>- &rsquo;abs&rsquo;: Input event of absolute pointer motion
</li></ul>

</dd>
<dt><code>data: InputKeyEvent</code> when <code>type</code> is <tt>&quot;key&quot;</tt></dt>
<dt><code>data: InputBtnEvent</code> when <code>type</code> is <tt>&quot;btn&quot;</tt></dt>
<dt><code>data: InputMoveEvent</code> when <code>type</code> is <tt>&quot;rel&quot;</tt></dt>
<dt><code>data: InputMoveEvent</code> when <code>type</code> is <tt>&quot;abs&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-input_002dsend_002devent"></a>Command: <em></em> <strong>input-send-event</strong></dt>
<dd>
<p>Send input event(s) to guest.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>display device to send event(s) to.
</p></dd>
<dt><code>head: int</code> (optional)</dt>
<dd><p>head to send event(s) to, in case the
display device supports multiple scanouts.
</p></dd>
<dt><code>events: array of InputEvent</code></dt>
<dd><p>List of InputEvent union.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success.
</p>
<p>The <code>device</code> and <code>head</code> parameters can be used to send the input event
to specific input devices in case (a) multiple input devices of the
same kind are added to the virtual machine and (b) you have
configured input routing (see docs/multiseat.txt) for those input
devices.  The parameters work exactly like the device and head
properties of input devices.  If <code>device</code> is missing, only devices
that have no input routing config are admissible.  If <code>device</code> is
specified, both input devices with and without input routing config
are admissible, but devices with input routing config take
precedence.
</p>
<p><b>Since:</b>
2.6
</p>
<p><b>Note:</b>
The consoles are visible in the qom tree, under
/backend/console[$index]. They have a device link and head property,
so it is possible to map which console belongs to which device and
display.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">1. Press left mouse button.

-&gt; { &quot;execute&quot;: &quot;input-send-event&quot;,
    &quot;arguments&quot;: { &quot;device&quot;: &quot;video0&quot;,
                   &quot;events&quot;: [ { &quot;type&quot;: &quot;btn&quot;,
                   &quot;data&quot; : { &quot;down&quot;: true, &quot;button&quot;: &quot;left&quot; } } ] } }
&lt;- { &quot;return&quot;: {} }

-&gt; { &quot;execute&quot;: &quot;input-send-event&quot;,
    &quot;arguments&quot;: { &quot;device&quot;: &quot;video0&quot;,
                   &quot;events&quot;: [ { &quot;type&quot;: &quot;btn&quot;,
                   &quot;data&quot; : { &quot;down&quot;: false, &quot;button&quot;: &quot;left&quot; } } ] } }
&lt;- { &quot;return&quot;: {} }

2. Press ctrl-alt-del.

-&gt; { &quot;execute&quot;: &quot;input-send-event&quot;,
     &quot;arguments&quot;: { &quot;events&quot;: [
        { &quot;type&quot;: &quot;key&quot;, &quot;data&quot; : { &quot;down&quot;: true,
          &quot;key&quot;: {&quot;type&quot;: &quot;qcode&quot;, &quot;data&quot;: &quot;ctrl&quot; } } },
        { &quot;type&quot;: &quot;key&quot;, &quot;data&quot; : { &quot;down&quot;: true,
          &quot;key&quot;: {&quot;type&quot;: &quot;qcode&quot;, &quot;data&quot;: &quot;alt&quot; } } },
        { &quot;type&quot;: &quot;key&quot;, &quot;data&quot; : { &quot;down&quot;: true,
          &quot;key&quot;: {&quot;type&quot;: &quot;qcode&quot;, &quot;data&quot;: &quot;delete&quot; } } } ] } }
&lt;- { &quot;return&quot;: {} }

3. Move mouse pointer to absolute coordinates (20000, 400).

-&gt; { &quot;execute&quot;: &quot;input-send-event&quot; ,
  &quot;arguments&quot;: { &quot;events&quot;: [
               { &quot;type&quot;: &quot;abs&quot;, &quot;data&quot; : { &quot;axis&quot;: &quot;x&quot;, &quot;value&quot; : 20000 } },
               { &quot;type&quot;: &quot;abs&quot;, &quot;data&quot; : { &quot;axis&quot;: &quot;y&quot;, &quot;value&quot; : 400 } } ] } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>


<a name="Migration"></a>
<h3 class="section">1.14 Migration</h3>


<dl>
<dt><a name="index-MigrationStats"></a>Object: <strong>MigrationStats</strong></dt>
<dd>
<p>Detailed migration status.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>transferred: int</code></dt>
<dd><p>amount of bytes already transferred to the target VM
</p></dd>
<dt><code>remaining: int</code></dt>
<dd><p>amount of bytes remaining to be transferred to the target VM
</p></dd>
<dt><code>total: int</code></dt>
<dd><p>total amount of bytes involved in the migration process
</p></dd>
<dt><code>duplicate: int</code></dt>
<dd><p>number of duplicate (zero) pages (since 1.2)
</p></dd>
<dt><code>skipped: int</code></dt>
<dd><p>number of skipped zero pages (since 1.5)
</p></dd>
<dt><code>normal: int</code></dt>
<dd><p>number of normal pages (since 1.2)
</p></dd>
<dt><code>normal-bytes: int</code></dt>
<dd><p>number of normal bytes sent (since 1.2)
</p></dd>
<dt><code>dirty-pages-rate: int</code></dt>
<dd><p>number of pages dirtied by second by the
guest (since 1.3)
</p></dd>
<dt><code>mbps: number</code></dt>
<dd><p>throughput in megabits/sec. (since 1.6)
</p></dd>
<dt><code>dirty-sync-count: int</code></dt>
<dd><p>number of times that dirty ram was synchronized (since 2.1)
</p></dd>
<dt><code>postcopy-requests: int</code></dt>
<dd><p>The number of page requests received from the destination
(since 2.7)
</p></dd>
<dt><code>page-size: int</code></dt>
<dd><p>The number of bytes per page for the various page-based
statistics (since 2.10)
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-XBZRLECacheStats"></a>Object: <strong>XBZRLECacheStats</strong></dt>
<dd>
<p>Detailed XBZRLE migration cache statistics
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>cache-size: int</code></dt>
<dd><p>XBZRLE cache size
</p></dd>
<dt><code>bytes: int</code></dt>
<dd><p>amount of bytes already transferred to the target VM
</p></dd>
<dt><code>pages: int</code></dt>
<dd><p>amount of pages transferred to the target VM
</p></dd>
<dt><code>cache-miss: int</code></dt>
<dd><p>number of cache miss
</p></dd>
<dt><code>cache-miss-rate: number</code></dt>
<dd><p>rate of cache miss (since 2.1)
</p></dd>
<dt><code>overflow: int</code></dt>
<dd><p>number of overflows
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-MigrationStatus"></a>Enum: <strong>MigrationStatus</strong></dt>
<dd>
<p>An enumeration of migration status.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>none</code></dt>
<dd><p>no migration has ever happened.
</p></dd>
<dt><code>setup</code></dt>
<dd><p>migration process has been initiated.
</p></dd>
<dt><code>cancelling</code></dt>
<dd><p>in the process of cancelling migration.
</p></dd>
<dt><code>cancelled</code></dt>
<dd><p>cancelling migration is finished.
</p></dd>
<dt><code>active</code></dt>
<dd><p>in the process of doing migration.
</p></dd>
<dt><code>postcopy-active</code></dt>
<dd><p>like active, but now in postcopy mode. (since 2.5)
</p></dd>
<dt><code>completed</code></dt>
<dd><p>migration is finished.
</p></dd>
<dt><code>failed</code></dt>
<dd><p>some error occurred during migration process.
</p></dd>
<dt><code>colo</code></dt>
<dd><p>VM is in the process of fault tolerance, VM can not get into this
state unless colo capability is enabled for migration. (since 2.8)
</p></dd>
<dt><code>pre-switchover</code></dt>
<dd><p>Paused before device serialisation. (since 2.11)
</p></dd>
<dt><code>device</code></dt>
<dd><p>During device serialisation when pause-before-switchover is enabled
(since 2.11)
</p></dd>
</dl>


<p><b>Since:</b>
2.3
</p>
</dd></dl>



<dl>
<dt><a name="index-MigrationInfo"></a>Object: <strong>MigrationInfo</strong></dt>
<dd>
<p>Information about current migration process.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>status: MigrationStatus</code> (optional)</dt>
<dd><p><code>MigrationStatus</code> describing the current migration status.
If this field is not returned, no migration process
has been initiated
</p></dd>
<dt><code>ram: MigrationStats</code> (optional)</dt>
<dd><p><code>MigrationStats</code> containing detailed migration
status, only returned if status is &rsquo;active&rsquo; or
&rsquo;completed&rsquo;(since 1.2)
</p></dd>
<dt><code>disk: MigrationStats</code> (optional)</dt>
<dd><p><code>MigrationStats</code> containing detailed disk migration
status, only returned if status is &rsquo;active&rsquo; and it is a block
migration
</p></dd>
<dt><code>xbzrle-cache: XBZRLECacheStats</code> (optional)</dt>
<dd><p><code>XBZRLECacheStats</code> containing detailed XBZRLE
migration statistics, only returned if XBZRLE feature is on and
status is &rsquo;active&rsquo; or &rsquo;completed&rsquo; (since 1.2)
</p></dd>
<dt><code>total-time: int</code> (optional)</dt>
<dd><p>total amount of milliseconds since migration started.
If migration has ended, it returns the total migration
time. (since 1.2)
</p></dd>
<dt><code>downtime: int</code> (optional)</dt>
<dd><p>only present when migration finishes correctly
total downtime in milliseconds for the guest.
(since 1.3)
</p></dd>
<dt><code>expected-downtime: int</code> (optional)</dt>
<dd><p>only present while migration is active
expected downtime in milliseconds for the guest in last walk
of the dirty bitmap. (since 1.3)
</p></dd>
<dt><code>setup-time: int</code> (optional)</dt>
<dd><p>amount of setup time in milliseconds <em>before</em> the
iterations begin but <em>after</em> the QMP command is issued. This is designed
to provide an accounting of any activities (such as RDMA pinning) which
may be expensive, but do not actually occur during the iterative
migration rounds themselves. (since 1.6)
</p></dd>
<dt><code>cpu-throttle-percentage: int</code> (optional)</dt>
<dd><p>percentage of time guest cpus are being
throttled during auto-converge. This is only present when auto-converge
has started throttling guest cpus. (Since 2.7)
</p></dd>
<dt><code>error-desc: string</code> (optional)</dt>
<dd><p>the human readable error description string, when
<code>status</code> is &rsquo;failed&rsquo;. Clients should not attempt to parse the
error strings. (Since 2.7)
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dmigrate"></a>Command: <em></em> <strong>query-migrate</strong></dt>
<dd>
<p>Returns information about current migration process. If migration
is active there will be another json-object with RAM migration
status and if block migration is active another one with block
migration status.
</p>

<p><b>Returns:</b>
<code>MigrationInfo</code>
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">1. Before the first migration

-&gt; { &quot;execute&quot;: &quot;query-migrate&quot; }
&lt;- { &quot;return&quot;: {} }

2. Migration is done and has succeeded

-&gt; { &quot;execute&quot;: &quot;query-migrate&quot; }
&lt;- { &quot;return&quot;: {
        &quot;status&quot;: &quot;completed&quot;,
        &quot;ram&quot;:{
          &quot;transferred&quot;:123,
          &quot;remaining&quot;:123,
          &quot;total&quot;:246,
          &quot;total-time&quot;:12345,
          &quot;setup-time&quot;:12345,
          &quot;downtime&quot;:12345,
          &quot;duplicate&quot;:123,
          &quot;normal&quot;:123,
          &quot;normal-bytes&quot;:123456,
          &quot;dirty-sync-count&quot;:15
        }
     }
   }

3. Migration is done and has failed

-&gt; { &quot;execute&quot;: &quot;query-migrate&quot; }
&lt;- { &quot;return&quot;: { &quot;status&quot;: &quot;failed&quot; } }

4. Migration is being performed and is not a block migration:

-&gt; { &quot;execute&quot;: &quot;query-migrate&quot; }
&lt;- {
      &quot;return&quot;:{
         &quot;status&quot;:&quot;active&quot;,
         &quot;ram&quot;:{
            &quot;transferred&quot;:123,
            &quot;remaining&quot;:123,
            &quot;total&quot;:246,
            &quot;total-time&quot;:12345,
            &quot;setup-time&quot;:12345,
            &quot;expected-downtime&quot;:12345,
            &quot;duplicate&quot;:123,
            &quot;normal&quot;:123,
            &quot;normal-bytes&quot;:123456,
            &quot;dirty-sync-count&quot;:15
         }
      }
   }

5. Migration is being performed and is a block migration:

-&gt; { &quot;execute&quot;: &quot;query-migrate&quot; }
&lt;- {
      &quot;return&quot;:{
         &quot;status&quot;:&quot;active&quot;,
         &quot;ram&quot;:{
            &quot;total&quot;:1057024,
            &quot;remaining&quot;:1053304,
            &quot;transferred&quot;:3720,
            &quot;total-time&quot;:12345,
            &quot;setup-time&quot;:12345,
            &quot;expected-downtime&quot;:12345,
            &quot;duplicate&quot;:123,
            &quot;normal&quot;:123,
            &quot;normal-bytes&quot;:123456,
            &quot;dirty-sync-count&quot;:15
         },
         &quot;disk&quot;:{
            &quot;total&quot;:20971520,
            &quot;remaining&quot;:20880384,
            &quot;transferred&quot;:91136
         }
      }
   }

6. Migration is being performed and XBZRLE is active:

-&gt; { &quot;execute&quot;: &quot;query-migrate&quot; }
&lt;- {
      &quot;return&quot;:{
         &quot;status&quot;:&quot;active&quot;,
         &quot;capabilities&quot; : [ { &quot;capability&quot;: &quot;xbzrle&quot;, &quot;state&quot; : true } ],
         &quot;ram&quot;:{
            &quot;total&quot;:1057024,
            &quot;remaining&quot;:1053304,
            &quot;transferred&quot;:3720,
            &quot;total-time&quot;:12345,
            &quot;setup-time&quot;:12345,
            &quot;expected-downtime&quot;:12345,
            &quot;duplicate&quot;:10,
            &quot;normal&quot;:3333,
            &quot;normal-bytes&quot;:3412992,
            &quot;dirty-sync-count&quot;:15
         },
         &quot;xbzrle-cache&quot;:{
            &quot;cache-size&quot;:67108864,
            &quot;bytes&quot;:20971520,
            &quot;pages&quot;:2444343,
            &quot;cache-miss&quot;:2244,
            &quot;cache-miss-rate&quot;:0.123,
            &quot;overflow&quot;:34434
         }
      }
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-MigrationCapability"></a>Enum: <strong>MigrationCapability</strong></dt>
<dd>
<p>Migration capabilities enumeration
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>xbzrle</code></dt>
<dd><p>Migration supports xbzrle (Xor Based Zero Run Length Encoding).
This feature allows us to minimize migration traffic for certain work
loads, by sending compressed difference of the pages
</p></dd>
<dt><code>rdma-pin-all</code></dt>
<dd><p>Controls whether or not the entire VM memory footprint is
mlock()&rsquo;d on demand or all at once. Refer to docs/rdma.txt for usage.
Disabled by default. (since 2.0)
</p></dd>
<dt><code>zero-blocks</code></dt>
<dd><p>During storage migration encode blocks of zeroes efficiently. This
essentially saves 1MB of zeroes per block on the wire. Enabling requires
source and target VM to support this feature. To enable it is sufficient
to enable the capability on the source VM. The feature is disabled by
default. (since 1.6)
</p></dd>
<dt><code>compress</code></dt>
<dd><p>Use multiple compression threads to accelerate live migration.
This feature can help to reduce the migration traffic, by sending
compressed pages. Please note that if compress and xbzrle are both
on, compress only takes effect in the ram bulk stage, after that,
it will be disabled and only xbzrle takes effect, this can help to
minimize migration traffic. The feature is disabled by default.
(since 2.4 )
</p></dd>
<dt><code>events</code></dt>
<dd><p>generate events for each migration state change
(since 2.4 )
</p></dd>
<dt><code>auto-converge</code></dt>
<dd><p>If enabled, QEMU will automatically throttle down the guest
to speed up convergence of RAM migration. (since 1.6)
</p></dd>
<dt><code>postcopy-ram</code></dt>
<dd><p>Start executing on the migration target before all of RAM has
been migrated, pulling the remaining pages along as needed. NOTE: If
the migration fails during postcopy the VM will fail.  (since 2.6)
</p></dd>
<dt><code>x-colo</code></dt>
<dd><p>If enabled, migration will never end, and the state of the VM on the
primary side will be migrated continuously to the VM on secondary
side, this process is called COarse-Grain LOck Stepping (COLO) for
Non-stop Service. (since 2.8)
</p></dd>
<dt><code>release-ram</code></dt>
<dd><p>if enabled, qemu will free the migrated ram pages on the source
during postcopy-ram migration. (since 2.9)
</p></dd>
<dt><code>block</code></dt>
<dd><p>If enabled, QEMU will also migrate the contents of all block
devices.  Default is disabled.  A possible alternative uses
mirror jobs to a builtin NBD server on the destination, which
offers more flexibility.
(Since 2.10)
</p></dd>
<dt><code>return-path</code></dt>
<dd><p>If enabled, migration will use the return path even
for precopy. (since 2.10)
</p></dd>
<dt><code>pause-before-switchover</code></dt>
<dd><p>Pause outgoing migration before serialising device
state and before disabling block IO (since 2.11)
</p></dd>
<dt><code>x-multifd</code></dt>
<dd><p>Use more than one fd for migration (since 2.11)
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-MigrationCapabilityStatus"></a>Object: <strong>MigrationCapabilityStatus</strong></dt>
<dd>
<p>Migration capability information
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>capability: MigrationCapability</code></dt>
<dd><p>capability enum
</p></dd>
<dt><code>state: boolean</code></dt>
<dd><p>capability state bool
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-migrate_002dset_002dcapabilities"></a>Command: <em></em> <strong>migrate-set-capabilities</strong></dt>
<dd>
<p>Enable/Disable the following migration capabilities (like xbzrle)
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>capabilities: array of MigrationCapabilityStatus</code></dt>
<dd><p>json array of capability modifications to make
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate-set-capabilities&quot; , &quot;arguments&quot;:
     { &quot;capabilities&quot;: [ { &quot;capability&quot;: &quot;xbzrle&quot;, &quot;state&quot;: true } ] } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-query_002dmigrate_002dcapabilities"></a>Command: <em></em> <strong>query-migrate-capabilities</strong></dt>
<dd>
<p>Returns information about the current migration capabilities status
</p>

<p><b>Returns:</b>
<code>MigrationCapabilitiesStatus</code>
</p>
<p><b>Since:</b>
1.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-migrate-capabilities&quot; }
&lt;- { &quot;return&quot;: [
      {&quot;state&quot;: false, &quot;capability&quot;: &quot;xbzrle&quot;},
      {&quot;state&quot;: false, &quot;capability&quot;: &quot;rdma-pin-all&quot;},
      {&quot;state&quot;: false, &quot;capability&quot;: &quot;auto-converge&quot;},
      {&quot;state&quot;: false, &quot;capability&quot;: &quot;zero-blocks&quot;},
      {&quot;state&quot;: false, &quot;capability&quot;: &quot;compress&quot;},
      {&quot;state&quot;: true, &quot;capability&quot;: &quot;events&quot;},
      {&quot;state&quot;: false, &quot;capability&quot;: &quot;postcopy-ram&quot;},
      {&quot;state&quot;: false, &quot;capability&quot;: &quot;x-colo&quot;}
   ]}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-MigrationParameter"></a>Enum: <strong>MigrationParameter</strong></dt>
<dd>
<p>Migration parameters enumeration
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>compress-level</code></dt>
<dd><p>Set the compression level to be used in live migration,
the compression level is an integer between 0 and 9, where 0 means
no compression, 1 means the best compression speed, and 9 means best
compression ratio which will consume more CPU.
</p></dd>
<dt><code>compress-threads</code></dt>
<dd><p>Set compression thread count to be used in live migration,
the compression thread count is an integer between 1 and 255.
</p></dd>
<dt><code>decompress-threads</code></dt>
<dd><p>Set decompression thread count to be used in live
migration, the decompression thread count is an integer between 1
and 255. Usually, decompression is at least 4 times as fast as
compression, so set the decompress-threads to the number about 1/4
of compress-threads is adequate.
</p></dd>
<dt><code>cpu-throttle-initial</code></dt>
<dd><p>Initial percentage of time guest cpus are throttled
when migration auto-converge is activated. The
default value is 20. (Since 2.7)
</p></dd>
<dt><code>cpu-throttle-increment</code></dt>
<dd><p>throttle percentage increase each time
auto-converge detects that migration is not making
progress. The default value is 10. (Since 2.7)
</p></dd>
<dt><code>tls-creds</code></dt>
<dd><p>ID of the &rsquo;tls-creds&rsquo; object that provides credentials for
establishing a TLS connection over the migration data channel.
On the outgoing side of the migration, the credentials must
be for a &rsquo;client&rsquo; endpoint, while for the incoming side the
credentials must be for a &rsquo;server&rsquo; endpoint. Setting this
will enable TLS for all migrations. The default is unset,
resulting in unsecured migration at the QEMU level. (Since 2.7)
</p></dd>
<dt><code>tls-hostname</code></dt>
<dd><p>hostname of the target host for the migration. This is
required when using x509 based TLS credentials and the
migration URI does not already include a hostname. For
example if using fd: or exec: based migration, the
hostname must be provided so that the server&rsquo;s x509
certificate identity can be validated. (Since 2.7)
</p></dd>
<dt><code>max-bandwidth</code></dt>
<dd><p>to set maximum speed for migration. maximum speed in
bytes per second. (Since 2.8)
</p></dd>
<dt><code>downtime-limit</code></dt>
<dd><p>set maximum tolerated downtime for migration. maximum
downtime in milliseconds (Since 2.8)
</p></dd>
<dt><code>x-checkpoint-delay</code></dt>
<dd><p>The delay time (in ms) between two COLO checkpoints in
periodic mode. (Since 2.8)
</p></dd>
<dt><code>block-incremental</code></dt>
<dd><p>Affects how much storage is migrated when the
block migration capability is enabled.  When false, the entire
storage backing chain is migrated into a flattened image at
the destination; when true, only the active qcow2 layer is
migrated and the destination must already have access to the
same backing chain as was used on the source.  (since 2.10)
</p></dd>
<dt><code>x-multifd-channels</code></dt>
<dd><p>Number of channels used to migrate data in
parallel. This is the same number that the
number of sockets used for migration.  The
default value is 2 (since 2.11)
</p></dd>
<dt><code>x-multifd-page-count</code></dt>
<dd><p>Number of pages sent together to a thread.
The default value is 16 (since 2.11)
</p></dd>
<dt><code>xbzrle-cache-size</code></dt>
<dd><p>cache size to be used by XBZRLE migration.  It
needs to be a multiple of the target page size
and a power of 2
(Since 2.11)
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-MigrateSetParameters"></a>Object: <strong>MigrateSetParameters</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>compress-level: int</code> (optional)</dt>
<dd><p>compression level
</p></dd>
<dt><code>compress-threads: int</code> (optional)</dt>
<dd><p>compression thread count
</p></dd>
<dt><code>decompress-threads: int</code> (optional)</dt>
<dd><p>decompression thread count
</p></dd>
<dt><code>cpu-throttle-initial: int</code> (optional)</dt>
<dd><p>Initial percentage of time guest cpus are
throttled when migration auto-converge is activated.
The default value is 20. (Since 2.7)
</p></dd>
<dt><code>cpu-throttle-increment: int</code> (optional)</dt>
<dd><p>throttle percentage increase each time
auto-converge detects that migration is not making
progress. The default value is 10. (Since 2.7)
</p></dd>
<dt><code>tls-creds: StrOrNull</code> (optional)</dt>
<dd><p>ID of the &rsquo;tls-creds&rsquo; object that provides credentials
for establishing a TLS connection over the migration data
channel. On the outgoing side of the migration, the credentials
must be for a &rsquo;client&rsquo; endpoint, while for the incoming side the
credentials must be for a &rsquo;server&rsquo; endpoint. Setting this
to a non-empty string enables TLS for all migrations.
An empty string means that QEMU will use plain text mode for
migration, rather than TLS (Since 2.9)
Previously (since 2.7), this was reported by omitting
tls-creds instead.
</p></dd>
<dt><code>tls-hostname: StrOrNull</code> (optional)</dt>
<dd><p>hostname of the target host for the migration. This
is required when using x509 based TLS credentials and the
migration URI does not already include a hostname. For
example if using fd: or exec: based migration, the
hostname must be provided so that the server&rsquo;s x509
certificate identity can be validated. (Since 2.7)
An empty string means that QEMU will use the hostname
associated with the migration URI, if any. (Since 2.9)
Previously (since 2.7), this was reported by omitting
tls-hostname instead.
</p></dd>
<dt><code>max-bandwidth: int</code> (optional)</dt>
<dd><p>to set maximum speed for migration. maximum speed in
bytes per second. (Since 2.8)
</p></dd>
<dt><code>downtime-limit: int</code> (optional)</dt>
<dd><p>set maximum tolerated downtime for migration. maximum
downtime in milliseconds (Since 2.8)
</p></dd>
<dt><code>x-checkpoint-delay: int</code> (optional)</dt>
<dd><p>the delay time between two COLO checkpoints. (Since 2.8)
</p></dd>
<dt><code>block-incremental: boolean</code> (optional)</dt>
<dd><p>Affects how much storage is migrated when the
block migration capability is enabled.  When false, the entire
storage backing chain is migrated into a flattened image at
the destination; when true, only the active qcow2 layer is
migrated and the destination must already have access to the
same backing chain as was used on the source.  (since 2.10)
</p></dd>
<dt><code>x-multifd-channels: int</code> (optional)</dt>
<dd><p>Number of channels used to migrate data in
parallel. This is the same number that the
number of sockets used for migration.  The
default value is 2 (since 2.11)
</p></dd>
<dt><code>x-multifd-page-count: int</code> (optional)</dt>
<dd><p>Number of pages sent together to a thread.
The default value is 16 (since 2.11)
</p></dd>
<dt><code>xbzrle-cache-size: int</code> (optional)</dt>
<dd><p>cache size to be used by XBZRLE migration.  It
needs to be a multiple of the target page size
and a power of 2
(Since 2.11)
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-migrate_002dset_002dparameters"></a>Command: <em></em> <strong>migrate-set-parameters</strong></dt>
<dd>
<p>Set various migration parameters.
</p>
<p><b>Arguments:</b> the members of <code>MigrateSetParameters</code>
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate-set-parameters&quot; ,
     &quot;arguments&quot;: { &quot;compress-level&quot;: 1 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-MigrationParameters"></a>Object: <strong>MigrationParameters</strong></dt>
<dd>
<p>The optional members aren&rsquo;t actually optional.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>compress-level: int</code> (optional)</dt>
<dd><p>compression level
</p></dd>
<dt><code>compress-threads: int</code> (optional)</dt>
<dd><p>compression thread count
</p></dd>
<dt><code>decompress-threads: int</code> (optional)</dt>
<dd><p>decompression thread count
</p></dd>
<dt><code>cpu-throttle-initial: int</code> (optional)</dt>
<dd><p>Initial percentage of time guest cpus are
throttled when migration auto-converge is activated.
(Since 2.7)
</p></dd>
<dt><code>cpu-throttle-increment: int</code> (optional)</dt>
<dd><p>throttle percentage increase each time
auto-converge detects that migration is not making
progress. (Since 2.7)
</p></dd>
<dt><code>tls-creds: string</code> (optional)</dt>
<dd><p>ID of the &rsquo;tls-creds&rsquo; object that provides credentials
for establishing a TLS connection over the migration data
channel. On the outgoing side of the migration, the credentials
must be for a &rsquo;client&rsquo; endpoint, while for the incoming side the
credentials must be for a &rsquo;server&rsquo; endpoint.
An empty string means that QEMU will use plain text mode for
migration, rather than TLS (Since 2.7)
Note: 2.8 reports this by omitting tls-creds instead.
</p></dd>
<dt><code>tls-hostname: string</code> (optional)</dt>
<dd><p>hostname of the target host for the migration. This
is required when using x509 based TLS credentials and the
migration URI does not already include a hostname. For
example if using fd: or exec: based migration, the
hostname must be provided so that the server&rsquo;s x509
certificate identity can be validated. (Since 2.7)
An empty string means that QEMU will use the hostname
associated with the migration URI, if any. (Since 2.9)
Note: 2.8 reports this by omitting tls-hostname instead.
</p></dd>
<dt><code>max-bandwidth: int</code> (optional)</dt>
<dd><p>to set maximum speed for migration. maximum speed in
bytes per second. (Since 2.8)
</p></dd>
<dt><code>downtime-limit: int</code> (optional)</dt>
<dd><p>set maximum tolerated downtime for migration. maximum
downtime in milliseconds (Since 2.8)
</p></dd>
<dt><code>x-checkpoint-delay: int</code> (optional)</dt>
<dd><p>the delay time between two COLO checkpoints. (Since 2.8)
</p></dd>
<dt><code>block-incremental: boolean</code> (optional)</dt>
<dd><p>Affects how much storage is migrated when the
block migration capability is enabled.  When false, the entire
storage backing chain is migrated into a flattened image at
the destination; when true, only the active qcow2 layer is
migrated and the destination must already have access to the
same backing chain as was used on the source.  (since 2.10)
</p></dd>
<dt><code>x-multifd-channels: int</code> (optional)</dt>
<dd><p>Number of channels used to migrate data in
parallel. This is the same number that the
number of sockets used for migration.
The default value is 2 (since 2.11)
</p></dd>
<dt><code>x-multifd-page-count: int</code> (optional)</dt>
<dd><p>Number of pages sent together to a thread.
The default value is 16 (since 2.11)
</p></dd>
<dt><code>xbzrle-cache-size: int</code> (optional)</dt>
<dd><p>cache size to be used by XBZRLE migration.  It
needs to be a multiple of the target page size
and a power of 2
(Since 2.11)
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dmigrate_002dparameters"></a>Command: <em></em> <strong>query-migrate-parameters</strong></dt>
<dd>
<p>Returns information about the current migration parameters
</p>

<p><b>Returns:</b>
<code>MigrationParameters</code>
</p>
<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-migrate-parameters&quot; }
&lt;- { &quot;return&quot;: {
         &quot;decompress-threads&quot;: 2,
         &quot;cpu-throttle-increment&quot;: 10,
         &quot;compress-threads&quot;: 8,
         &quot;compress-level&quot;: 1,
         &quot;cpu-throttle-initial&quot;: 20,
         &quot;max-bandwidth&quot;: 33554432,
         &quot;downtime-limit&quot;: 300
      }
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-client_005fmigrate_005finfo"></a>Command: <em></em> <strong>client_migrate_info</strong></dt>
<dd>
<p>Set migration information for remote display.  This makes the server
ask the client to automatically reconnect using the new parameters
once migration finished successfully.  Only implemented for SPICE.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>protocol: string</code></dt>
<dd><p>must be &quot;spice&quot;
</p></dd>
<dt><code>hostname: string</code></dt>
<dd><p>migration target hostname
</p></dd>
<dt><code>port: int</code> (optional)</dt>
<dd><p>spice tcp port for plaintext channels
</p></dd>
<dt><code>tls-port: int</code> (optional)</dt>
<dd><p>spice tcp port for tls-secured channels
</p></dd>
<dt><code>cert-subject: string</code> (optional)</dt>
<dd><p>server certificate subject
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;client_migrate_info&quot;,
     &quot;arguments&quot;: { &quot;protocol&quot;: &quot;spice&quot;,
                    &quot;hostname&quot;: &quot;virt42.lab.kraxel.org&quot;,
                    &quot;port&quot;: 1234 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-migrate_002dstart_002dpostcopy"></a>Command: <em></em> <strong>migrate-start-postcopy</strong></dt>
<dd>
<p>Followup to a migration command to switch the migration to postcopy mode.
The postcopy-ram capability must be set before the original migration
command.
</p>

<p><b>Since:</b>
2.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate-start-postcopy&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-MIGRATION"></a>Event: <em></em> <strong>MIGRATION</strong></dt>
<dd>
<p>Emitted when a migration event happens
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>status: MigrationStatus</code></dt>
<dd><p><code>MigrationStatus</code> describing the current migration status.
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- {&quot;timestamp&quot;: {&quot;seconds&quot;: 1432121972, &quot;microseconds&quot;: 744001},
    &quot;event&quot;: &quot;MIGRATION&quot;,
    &quot;data&quot;: {&quot;status&quot;: &quot;completed&quot;} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-MIGRATION_005fPASS"></a>Event: <em></em> <strong>MIGRATION_PASS</strong></dt>
<dd>
<p>Emitted from the source side of a migration at the start of each pass
(when it syncs the dirty bitmap)
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>pass: int</code></dt>
<dd><p>An incrementing count (starting at 1 on the first pass)
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">{ &quot;timestamp&quot;: {&quot;seconds&quot;: 1449669631, &quot;microseconds&quot;: 239225},
  &quot;event&quot;: &quot;MIGRATION_PASS&quot;, &quot;data&quot;: {&quot;pass&quot;: 2} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-COLOMessage"></a>Enum: <strong>COLOMessage</strong></dt>
<dd>
<p>The message transmission between Primary side and Secondary side.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>checkpoint-ready</code></dt>
<dd><p>Secondary VM (SVM) is ready for checkpointing
</p></dd>
<dt><code>checkpoint-request</code></dt>
<dd><p>Primary VM (PVM) tells SVM to prepare for checkpointing
</p></dd>
<dt><code>checkpoint-reply</code></dt>
<dd><p>SVM gets PVM&rsquo;s checkpoint request
</p></dd>
<dt><code>vmstate-send</code></dt>
<dd><p>VM&rsquo;s state will be sent by PVM.
</p></dd>
<dt><code>vmstate-size</code></dt>
<dd><p>The total size of VMstate.
</p></dd>
<dt><code>vmstate-received</code></dt>
<dd><p>VM&rsquo;s state has been received by SVM.
</p></dd>
<dt><code>vmstate-loaded</code></dt>
<dd><p>VM&rsquo;s state has been loaded by SVM.
</p></dd>
</dl>


<p><b>Since:</b>
2.8
</p>
</dd></dl>



<dl>
<dt><a name="index-COLOMode"></a>Enum: <strong>COLOMode</strong></dt>
<dd>
<p>The colo mode
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>unknown</code></dt>
<dd><p>unknown mode
</p></dd>
<dt><code>primary</code></dt>
<dd><p>master side
</p></dd>
<dt><code>secondary</code></dt>
<dd><p>slave side
</p></dd>
</dl>


<p><b>Since:</b>
2.8
</p>
</dd></dl>



<dl>
<dt><a name="index-FailoverStatus"></a>Enum: <strong>FailoverStatus</strong></dt>
<dd>
<p>An enumeration of COLO failover status
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>none</code></dt>
<dd><p>no failover has ever happened
</p></dd>
<dt><code>require</code></dt>
<dd><p>got failover requirement but not handled
</p></dd>
<dt><code>active</code></dt>
<dd><p>in the process of doing failover
</p></dd>
<dt><code>completed</code></dt>
<dd><p>finish the process of failover
</p></dd>
<dt><code>relaunch</code></dt>
<dd><p>restart the failover process, from &rsquo;none&rsquo; -&gt; &rsquo;completed&rsquo; (Since 2.9)
</p></dd>
</dl>


<p><b>Since:</b>
2.8
</p>
</dd></dl>



<dl>
<dt><a name="index-x_002dcolo_002dlost_002dheartbeat"></a>Command: <em></em> <strong>x-colo-lost-heartbeat</strong></dt>
<dd>
<p>Tell qemu that heartbeat is lost, request it to do takeover procedures.
If this command is sent to the PVM, the Primary side will exit COLO mode.
If sent to the Secondary, the Secondary side will run failover work,
then takes over server operation to become the service VM.
</p>

<p><b>Since:</b>
2.8
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;x-colo-lost-heartbeat&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-migrate_005fcancel"></a>Command: <em></em> <strong>migrate_cancel</strong></dt>
<dd>
<p>Cancel the current executing migration process.
</p>

<p><b>Returns:</b>
nothing on success
</p>
<p><b>Notes:</b>
This command succeeds even if there is no migration process running.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate_cancel&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-migrate_002dcontinue"></a>Command: <em></em> <strong>migrate-continue</strong></dt>
<dd>
<p>Continue migration when it&rsquo;s in a paused state.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>state: MigrationStatus</code></dt>
<dd><p>The state the migration is currently expected to be in
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success
</p>
<p><b>Since:</b>
2.11
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate-continue&quot; , &quot;arguments&quot;:
     { &quot;state&quot;: &quot;pre-switchover&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-migrate_005fset_005fdowntime"></a>Command: <em></em> <strong>migrate_set_downtime</strong></dt>
<dd>
<p>Set maximum tolerated downtime for migration.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>value: number</code></dt>
<dd><p>maximum downtime in seconds
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success
</p>
<p><b>Notes:</b>
This command is deprecated in favor of &rsquo;migrate-set-parameters&rsquo;
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate_set_downtime&quot;, &quot;arguments&quot;: { &quot;value&quot;: 0.1 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-migrate_005fset_005fspeed"></a>Command: <em></em> <strong>migrate_set_speed</strong></dt>
<dd>
<p>Set maximum speed for migration.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>value: int</code></dt>
<dd><p>maximum speed in bytes per second.
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success
</p>
<p><b>Notes:</b>
This command is deprecated in favor of &rsquo;migrate-set-parameters&rsquo;
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate_set_speed&quot;, &quot;arguments&quot;: { &quot;value&quot;: 1024 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-migrate_002dset_002dcache_002dsize"></a>Command: <em></em> <strong>migrate-set-cache-size</strong></dt>
<dd>
<p>Set cache size to be used by XBZRLE migration
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>value: int</code></dt>
<dd><p>cache size in bytes
</p></dd>
</dl>
<p>The size will be rounded down to the nearest power of 2.
The cache size can be modified before and during ongoing migration
</p>
<p><b>Returns:</b>
nothing on success
</p>
<p><b>Notes:</b>
This command is deprecated in favor of &rsquo;migrate-set-parameters&rsquo;
</p>
<p><b>Since:</b>
1.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate-set-cache-size&quot;,
     &quot;arguments&quot;: { &quot;value&quot;: 536870912 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-query_002dmigrate_002dcache_002dsize"></a>Command: <em></em> <strong>query-migrate-cache-size</strong></dt>
<dd>
<p>Query migration XBZRLE cache size
</p>

<p><b>Returns:</b>
XBZRLE cache size in bytes
</p>
<p><b>Notes:</b>
This command is deprecated in favor of &rsquo;query-migrate-parameters&rsquo;
</p>
<p><b>Since:</b>
1.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-migrate-cache-size&quot; }
&lt;- { &quot;return&quot;: 67108864 }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-migrate"></a>Command: <em></em> <strong>migrate</strong></dt>
<dd>
<p>Migrates the current running guest to another Virtual Machine.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>uri: string</code></dt>
<dd><p>the Uniform Resource Identifier of the destination VM
</p></dd>
<dt><code>blk: boolean</code> (optional)</dt>
<dd><p>do block migration (full disk copy)
</p></dd>
<dt><code>inc: boolean</code> (optional)</dt>
<dd><p>incremental disk copy migration
</p></dd>
<dt><code>detach: boolean</code> (optional)</dt>
<dd><p>this argument exists only for compatibility reasons and
is ignored by QEMU
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
</p><ol>
<li> The &rsquo;query-migrate&rsquo; command should be used to check migration&rsquo;s progress
and final result (this information is provided by the &rsquo;status&rsquo; member)

</li><li> All boolean arguments default to false

</li><li> The user Monitor&rsquo;s &quot;detach&quot; argument is invalid in QMP and should not
be used
</li></ol>


<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate&quot;, &quot;arguments&quot;: { &quot;uri&quot;: &quot;tcp:0:4446&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-migrate_002dincoming"></a>Command: <em></em> <strong>migrate-incoming</strong></dt>
<dd>
<p>Start an incoming migration, the qemu must have been started
with -incoming defer
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>uri: string</code></dt>
<dd><p>The Uniform Resource Identifier identifying the source or
address to listen on
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success
</p>
<p><b>Since:</b>
2.3
</p>
<p><b>Notes:</b>
</p><ol>
<li> It&rsquo;s a bad idea to use a string for the uri, but it needs to stay
compatible with -incoming and the format of the uri is already exposed
above libvirt.

</li><li> QEMU must be started with -incoming defer to allow migrate-incoming to
be used.

</li><li> The uri format is the same as for -incoming
</li></ol>


<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;migrate-incoming&quot;,
     &quot;arguments&quot;: { &quot;uri&quot;: &quot;tcp::4446&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-xen_002dsave_002ddevices_002dstate"></a>Command: <em></em> <strong>xen-save-devices-state</strong></dt>
<dd>
<p>Save the state of all devices to file. The RAM and the block devices
of the VM are not saved by this command.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>filename: string</code></dt>
<dd><p>the file to save the state of the devices to as binary
data. See xen-save-devices-state.txt for a description of the binary
format.
</p></dd>
<dt><code>live: boolean</code> (optional)</dt>
<dd><p>Optional argument to ask QEMU to treat this command as part of a live
migration. Default to true. (since 2.11)
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;xen-save-devices-state&quot;,
     &quot;arguments&quot;: { &quot;filename&quot;: &quot;/tmp/save&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-xen_002dset_002dreplication"></a>Command: <em></em> <strong>xen-set-replication</strong></dt>
<dd>
<p>Enable or disable replication.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>enable: boolean</code></dt>
<dd><p>true to enable, false to disable.
</p></dd>
<dt><code>primary: boolean</code></dt>
<dd><p>true for primary or false for secondary.
</p></dd>
<dt><code>failover: boolean</code> (optional)</dt>
<dd><p>true to do failover, false to stop. but cannot be
specified if &rsquo;enable&rsquo; is true. default value is false.
</p></dd>
</dl>


<p><b>Returns:</b>
nothing.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;xen-set-replication&quot;,
     &quot;arguments&quot;: {&quot;enable&quot;: true, &quot;primary&quot;: false} }
&lt;- { &quot;return&quot;: {} }
</pre></div>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-ReplicationStatus"></a>Object: <strong>ReplicationStatus</strong></dt>
<dd>
<p>The result format for &rsquo;query-xen-replication-status&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>error: boolean</code></dt>
<dd><p>true if an error happened, false if replication is normal.
</p></dd>
<dt><code>desc: string</code> (optional)</dt>
<dd><p>the human readable error description string, when
<code>error</code> is &rsquo;true&rsquo;.
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dxen_002dreplication_002dstatus"></a>Command: <em></em> <strong>query-xen-replication-status</strong></dt>
<dd>
<p>Query replication status while the vm is running.
</p>

<p><b>Returns:</b>
A <code>ReplicationResult</code> object showing the status.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-xen-replication-status&quot; }
&lt;- { &quot;return&quot;: { &quot;error&quot;: false } }
</pre></div>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-xen_002dcolo_002ddo_002dcheckpoint"></a>Command: <em></em> <strong>xen-colo-do-checkpoint</strong></dt>
<dd>
<p>Xen uses this command to notify replication to trigger a checkpoint.
</p>

<p><b>Returns:</b>
nothing.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;xen-colo-do-checkpoint&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


<p><b>Since:</b>
2.9
</p>
</dd></dl>


<a name="Transactions"></a>
<h3 class="section">1.15 Transactions</h3>


<dl>
<dt><a name="index-Abort"></a>Object: <strong>Abort</strong></dt>
<dd>
<p>This action can be used to test transaction failure.
</p>

<p><b>Since:</b>
1.6
</p>
</dd></dl>



<dl>
<dt><a name="index-ActionCompletionMode"></a>Enum: <strong>ActionCompletionMode</strong></dt>
<dd>
<p>An enumeration of Transactional completion modes.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>individual</code></dt>
<dd><p>Do not attempt to cancel any other Actions if any Actions fail
after the Transaction request succeeds. All Actions that
can complete successfully will do so without waiting on others.
This is the default.
</p></dd>
<dt><code>grouped</code></dt>
<dd><p>If any Action fails after the Transaction succeeds, cancel all
Actions. Actions do not complete until all Actions are ready to
complete. May be rejected by Actions that do not support this
completion mode.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-TransactionAction"></a>Object: <strong>TransactionAction</strong></dt>
<dd>
<p>A discriminated record of operations that can be performed with
<code>transaction</code>. Action <code>type</code> can be:
</p>
<ul class="no-bullet">
<li>- <code>abort</code>: since 1.6
</li><li>- <code>block-dirty-bitmap-add</code>: since 2.5
</li><li>- <code>block-dirty-bitmap-clear</code>: since 2.5
</li><li>- <code>blockdev-backup</code>: since 2.3
</li><li>- <code>blockdev-snapshot</code>: since 2.5
</li><li>- <code>blockdev-snapshot-internal-sync</code>: since 1.7
</li><li>- <code>blockdev-snapshot-sync</code>: since 1.1
</li><li>- <code>drive-backup</code>: since 1.6
</li></ul>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type</code></dt>
<dd><p>One of <tt>&quot;abort&quot;</tt>, <tt>&quot;block-dirty-bitmap-add&quot;</tt>, <tt>&quot;block-dirty-bitmap-clear&quot;</tt>, <tt>&quot;blockdev-backup&quot;</tt>, <tt>&quot;blockdev-snapshot&quot;</tt>, <tt>&quot;blockdev-snapshot-internal-sync&quot;</tt>, <tt>&quot;blockdev-snapshot-sync&quot;</tt>, <tt>&quot;drive-backup&quot;</tt>
</p></dd>
<dt><code>data: Abort</code> when <code>type</code> is <tt>&quot;abort&quot;</tt></dt>
<dt><code>data: BlockDirtyBitmapAdd</code> when <code>type</code> is <tt>&quot;block-dirty-bitmap-add&quot;</tt></dt>
<dt><code>data: BlockDirtyBitmap</code> when <code>type</code> is <tt>&quot;block-dirty-bitmap-clear&quot;</tt></dt>
<dt><code>data: BlockdevBackup</code> when <code>type</code> is <tt>&quot;blockdev-backup&quot;</tt></dt>
<dt><code>data: BlockdevSnapshot</code> when <code>type</code> is <tt>&quot;blockdev-snapshot&quot;</tt></dt>
<dt><code>data: BlockdevSnapshotInternal</code> when <code>type</code> is <tt>&quot;blockdev-snapshot-internal-sync&quot;</tt></dt>
<dt><code>data: BlockdevSnapshotSync</code> when <code>type</code> is <tt>&quot;blockdev-snapshot-sync&quot;</tt></dt>
<dt><code>data: DriveBackup</code> when <code>type</code> is <tt>&quot;drive-backup&quot;</tt></dt>
</dl>


<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-TransactionProperties"></a>Object: <strong>TransactionProperties</strong></dt>
<dd>
<p>Optional arguments to modify the behavior of a Transaction.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>completion-mode: ActionCompletionMode</code> (optional)</dt>
<dd><p>Controls how jobs launched asynchronously by
Actions will complete or fail as a group.
See <code>ActionCompletionMode</code> for details.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-transaction"></a>Command: <em></em> <strong>transaction</strong></dt>
<dd>
<p>Executes a number of transactionable QMP commands atomically. If any
operation fails, then the entire set of actions will be abandoned and the
appropriate error returned.
</p>
<p>For external snapshots, the dictionary contains the device, the file to use for
the new snapshot, and the format.  The default format, if not specified, is
qcow2.
</p>
<p>Each new snapshot defaults to being created by QEMU (wiping any
contents if the file already exists), but it is also possible to reuse
an externally-created file.  In the latter case, you should ensure that
the new image file has the same contents as the current one; QEMU cannot
perform any meaningful check.  Typically this is achieved by using the
current image file as the backing file for the new image.
</p>
<p>On failure, the original disks pre-snapshot attempt will be used.
</p>
<p>For internal snapshots, the dictionary contains the device and the snapshot&rsquo;s
name.  If an internal snapshot matching name already exists, the request will
be rejected.  Only some image formats support it, for example, qcow2, rbd,
and sheepdog.
</p>
<p>On failure, qemu will try delete the newly created internal snapshot in the
transaction.  When an I/O error occurs during deletion, the user needs to fix
it later with qemu-img or other command.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>actions: array of TransactionAction</code></dt>
<dd><p>List of <code>TransactionAction</code>;
information needed for the respective operations.
</p></dd>
<dt><code>properties: TransactionProperties</code> (optional)</dt>
<dd><p>structure of additional options to control the
execution of the transaction. See <code>TransactionProperties</code>
for additional detail.
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success
</p>
<p>Errors depend on the operations of the transaction
</p>
<p><b>Note:</b>
The transaction aborts on the first failure.  Therefore, there will be
information on only one failed operation returned in an error condition, and
subsequent actions will not have been attempted.
</p>
<p><b>Since:</b>
1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;transaction&quot;,
     &quot;arguments&quot;: { &quot;actions&quot;: [
         { &quot;type&quot;: &quot;blockdev-snapshot-sync&quot;, &quot;data&quot; : { &quot;device&quot;: &quot;ide-hd0&quot;,
                                     &quot;snapshot-file&quot;: &quot;/some/place/my-image&quot;,
                                     &quot;format&quot;: &quot;qcow2&quot; } },
         { &quot;type&quot;: &quot;blockdev-snapshot-sync&quot;, &quot;data&quot; : { &quot;node-name&quot;: &quot;myfile&quot;,
                                     &quot;snapshot-file&quot;: &quot;/some/place/my-image2&quot;,
                                     &quot;snapshot-node-name&quot;: &quot;node3432&quot;,
                                     &quot;mode&quot;: &quot;existing&quot;,
                                     &quot;format&quot;: &quot;qcow2&quot; } },
         { &quot;type&quot;: &quot;blockdev-snapshot-sync&quot;, &quot;data&quot; : { &quot;device&quot;: &quot;ide-hd1&quot;,
                                     &quot;snapshot-file&quot;: &quot;/some/place/my-image2&quot;,
                                     &quot;mode&quot;: &quot;existing&quot;,
                                     &quot;format&quot;: &quot;qcow2&quot; } },
         { &quot;type&quot;: &quot;blockdev-snapshot-internal-sync&quot;, &quot;data&quot; : {
                                     &quot;device&quot;: &quot;ide-hd2&quot;,
                                     &quot;name&quot;: &quot;snapshot0&quot; } } ] } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>


<a name="Tracing"></a>
<h3 class="section">1.16 Tracing</h3>


<dl>
<dt><a name="index-TraceEventState"></a>Enum: <strong>TraceEventState</strong></dt>
<dd>
<p>State of a tracing event.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>unavailable</code></dt>
<dd><p>The event is statically disabled.
</p></dd>
<dt><code>disabled</code></dt>
<dd><p>The event is dynamically disabled.
</p></dd>
<dt><code>enabled</code></dt>
<dd><p>The event is dynamically enabled.
</p></dd>
</dl>


<p><b>Since:</b>
2.2
</p>
</dd></dl>



<dl>
<dt><a name="index-TraceEventInfo"></a>Object: <strong>TraceEventInfo</strong></dt>
<dd>
<p>Information of a tracing event.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>Event name.
</p></dd>
<dt><code>state: TraceEventState</code></dt>
<dd><p>Tracing state.
</p></dd>
<dt><code>vcpu: boolean</code></dt>
<dd><p>Whether this is a per-vCPU event (since 2.7).
</p></dd>
</dl>
<p>An event is per-vCPU if it has the &quot;vcpu&quot; property in the &quot;trace-events&quot;
files.
</p>
<p><b>Since:</b>
2.2
</p>
</dd></dl>



<dl>
<dt><a name="index-trace_002devent_002dget_002dstate"></a>Command: <em></em> <strong>trace-event-get-state</strong></dt>
<dd>
<p>Query the state of events.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>Event name pattern (case-sensitive glob).
</p></dd>
<dt><code>vcpu: int</code> (optional)</dt>
<dd><p>The vCPU to query (any by default; since 2.7).
</p></dd>
</dl>


<p><b>Returns:</b>
a list of <code>TraceEventInfo</code> for the matching events
</p>
<p>An event is returned if:
</p><ul class="no-bullet">
<li>- its name matches the <code>name</code> pattern, and
</li><li>- if <code>vcpu</code> is given, the event has the &quot;vcpu&quot; property.

</li></ul>

<p>Therefore, if <code>vcpu</code> is given, the operation will only match per-vCPU events,
returning their state on the specified vCPU. Special case: if <code>name</code> is an
exact match, <code>vcpu</code> is given and the event does not have the &quot;vcpu&quot; property,
an error is returned.
</p>
<p><b>Since:</b>
2.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;trace-event-get-state&quot;,
     &quot;arguments&quot;: { &quot;name&quot;: &quot;qemu_memalign&quot; } }
&lt;- { &quot;return&quot;: [ { &quot;name&quot;: &quot;qemu_memalign&quot;, &quot;state&quot;: &quot;disabled&quot; } ] }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-trace_002devent_002dset_002dstate"></a>Command: <em></em> <strong>trace-event-set-state</strong></dt>
<dd>
<p>Set the dynamic tracing state of events.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>Event name pattern (case-sensitive glob).
</p></dd>
<dt><code>enable: boolean</code></dt>
<dd><p>Whether to enable tracing.
</p></dd>
<dt><code>ignore-unavailable: boolean</code> (optional)</dt>
<dd><p>Do not match unavailable events with <code>name</code>.
</p></dd>
<dt><code>vcpu: int</code> (optional)</dt>
<dd><p>The vCPU to act upon (all by default; since 2.7).
</p></dd>
</dl>
<p>An event&rsquo;s state is modified if:
</p><ul class="no-bullet">
<li>- its name matches the <code>name</code> pattern, and
</li><li>- if <code>vcpu</code> is given, the event has the &quot;vcpu&quot; property.

</li></ul>

<p>Therefore, if <code>vcpu</code> is given, the operation will only match per-vCPU events,
setting their state on the specified vCPU. Special case: if <code>name</code> is an exact
match, <code>vcpu</code> is given and the event does not have the &quot;vcpu&quot; property, an
error is returned.
</p>
<p><b>Since:</b>
2.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;trace-event-set-state&quot;,
     &quot;arguments&quot;: { &quot;name&quot;: &quot;qemu_memalign&quot;, &quot;enable&quot;: &quot;true&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>


<a name="QMP-introspection"></a>
<h3 class="section">1.17 QMP introspection</h3>


<dl>
<dt><a name="index-query_002dqmp_002dschema"></a>Command: <em></em> <strong>query-qmp-schema</strong></dt>
<dd>
<p>Command query-qmp-schema exposes the QMP wire ABI as an array of
SchemaInfo.  This lets QMP clients figure out what commands and
events are available in this QEMU, and their parameters and results.
</p>
<p>However, the SchemaInfo can&rsquo;t reflect all the rules and restrictions
that apply to QMP.  It&rsquo;s interface introspection (figuring out
what&rsquo;s there), not interface specification.  The specification is in
the QAPI schema.
</p>
<p>Furthermore, while we strive to keep the QMP wire format
backwards-compatible across qemu versions, the introspection output
is not guaranteed to have the same stability.  For example, one
version of qemu may list an object member as an optional
non-variant, while another lists the same member only through the
object&rsquo;s variants; or the type of a member may change from a generic
string into a specific enum or from one specific type into an
alternate that includes the original type alongside something else.
</p>

<p><b>Returns:</b>
array of <code>SchemaInfo</code>, where each element describes an
entity in the ABI: command, event, type, ...
</p>
<p>The order of the various SchemaInfo is unspecified; however, all
names are guaranteed to be unique (no name will be duplicated with
different meta-types).
</p>
<p><b>Note:</b>
the QAPI schema is also used to help define <strong>internal</strong>
interfaces, by defining QAPI types.  These are not part of the QMP
wire ABI, and therefore not returned by this command.
</p>
<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaMetaType"></a>Enum: <strong>SchemaMetaType</strong></dt>
<dd>
<p>This is a <code>SchemaInfo</code>&rsquo;s meta type, i.e. the kind of entity it
describes.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>builtin</code></dt>
<dd><p>a predefined type such as &rsquo;int&rsquo; or &rsquo;bool&rsquo;.
</p></dd>
<dt><code>enum</code></dt>
<dd><p>an enumeration type
</p></dd>
<dt><code>array</code></dt>
<dd><p>an array type
</p></dd>
<dt><code>object</code></dt>
<dd><p>an object type (struct or union)
</p></dd>
<dt><code>alternate</code></dt>
<dd><p>an alternate type
</p></dd>
<dt><code>command</code></dt>
<dd><p>a QMP command
</p></dd>
<dt><code>event</code></dt>
<dd><p>a QMP event
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfo"></a>Object: <strong>SchemaInfo</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the entity&rsquo;s name, inherited from <code>base</code>.
The SchemaInfo is always referenced by this name.
Commands and events have the name defined in the QAPI schema.
Unlike command and event names, type names are not part of
the wire ABI.  Consequently, type names are meaningless
strings here, although they are still guaranteed unique
regardless of <code>meta-type</code>.
</p></dd>
<dt><code>meta-type: SchemaMetaType</code></dt>
<dd><p>the entity&rsquo;s meta type, inherited from <code>base</code>.
</p></dd>
<dt>The members of <code>SchemaInfoBuiltin</code> when <code>meta-type</code> is <tt>&quot;builtin&quot;</tt></dt>
<dt>The members of <code>SchemaInfoEnum</code> when <code>meta-type</code> is <tt>&quot;enum&quot;</tt></dt>
<dt>The members of <code>SchemaInfoArray</code> when <code>meta-type</code> is <tt>&quot;array&quot;</tt></dt>
<dt>The members of <code>SchemaInfoObject</code> when <code>meta-type</code> is <tt>&quot;object&quot;</tt></dt>
<dt>The members of <code>SchemaInfoAlternate</code> when <code>meta-type</code> is <tt>&quot;alternate&quot;</tt></dt>
<dt>The members of <code>SchemaInfoCommand</code> when <code>meta-type</code> is <tt>&quot;command&quot;</tt></dt>
<dt>The members of <code>SchemaInfoEvent</code> when <code>meta-type</code> is <tt>&quot;event&quot;</tt></dt>
</dl>
<p>Additional members depend on the value of <code>meta-type</code>.
</p>
<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoBuiltin"></a>Object: <strong>SchemaInfoBuiltin</strong></dt>
<dd>
<p>Additional SchemaInfo members for meta-type &rsquo;builtin&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>json-type: JSONType</code></dt>
<dd><p>the JSON type used for this type on the wire.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-JSONType"></a>Enum: <strong>JSONType</strong></dt>
<dd>
<p>The four primitive and two structured types according to RFC 7159
section 1, plus &rsquo;int&rsquo; (split off &rsquo;number&rsquo;), plus the obvious top
type &rsquo;value&rsquo;.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>string</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>number</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>int</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>boolean</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>null</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>object</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>array</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>value</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoEnum"></a>Object: <strong>SchemaInfoEnum</strong></dt>
<dd>
<p>Additional SchemaInfo members for meta-type &rsquo;enum&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>values: array of string</code></dt>
<dd><p>the enumeration type&rsquo;s values, in no particular order.
</p></dd>
</dl>
<p>Values of this type are JSON string on the wire.
</p>
<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoArray"></a>Object: <strong>SchemaInfoArray</strong></dt>
<dd>
<p>Additional SchemaInfo members for meta-type &rsquo;array&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>element-type: string</code></dt>
<dd><p>the array type&rsquo;s element type.
</p></dd>
</dl>
<p>Values of this type are JSON array on the wire.
</p>
<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoObject"></a>Object: <strong>SchemaInfoObject</strong></dt>
<dd>
<p>Additional SchemaInfo members for meta-type &rsquo;object&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>members: array of SchemaInfoObjectMember</code></dt>
<dd><p>the object type&rsquo;s (non-variant) members, in no particular order.
</p></dd>
<dt><code>tag: string</code> (optional)</dt>
<dd><p>the name of the member serving as type tag.
An element of <code>members</code> with this name must exist.
</p></dd>
<dt><code>variants: array of SchemaInfoObjectVariant</code> (optional)</dt>
<dd><p>variant members, i.e. additional members that
depend on the type tag&rsquo;s value.  Present exactly when
<code>tag</code> is present.  The variants are in no particular order,
and may even differ from the order of the values of the
enum type of the <code>tag</code>.
</p></dd>
</dl>
<p>Values of this type are JSON object on the wire.
</p>
<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoObjectMember"></a>Object: <strong>SchemaInfoObjectMember</strong></dt>
<dd>
<p>An object member.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the member&rsquo;s name, as defined in the QAPI schema.
</p></dd>
<dt><code>type: string</code></dt>
<dd><p>the name of the member&rsquo;s type.
</p></dd>
<dt><code>default: value</code> (optional)</dt>
<dd><p>default when used as command parameter.
If absent, the parameter is mandatory.
If present, the value must be null.  The parameter is
optional, and behavior when it&rsquo;s missing is not specified
here.
Future extension: if present and non-null, the parameter
is optional, and defaults to this value.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoObjectVariant"></a>Object: <strong>SchemaInfoObjectVariant</strong></dt>
<dd>
<p>The variant members for a value of the type tag.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>case: string</code></dt>
<dd><p>a value of the type tag.
</p></dd>
<dt><code>type: string</code></dt>
<dd><p>the name of the object type that provides the variant members
when the type tag has value <code>case</code>.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoAlternate"></a>Object: <strong>SchemaInfoAlternate</strong></dt>
<dd>
<p>Additional SchemaInfo members for meta-type &rsquo;alternate&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>members: array of SchemaInfoAlternateMember</code></dt>
<dd><p>the alternate type&rsquo;s members, in no particular order.
The members&rsquo; wire encoding is distinct, see
docs/devel/qapi-code-gen.txt section Alternate types.
</p></dd>
</dl>
<p>On the wire, this can be any of the members.
</p>
<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoAlternateMember"></a>Object: <strong>SchemaInfoAlternateMember</strong></dt>
<dd>
<p>An alternate member.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: string</code></dt>
<dd><p>the name of the member&rsquo;s type.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoCommand"></a>Object: <strong>SchemaInfoCommand</strong></dt>
<dd>
<p>Additional SchemaInfo members for meta-type &rsquo;command&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>arg-type: string</code></dt>
<dd><p>the name of the object type that provides the command&rsquo;s
parameters.
</p></dd>
<dt><code>ret-type: string</code></dt>
<dd><p>the name of the command&rsquo;s result type.
</p></dd>
</dl>


<p><b>TODO:</b>
<code>success-response</code> (currently irrelevant, because it&rsquo;s QGA, not QMP)
</p>
<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-SchemaInfoEvent"></a>Object: <strong>SchemaInfoEvent</strong></dt>
<dd>
<p>Additional SchemaInfo members for meta-type &rsquo;event&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>arg-type: string</code></dt>
<dd><p>the name of the object type that provides the event&rsquo;s
parameters.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>


<a name="Miscellanea"></a>
<h3 class="section">1.18 Miscellanea</h3>


<dl>
<dt><a name="index-qmp_005fcapabilities"></a>Command: <em></em> <strong>qmp_capabilities</strong></dt>
<dd>
<p>Enable QMP capabilities.
</p>
<p>Arguments: None.
</p>

<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;qmp_capabilities&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


<p><b>Notes:</b>
This command is valid exactly when first connecting: it must be
issued before any other command will be accepted, and will fail once the
monitor is accepting other commands. (see qemu docs/interop/qmp-spec.txt)
</p>
<p><b>Since:</b>
0.13
</p>
</dd></dl>



<dl>
<dt><a name="index-VersionTriple"></a>Object: <strong>VersionTriple</strong></dt>
<dd>
<p>A three-part version number.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>major: int</code></dt>
<dd><p>The major version number.
</p></dd>
<dt><code>minor: int</code></dt>
<dd><p>The minor version number.
</p></dd>
<dt><code>micro: int</code></dt>
<dd><p>The micro version number.
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-VersionInfo"></a>Object: <strong>VersionInfo</strong></dt>
<dd>
<p>A description of QEMU&rsquo;s version.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>qemu: VersionTriple</code></dt>
<dd><p>The version of QEMU.  By current convention, a micro
version of 50 signifies a development branch.  A micro version
greater than or equal to 90 signifies a release candidate for
the next minor version.  A micro version of less than 50
signifies a stable release.
</p></dd>
<dt><code>package: string</code></dt>
<dd><p>QEMU will always set this field to an empty string.  Downstream
versions of QEMU should set this to a non-empty string.  The
exact format depends on the downstream however it highly
recommended that a unique name is used.
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dversion"></a>Command: <em></em> <strong>query-version</strong></dt>
<dd>
<p>Returns the current version of QEMU.
</p>

<p><b>Returns:</b>
A <code>VersionInfo</code> object describing the current version of QEMU.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-version&quot; }
&lt;- {
      &quot;return&quot;:{
         &quot;qemu&quot;:{
            &quot;major&quot;:0,
            &quot;minor&quot;:11,
            &quot;micro&quot;:5
         },
         &quot;package&quot;:&quot;&quot;
      }
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-CommandInfo"></a>Object: <strong>CommandInfo</strong></dt>
<dd>
<p>Information about a QMP command
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>The command name
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dcommands"></a>Command: <em></em> <strong>query-commands</strong></dt>
<dd>
<p>Return a list of supported QMP commands by this server
</p>

<p><b>Returns:</b>
A list of <code>CommandInfo</code> for all supported commands
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-commands&quot; }
&lt;- {
     &quot;return&quot;:[
        {
           &quot;name&quot;:&quot;query-balloon&quot;
        },
        {
           &quot;name&quot;:&quot;system_powerdown&quot;
        }
     ]
   }
</pre></div>


<p><b>Note:</b>
This example has been shortened as the real response is too long.
</p>
</dd></dl>



<dl>
<dt><a name="index-LostTickPolicy"></a>Enum: <strong>LostTickPolicy</strong></dt>
<dd>
<p>Policy for handling lost ticks in timer devices.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>discard</code></dt>
<dd><p>throw away the missed tick(s) and continue with future injection
normally.  Guest time may be delayed, unless the OS has explicit
handling of lost ticks
</p></dd>
<dt><code>delay</code></dt>
<dd><p>continue to deliver ticks at the normal rate.  Guest time will be
delayed due to the late tick
</p></dd>
<dt><code>merge</code></dt>
<dd><p>merge the missed tick(s) into one tick and inject.  Guest time
may be delayed, depending on how the OS reacts to the merging
of ticks
</p></dd>
<dt><code>slew</code></dt>
<dd><p>deliver ticks at a higher rate to catch up with the missed tick. The
guest time should not be delayed once catchup is complete.
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-add_005fclient"></a>Command: <em></em> <strong>add_client</strong></dt>
<dd>
<p>Allow client connections for VNC, Spice and socket based
character devices to be passed in to QEMU via SCM_RIGHTS.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>protocol: string</code></dt>
<dd><p>protocol name. Valid names are &quot;vnc&quot;, &quot;spice&quot; or the
name of a character device (eg. from -chardev id=XXXX)
</p></dd>
<dt><code>fdname: string</code></dt>
<dd><p>file descriptor name previously passed via &rsquo;getfd&rsquo; command
</p></dd>
<dt><code>skipauth: boolean</code> (optional)</dt>
<dd><p>whether to skip authentication. Only applies
to &quot;vnc&quot; and &quot;spice&quot; protocols
</p></dd>
<dt><code>tls: boolean</code> (optional)</dt>
<dd><p>whether to perform TLS. Only applies to the &quot;spice&quot;
protocol
</p></dd>
</dl>


<p><b>Returns:</b>
nothing on success.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;add_client&quot;, &quot;arguments&quot;: { &quot;protocol&quot;: &quot;vnc&quot;,
                                             &quot;fdname&quot;: &quot;myclient&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-NameInfo"></a>Object: <strong>NameInfo</strong></dt>
<dd>
<p>Guest name information.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code> (optional)</dt>
<dd><p>The name of the guest
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dname"></a>Command: <em></em> <strong>query-name</strong></dt>
<dd>
<p>Return the name information of a guest.
</p>

<p><b>Returns:</b>
<code>NameInfo</code> of the guest
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-name&quot; }
&lt;- { &quot;return&quot;: { &quot;name&quot;: &quot;qemu-name&quot; } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-KvmInfo"></a>Object: <strong>KvmInfo</strong></dt>
<dd>
<p>Information about support for KVM acceleration
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>enabled: boolean</code></dt>
<dd><p>true if KVM acceleration is active
</p></dd>
<dt><code>present: boolean</code></dt>
<dd><p>true if KVM acceleration is built into this executable
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dkvm"></a>Command: <em></em> <strong>query-kvm</strong></dt>
<dd>
<p>Returns information about KVM acceleration
</p>

<p><b>Returns:</b>
<code>KvmInfo</code>
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-kvm&quot; }
&lt;- { &quot;return&quot;: { &quot;enabled&quot;: true, &quot;present&quot;: true } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-UuidInfo"></a>Object: <strong>UuidInfo</strong></dt>
<dd>
<p>Guest UUID information (Universally Unique Identifier).
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>UUID: string</code></dt>
<dd><p>the UUID of the guest
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
If no UUID was specified for the guest, a null UUID is returned.
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002duuid"></a>Command: <em></em> <strong>query-uuid</strong></dt>
<dd>
<p>Query the guest UUID information.
</p>

<p><b>Returns:</b>
The <code>UuidInfo</code> for the guest
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-uuid&quot; }
&lt;- { &quot;return&quot;: { &quot;UUID&quot;: &quot;550e8400-e29b-41d4-a716-446655440000&quot; } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-EventInfo"></a>Object: <strong>EventInfo</strong></dt>
<dd>
<p>Information about a QMP event
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>The event name
</p></dd>
</dl>


<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002devents"></a>Command: <em></em> <strong>query-events</strong></dt>
<dd>
<p>Return a list of supported QMP events by this server
</p>

<p><b>Returns:</b>
A list of <code>EventInfo</code> for all supported events
</p>
<p><b>Since:</b>
1.2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-events&quot; }
&lt;- {
     &quot;return&quot;: [
         {
            &quot;name&quot;:&quot;SHUTDOWN&quot;
         },
         {
            &quot;name&quot;:&quot;RESET&quot;
         }
      ]
   }
</pre></div>


<p><b>Note:</b>
This example has been shortened as the real response is too long.
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuInfoArch"></a>Enum: <strong>CpuInfoArch</strong></dt>
<dd>
<p>An enumeration of cpu types that enable additional information during
<code>query-cpus</code>.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>x86</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>sparc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ppc</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>mips</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>tricore</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>other</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuInfo"></a>Object: <strong>CpuInfo</strong></dt>
<dd>
<p>Information about a virtual CPU
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>CPU: int</code></dt>
<dd><p>the index of the virtual CPU
</p></dd>
<dt><code>current: boolean</code></dt>
<dd><p>this only exists for backwards compatibility and should be ignored
</p></dd>
<dt><code>halted: boolean</code></dt>
<dd><p>true if the virtual CPU is in the halt state.  Halt usually refers
to a processor specific low power mode.
</p></dd>
<dt><code>qom_path: string</code></dt>
<dd><p>path to the CPU object in the QOM tree (since 2.4)
</p></dd>
<dt><code>thread_id: int</code></dt>
<dd><p>ID of the underlying host thread
</p></dd>
<dt><code>props: CpuInstanceProperties</code> (optional)</dt>
<dd><p>properties describing to which node/socket/core/thread
virtual CPU belongs to, provided if supported by board (since 2.10)
</p></dd>
<dt><code>arch: CpuInfoArch</code></dt>
<dd><p>architecture of the cpu, which determines which additional fields
will be listed (since 2.6)
</p></dd>
<dt>The members of <code>CpuInfoX86</code> when <code>arch</code> is <tt>&quot;x86&quot;</tt></dt>
<dt>The members of <code>CpuInfoSPARC</code> when <code>arch</code> is <tt>&quot;sparc&quot;</tt></dt>
<dt>The members of <code>CpuInfoPPC</code> when <code>arch</code> is <tt>&quot;ppc&quot;</tt></dt>
<dt>The members of <code>CpuInfoMIPS</code> when <code>arch</code> is <tt>&quot;mips&quot;</tt></dt>
<dt>The members of <code>CpuInfoTricore</code> when <code>arch</code> is <tt>&quot;tricore&quot;</tt></dt>
<dt>The members of <code>CpuInfoOther</code> when <code>arch</code> is <tt>&quot;other&quot;</tt></dt>
</dl>


<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
<code>halted</code> is a transient state that changes frequently.  By the time the
data is sent to the client, the guest may no longer be halted.
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuInfoX86"></a>Object: <strong>CpuInfoX86</strong></dt>
<dd>
<p>Additional information about a virtual i386 or x86_64 CPU
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>pc: int</code></dt>
<dd><p>the 64-bit instruction pointer
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuInfoSPARC"></a>Object: <strong>CpuInfoSPARC</strong></dt>
<dd>
<p>Additional information about a virtual SPARC CPU
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>pc: int</code></dt>
<dd><p>the PC component of the instruction pointer
</p></dd>
<dt><code>npc: int</code></dt>
<dd><p>the NPC component of the instruction pointer
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuInfoPPC"></a>Object: <strong>CpuInfoPPC</strong></dt>
<dd>
<p>Additional information about a virtual PPC CPU
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>nip: int</code></dt>
<dd><p>the instruction pointer
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuInfoMIPS"></a>Object: <strong>CpuInfoMIPS</strong></dt>
<dd>
<p>Additional information about a virtual MIPS CPU
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>PC: int</code></dt>
<dd><p>the instruction pointer
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuInfoTricore"></a>Object: <strong>CpuInfoTricore</strong></dt>
<dd>
<p>Additional information about a virtual Tricore CPU
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>PC: int</code></dt>
<dd><p>the instruction pointer
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuInfoOther"></a>Object: <strong>CpuInfoOther</strong></dt>
<dd>
<p>No additional information is available about the virtual CPU
</p>

<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dcpus"></a>Command: <em></em> <strong>query-cpus</strong></dt>
<dd>
<p>Returns a list of information about each virtual CPU.
</p>

<p><b>Returns:</b>
a list of <code>CpuInfo</code> for each virtual CPU
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-cpus&quot; }
&lt;- { &quot;return&quot;: [
         {
            &quot;CPU&quot;:0,
            &quot;current&quot;:true,
            &quot;halted&quot;:false,
            &quot;qom_path&quot;:&quot;/machine/unattached/device[0]&quot;,
            &quot;arch&quot;:&quot;x86&quot;,
            &quot;pc&quot;:3227107138,
            &quot;thread_id&quot;:3134
         },
         {
            &quot;CPU&quot;:1,
            &quot;current&quot;:false,
            &quot;halted&quot;:true,
            &quot;qom_path&quot;:&quot;/machine/unattached/device[2]&quot;,
            &quot;arch&quot;:&quot;x86&quot;,
            &quot;pc&quot;:7108165,
            &quot;thread_id&quot;:3135
         }
      ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-IOThreadInfo"></a>Object: <strong>IOThreadInfo</strong></dt>
<dd>
<p>Information about an iothread
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>the identifier of the iothread
</p></dd>
<dt><code>thread-id: int</code></dt>
<dd><p>ID of the underlying host thread
</p></dd>
<dt><code>poll-max-ns: int</code></dt>
<dd><p>maximum polling time in ns, 0 means polling is disabled
(since 2.9)
</p></dd>
<dt><code>poll-grow: int</code></dt>
<dd><p>how many ns will be added to polling time, 0 means that it&rsquo;s not
configured (since 2.9)
</p></dd>
<dt><code>poll-shrink: int</code></dt>
<dd><p>how many ns will be removed from polling time, 0 means that
it&rsquo;s not configured (since 2.9)
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002diothreads"></a>Command: <em></em> <strong>query-iothreads</strong></dt>
<dd>
<p>Returns a list of information about each iothread.
</p>

<p><b>Note:</b>
this list excludes the QEMU main loop thread, which is not declared
using the -object iothread command-line option.  It is always the main thread
of the process.
</p>
<p><b>Returns:</b>
a list of <code>IOThreadInfo</code> for each iothread
</p>
<p><b>Since:</b>
2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-iothreads&quot; }
&lt;- { &quot;return&quot;: [
         {
            &quot;id&quot;:&quot;iothread0&quot;,
            &quot;thread-id&quot;:3134
         },
         {
            &quot;id&quot;:&quot;iothread1&quot;,
            &quot;thread-id&quot;:3135
         }
      ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BalloonInfo"></a>Object: <strong>BalloonInfo</strong></dt>
<dd>
<p>Information about the guest balloon device.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>actual: int</code></dt>
<dd><p>the number of bytes the balloon currently contains
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dballoon"></a>Command: <em></em> <strong>query-balloon</strong></dt>
<dd>
<p>Return information about the balloon device.
</p>

<p><b>Returns:</b>
<code>BalloonInfo</code> on success
</p>
<p>If the balloon driver is enabled but not functional because the KVM
kernel module cannot support it, KvmMissingCap
</p>
<p>If no balloon device is present, DeviceNotActive
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-balloon&quot; }
&lt;- { &quot;return&quot;: {
         &quot;actual&quot;: 1073741824,
      }
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-BALLOON_005fCHANGE"></a>Event: <em></em> <strong>BALLOON_CHANGE</strong></dt>
<dd>
<p>Emitted when the guest changes the actual BALLOON level. This value is
equivalent to the <code>actual</code> field return by the &rsquo;query-balloon&rsquo; command
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>actual: int</code></dt>
<dd><p>actual level of the guest memory balloon in bytes
</p></dd>
</dl>


<p><b>Note:</b>
this event is rate-limited.
</p>
<p><b>Since:</b>
1.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;BALLOON_CHANGE&quot;,
     &quot;data&quot;: { &quot;actual&quot;: 944766976 },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1267020223, &quot;microseconds&quot;: 435656 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-PciMemoryRange"></a>Object: <strong>PciMemoryRange</strong></dt>
<dd>
<p>A PCI device memory region
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>base: int</code></dt>
<dd><p>the starting address (guest physical)
</p></dd>
<dt><code>limit: int</code></dt>
<dd><p>the ending address (guest physical)
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-PciMemoryRegion"></a>Object: <strong>PciMemoryRegion</strong></dt>
<dd>
<p>Information about a PCI device I/O region.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>bar: int</code></dt>
<dd><p>the index of the Base Address Register for this region
</p></dd>
<dt><code>type: string</code></dt>
<dd><p>&rsquo;io&rsquo; if the region is a PIO region
&rsquo;memory&rsquo; if the region is a MMIO region
</p></dd>
<dt><code>size: int</code></dt>
<dd><p>memory size
</p></dd>
<dt><code>prefetch: boolean</code> (optional)</dt>
<dd><p>if <code>type</code> is &rsquo;memory&rsquo;, true if the memory is prefetchable
</p></dd>
<dt><code>mem_type_64: boolean</code> (optional)</dt>
<dd><p>if <code>type</code> is &rsquo;memory&rsquo;, true if the BAR is 64-bit
</p></dd>
<dt><code>address: int</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-PciBusInfo"></a>Object: <strong>PciBusInfo</strong></dt>
<dd>
<p>Information about a bus of a PCI Bridge device
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>number: int</code></dt>
<dd><p>primary bus interface number.  This should be the number of the
bus the device resides on.
</p></dd>
<dt><code>secondary: int</code></dt>
<dd><p>secondary bus interface number.  This is the number of the
main bus for the bridge
</p></dd>
<dt><code>subordinate: int</code></dt>
<dd><p>This is the highest number bus that resides below the
bridge.
</p></dd>
<dt><code>io_range: PciMemoryRange</code></dt>
<dd><p>The PIO range for all devices on this bridge
</p></dd>
<dt><code>memory_range: PciMemoryRange</code></dt>
<dd><p>The MMIO range for all devices on this bridge
</p></dd>
<dt><code>prefetchable_range: PciMemoryRange</code></dt>
<dd><p>The range of prefetchable MMIO for all devices on
this bridge
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-PciBridgeInfo"></a>Object: <strong>PciBridgeInfo</strong></dt>
<dd>
<p>Information about a PCI Bridge device
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>bus: PciBusInfo</code></dt>
<dd><p>information about the bus the device resides on
</p></dd>
<dt><code>devices: array of PciDeviceInfo</code> (optional)</dt>
<dd><p>a list of <code>PciDeviceInfo</code> for each device on this bridge
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-PciDeviceClass"></a>Object: <strong>PciDeviceClass</strong></dt>
<dd>
<p>Information about the Class of a PCI device
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>desc: string</code> (optional)</dt>
<dd><p>a string description of the device&rsquo;s class
</p></dd>
<dt><code>class: int</code></dt>
<dd><p>the class code of the device
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-PciDeviceId"></a>Object: <strong>PciDeviceId</strong></dt>
<dd>
<p>Information about the Id of a PCI device
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>device: int</code></dt>
<dd><p>the PCI device id
</p></dd>
<dt><code>vendor: int</code></dt>
<dd><p>the PCI vendor id
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
</dd></dl>



<dl>
<dt><a name="index-PciDeviceInfo"></a>Object: <strong>PciDeviceInfo</strong></dt>
<dd>
<p>Information about a PCI device
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>bus: int</code></dt>
<dd><p>the bus number of the device
</p></dd>
<dt><code>slot: int</code></dt>
<dd><p>the slot the device is located in
</p></dd>
<dt><code>function: int</code></dt>
<dd><p>the function of the slot used by the device
</p></dd>
<dt><code>class_info: PciDeviceClass</code></dt>
<dd><p>the class of the device
</p></dd>
<dt><code>id: PciDeviceId</code></dt>
<dd><p>the PCI device id
</p></dd>
<dt><code>irq: int</code> (optional)</dt>
<dd><p>if an IRQ is assigned to the device, the IRQ number
</p></dd>
<dt><code>qdev_id: string</code></dt>
<dd><p>the device name of the PCI device
</p></dd>
<dt><code>pci_bridge: PciBridgeInfo</code> (optional)</dt>
<dd><p>if the device is a PCI bridge, the bridge information
</p></dd>
<dt><code>regions: array of PciMemoryRegion</code></dt>
<dd><p>a list of the PCI I/O regions associated with the device
</p></dd>
</dl>


<p><b>Notes:</b>
the contents of <code>class_info</code>.desc are not stable and should only be
treated as informational.
</p>
<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-PciInfo"></a>Object: <strong>PciInfo</strong></dt>
<dd>
<p>Information about a PCI bus
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>bus: int</code></dt>
<dd><p>the bus index
</p></dd>
<dt><code>devices: array of PciDeviceInfo</code></dt>
<dd><p>a list of devices on this bus
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dpci"></a>Command: <em></em> <strong>query-pci</strong></dt>
<dd>
<p>Return information about the PCI bus topology of the guest.
</p>

<p><b>Returns:</b>
a list of <code>PciInfo</code> for each PCI bus. Each bus is
represented by a json-object, which has a key with a json-array of
all PCI devices attached to it. Each device is represented by a
json-object.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-pci&quot; }
&lt;- { &quot;return&quot;: [
         {
            &quot;bus&quot;: 0,
            &quot;devices&quot;: [
               {
                  &quot;bus&quot;: 0,
                  &quot;qdev_id&quot;: &quot;&quot;,
                  &quot;slot&quot;: 0,
                  &quot;class_info&quot;: {
                     &quot;class&quot;: 1536,
                     &quot;desc&quot;: &quot;Host bridge&quot;
                  },
                  &quot;id&quot;: {
                     &quot;device&quot;: 32902,
                     &quot;vendor&quot;: 4663
                  },
                  &quot;function&quot;: 0,
                  &quot;regions&quot;: [
                  ]
               },
               {
                  &quot;bus&quot;: 0,
                  &quot;qdev_id&quot;: &quot;&quot;,
                  &quot;slot&quot;: 1,
                  &quot;class_info&quot;: {
                     &quot;class&quot;: 1537,
                     &quot;desc&quot;: &quot;ISA bridge&quot;
                  },
                  &quot;id&quot;: {
                     &quot;device&quot;: 32902,
                     &quot;vendor&quot;: 28672
                  },
                  &quot;function&quot;: 0,
                  &quot;regions&quot;: [
                  ]
               },
               {
                  &quot;bus&quot;: 0,
                  &quot;qdev_id&quot;: &quot;&quot;,
                  &quot;slot&quot;: 1,
                  &quot;class_info&quot;: {
                     &quot;class&quot;: 257,
                     &quot;desc&quot;: &quot;IDE controller&quot;
                  },
                  &quot;id&quot;: {
                     &quot;device&quot;: 32902,
                     &quot;vendor&quot;: 28688
                  },
                  &quot;function&quot;: 1,
                  &quot;regions&quot;: [
                     {
                        &quot;bar&quot;: 4,
                        &quot;size&quot;: 16,
                        &quot;address&quot;: 49152,
                        &quot;type&quot;: &quot;io&quot;
                     }
                  ]
               },
               {
                  &quot;bus&quot;: 0,
                  &quot;qdev_id&quot;: &quot;&quot;,
                  &quot;slot&quot;: 2,
                  &quot;class_info&quot;: {
                     &quot;class&quot;: 768,
                     &quot;desc&quot;: &quot;VGA controller&quot;
                  },
                  &quot;id&quot;: {
                     &quot;device&quot;: 4115,
                     &quot;vendor&quot;: 184
                  },
                  &quot;function&quot;: 0,
                  &quot;regions&quot;: [
                     {
                        &quot;prefetch&quot;: true,
                        &quot;mem_type_64&quot;: false,
                        &quot;bar&quot;: 0,
                        &quot;size&quot;: 33554432,
                        &quot;address&quot;: 4026531840,
                        &quot;type&quot;: &quot;memory&quot;
                     },
                     {
                        &quot;prefetch&quot;: false,
                        &quot;mem_type_64&quot;: false,
                        &quot;bar&quot;: 1,
                        &quot;size&quot;: 4096,
                        &quot;address&quot;: 4060086272,
                        &quot;type&quot;: &quot;memory&quot;
                     },
                     {
                        &quot;prefetch&quot;: false,
                        &quot;mem_type_64&quot;: false,
                        &quot;bar&quot;: 6,
                        &quot;size&quot;: 65536,
                        &quot;address&quot;: -1,
                        &quot;type&quot;: &quot;memory&quot;
                     }
                  ]
               },
               {
                  &quot;bus&quot;: 0,
                  &quot;qdev_id&quot;: &quot;&quot;,
                  &quot;irq&quot;: 11,
                  &quot;slot&quot;: 4,
                  &quot;class_info&quot;: {
                     &quot;class&quot;: 1280,
                     &quot;desc&quot;: &quot;RAM controller&quot;
                  },
                  &quot;id&quot;: {
                     &quot;device&quot;: 6900,
                     &quot;vendor&quot;: 4098
                  },
                  &quot;function&quot;: 0,
                  &quot;regions&quot;: [
                     {
                        &quot;bar&quot;: 0,
                        &quot;size&quot;: 32,
                        &quot;address&quot;: 49280,
                        &quot;type&quot;: &quot;io&quot;
                     }
                  ]
               }
            ]
         }
      ]
   }
</pre></div>


<p><b>Note:</b>
This example has been shortened as the real response is too long.
</p>
</dd></dl>



<dl>
<dt><a name="index-quit"></a>Command: <em></em> <strong>quit</strong></dt>
<dd>
<p>This command will cause the QEMU process to exit gracefully.  While every
attempt is made to send the QMP response before terminating, this is not
guaranteed.  When using this interface, a premature EOF would not be
unexpected.
</p>

<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;quit&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-stop"></a>Command: <em></em> <strong>stop</strong></dt>
<dd>
<p>Stop all guest VCPU execution.
</p>

<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
This function will succeed even if the guest is already in the stopped
state.  In &quot;inmigrate&quot; state, it will ensure that the guest
remains paused once migration finishes, as if the -S option was
passed on the command line.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;stop&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-system_005freset"></a>Command: <em></em> <strong>system_reset</strong></dt>
<dd>
<p>Performs a hard reset of a guest.
</p>

<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;system_reset&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-system_005fpowerdown"></a>Command: <em></em> <strong>system_powerdown</strong></dt>
<dd>
<p>Requests that a guest perform a powerdown operation.
</p>

<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
A guest may or may not respond to this command.  This command
returning does not indicate that a guest has accepted the request or
that it has shut down.  Many guests will respond to this command by
prompting the user in some way.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;system_powerdown&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-cpu"></a>Command: <em></em> <strong>cpu</strong></dt>
<dd>
<p>This command is a nop that is only provided for the purposes of compatibility.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>index: int</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
Do not use this command.
</p>
</dd></dl>



<dl>
<dt><a name="index-cpu_002dadd"></a>Command: <em></em> <strong>cpu-add</strong></dt>
<dd>
<p>Adds CPU with specified ID
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: int</code></dt>
<dd><p>ID of CPU to be created, valid values [0..max_cpus)
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
1.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;cpu-add&quot;, &quot;arguments&quot;: { &quot;id&quot;: 2 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-memsave"></a>Command: <em></em> <strong>memsave</strong></dt>
<dd>
<p>Save a portion of guest memory to a file.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>val: int</code></dt>
<dd><p>the virtual address of the guest to start from
</p></dd>
<dt><code>size: int</code></dt>
<dd><p>the size of memory region to save
</p></dd>
<dt><code>filename: string</code></dt>
<dd><p>the file to save the memory to as binary data
</p></dd>
<dt><code>cpu-index: int</code> (optional)</dt>
<dd><p>the index of the virtual CPU to use for translating the
virtual address (defaults to CPU 0)
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
Errors were not reliably returned until 1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;memsave&quot;,
     &quot;arguments&quot;: { &quot;val&quot;: 10,
                    &quot;size&quot;: 100,
                    &quot;filename&quot;: &quot;/tmp/virtual-mem-dump&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-pmemsave"></a>Command: <em></em> <strong>pmemsave</strong></dt>
<dd>
<p>Save a portion of guest physical memory to a file.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>val: int</code></dt>
<dd><p>the physical address of the guest to start from
</p></dd>
<dt><code>size: int</code></dt>
<dd><p>the size of memory region to save
</p></dd>
<dt><code>filename: string</code></dt>
<dd><p>the file to save the memory to as binary data
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
Errors were not reliably returned until 1.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;pmemsave&quot;,
     &quot;arguments&quot;: { &quot;val&quot;: 10,
                    &quot;size&quot;: 100,
                    &quot;filename&quot;: &quot;/tmp/physical-mem-dump&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-cont"></a>Command: <em></em> <strong>cont</strong></dt>
<dd>
<p>Resume guest VCPU execution.
</p>

<p><b>Since:</b>
0.14.0
</p>
<p><b>Returns:</b>
If successful, nothing
</p>
<p><b>Notes:</b>
This command will succeed if the guest is currently running.  It
will also succeed if the guest is in the &quot;inmigrate&quot; state; in
this case, the effect of the command is to make sure the guest
starts once migration finishes, removing the effect of the -S
command line option if it was passed.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;cont&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-system_005fwakeup"></a>Command: <em></em> <strong>system_wakeup</strong></dt>
<dd>
<p>Wakeup guest from suspend.  Does nothing in case the guest isn&rsquo;t suspended.
</p>

<p><b>Since:</b>
1.1
</p>
<p><b>Returns:</b>
nothing.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;system_wakeup&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-inject_002dnmi"></a>Command: <em></em> <strong>inject-nmi</strong></dt>
<dd>
<p>Injects a Non-Maskable Interrupt into the default CPU (x86/s390) or all CPUs (ppc64).
The command fails when the guest doesn&rsquo;t support injecting.
</p>

<p><b>Returns:</b>
If successful, nothing
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Note:</b>
prior to 2.1, this command was only supported for x86 and s390 VMs
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;inject-nmi&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-balloon"></a>Command: <em></em> <strong>balloon</strong></dt>
<dd>
<p>Request the balloon driver to change its balloon size.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>value: int</code></dt>
<dd><p>the target size of the balloon in bytes
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If the balloon driver is enabled but not functional because the KVM
kernel module cannot support it, KvmMissingCap
If no balloon device is present, DeviceNotActive
</p>
<p><b>Notes:</b>
This command just issues a request to the guest.  When it returns,
the balloon size may not have changed.  A guest can change the balloon
size independent of this command.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;balloon&quot;, &quot;arguments&quot;: { &quot;value&quot;: 536870912 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-human_002dmonitor_002dcommand"></a>Command: <em></em> <strong>human-monitor-command</strong></dt>
<dd>
<p>Execute a command on the human monitor and return the output.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>command-line: string</code></dt>
<dd><p>the command to execute in the human monitor
</p></dd>
<dt><code>cpu-index: int</code> (optional)</dt>
<dd><p>The CPU to use for commands that require an implicit CPU
</p></dd>
</dl>


<p><b>Returns:</b>
the output of the command as a string
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
This command only exists as a stop-gap.  Its use is highly
discouraged.  The semantics of this command are not
guaranteed: this means that command names, arguments and
responses can change or be removed at ANY time.  Applications
that rely on long term stability guarantees should NOT
use this command.
</p>
<p>Known limitations:
</p>
<ul>
<li> This command is stateless, this means that commands that depend
on state information (such as getfd) might not work

</li><li> Commands that prompt the user for data don&rsquo;t currently work
</li></ul>


<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;human-monitor-command&quot;,
     &quot;arguments&quot;: { &quot;command-line&quot;: &quot;info kvm&quot; } }
&lt;- { &quot;return&quot;: &quot;kvm support: enabled\r\n&quot; }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-ObjectPropertyInfo"></a>Object: <strong>ObjectPropertyInfo</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the name of the property
</p></dd>
<dt><code>type: string</code></dt>
<dd><p>the type of the property.  This will typically come in one of four
forms:
</p>
<p>1) A primitive type such as &rsquo;u8&rsquo;, &rsquo;u16&rsquo;, &rsquo;bool&rsquo;, &rsquo;str&rsquo;, or &rsquo;double&rsquo;.
These types are mapped to the appropriate JSON type.
</p>
<p>2) A child type in the form &rsquo;child&lt;subtype&gt;&rsquo; where subtype is a qdev
device type name.  Child properties create the composition tree.
</p>
<p>3) A link type in the form &rsquo;link&lt;subtype&gt;&rsquo; where subtype is a qdev
device type name.  Link properties form the device model graph.
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-qom_002dlist"></a>Command: <em></em> <strong>qom-list</strong></dt>
<dd>
<p>This command will list any properties of a object given a path in the object
model.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>path: string</code></dt>
<dd><p>the path within the object model.  See <code>qom-get</code> for a description of
this parameter.
</p></dd>
</dl>


<p><b>Returns:</b>
a list of <code>ObjectPropertyInfo</code> that describe the properties of the
object.
</p>
<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-qom_002dget"></a>Command: <em></em> <strong>qom-get</strong></dt>
<dd>
<p>This command will get a property from a object model path and return the
value.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>path: string</code></dt>
<dd><p>The path within the object model.  There are two forms of supported
paths&ndash;absolute and partial paths.
</p>
<p>Absolute paths are derived from the root object and can follow child&lt;&gt;
or link&lt;&gt; properties.  Since they can follow link&lt;&gt; properties, they
can be arbitrarily long.  Absolute paths look like absolute filenames
and are prefixed  with a leading slash.
</p>
<p>Partial paths look like relative filenames.  They do not begin
with a prefix.  The matching rules for partial paths are subtle but
designed to make specifying objects easy.  At each level of the
composition tree, the partial path is matched as an absolute path.
The first match is not returned.  At least two matches are searched
for.  A successful result is only returned if only one match is
found.  If more than one match is found, a flag is return to
indicate that the match was ambiguous.
</p></dd>
<dt><code>property: string</code></dt>
<dd><p>The property name to read
</p></dd>
</dl>


<p><b>Returns:</b>
The property value.  The type depends on the property
type. child&lt;&gt; and link&lt;&gt; properties are returned as #str
pathnames.  All integer property types (u8, u16, etc) are
returned as #int.
</p>
<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-qom_002dset"></a>Command: <em></em> <strong>qom-set</strong></dt>
<dd>
<p>This command will set a property from a object model path.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>path: string</code></dt>
<dd><p>see <code>qom-get</code> for a description of this parameter
</p></dd>
<dt><code>property: string</code></dt>
<dd><p>the property name to set
</p></dd>
<dt><code>value: value</code></dt>
<dd><p>a value who&rsquo;s type is appropriate for the property type.  See <code>qom-get</code>
for a description of type mapping.
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-change"></a>Command: <em></em> <strong>change</strong></dt>
<dd>
<p>This command is multiple commands multiplexed together.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>This is normally the name of a block device but it may also be &rsquo;vnc&rsquo;.
when it&rsquo;s &rsquo;vnc&rsquo;, then sub command depends on <code>target</code>
</p></dd>
<dt><code>target: string</code></dt>
<dd><p>If <code>device</code> is a block device, then this is the new filename.
If <code>device</code> is &rsquo;vnc&rsquo;, then if the value &rsquo;password&rsquo; selects the vnc
change password command.   Otherwise, this specifies a new server URI
address to listen to for VNC connections.
</p></dd>
<dt><code>arg: string</code> (optional)</dt>
<dd><p>If <code>device</code> is a block device, then this is an optional format to open
the device with.
If <code>device</code> is &rsquo;vnc&rsquo; and <code>target</code> is &rsquo;password&rsquo;, this is the new VNC
password to set.  See change-vnc-password for additional notes.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success.
If <code>device</code> is not a valid block device, DeviceNotFound
</p>
<p><b>Notes:</b>
This interface is deprecated, and it is strongly recommended that you
avoid using it.  For changing block devices, use
blockdev-change-medium; for changing VNC parameters, use
change-vnc-password.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">1. Change a removable medium

-&gt; { &quot;execute&quot;: &quot;change&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;ide1-cd0&quot;,
                    &quot;target&quot;: &quot;/srv/images/Fedora-12-x86_64-DVD.iso&quot; } }
&lt;- { &quot;return&quot;: {} }

2. Change VNC password

-&gt; { &quot;execute&quot;: &quot;change&quot;,
     &quot;arguments&quot;: { &quot;device&quot;: &quot;vnc&quot;, &quot;target&quot;: &quot;password&quot;,
                    &quot;arg&quot;: &quot;foobar1&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-ObjectTypeInfo"></a>Object: <strong>ObjectTypeInfo</strong></dt>
<dd>
<p>This structure describes a search result from <code>qom-list-types</code>
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the type name found in the search
</p></dd>
<dt><code>abstract: boolean</code> (optional)</dt>
<dd><p>the type is abstract and can&rsquo;t be directly instantiated.
Omitted if false. (since 2.10)
</p></dd>
<dt><code>parent: string</code> (optional)</dt>
<dd><p>Name of parent type, if any (since 2.10)
</p></dd>
</dl>


<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-qom_002dlist_002dtypes"></a>Command: <em></em> <strong>qom-list-types</strong></dt>
<dd>
<p>This command will return a list of types given search parameters
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>implements: string</code> (optional)</dt>
<dd><p>if specified, only return types that implement this type name
</p></dd>
<dt><code>abstract: boolean</code> (optional)</dt>
<dd><p>if true, include abstract types in the results
</p></dd>
</dl>


<p><b>Returns:</b>
a list of <code>ObjectTypeInfo</code> or an empty list if no results are found
</p>
<p><b>Since:</b>
1.1
</p>
</dd></dl>



<dl>
<dt><a name="index-DevicePropertyInfo"></a>Object: <strong>DevicePropertyInfo</strong></dt>
<dd>
<p>Information about device properties.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the name of the property
</p></dd>
<dt><code>type: string</code></dt>
<dd><p>the typename of the property
</p></dd>
<dt><code>description: string</code> (optional)</dt>
<dd><p>if specified, the description of the property.
(since 2.2)
</p></dd>
</dl>


<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-device_002dlist_002dproperties"></a>Command: <em></em> <strong>device-list-properties</strong></dt>
<dd>
<p>List properties associated with a device.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>typename: string</code></dt>
<dd><p>the type name of a device
</p></dd>
</dl>


<p><b>Returns:</b>
a list of DevicePropertyInfo describing a devices properties
</p>
<p><b>Since:</b>
1.2
</p>
</dd></dl>



<dl>
<dt><a name="index-xen_002dset_002dglobal_002ddirty_002dlog"></a>Command: <em></em> <strong>xen-set-global-dirty-log</strong></dt>
<dd>
<p>Enable or disable the global dirty log mode.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>enable: boolean</code></dt>
<dd><p>true to enable, false to disable.
</p></dd>
</dl>


<p><b>Returns:</b>
nothing
</p>
<p><b>Since:</b>
1.3
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;xen-set-global-dirty-log&quot;,
     &quot;arguments&quot;: { &quot;enable&quot;: true } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-device_005fadd"></a>Command: <em></em> <strong>device_add</strong></dt>
<dd>


<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>driver: string</code></dt>
<dd><p>the name of the new device&rsquo;s driver
</p></dd>
<dt><code>bus: string</code> (optional)</dt>
<dd><p>the device&rsquo;s parent bus (device tree path)
</p></dd>
<dt><code>id: string</code> (optional)</dt>
<dd><p>the device&rsquo;s ID, must be unique
</p></dd>
</dl>
<p>Additional arguments depend on the type.
</p>
<p>Add a device.
</p>
<p><b>Notes:</b>
</p><ol>
<li> For detailed information about this command, please refer to the
&rsquo;docs/qdev-device-use.txt&rsquo; file.

</li><li> It&rsquo;s possible to list device properties by running QEMU with the
&quot;-device DEVICE,help&quot; command-line argument, where DEVICE is the
device&rsquo;s name
</li></ol>


<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;device_add&quot;,
     &quot;arguments&quot;: { &quot;driver&quot;: &quot;e1000&quot;, &quot;id&quot;: &quot;net1&quot;,
                    &quot;bus&quot;: &quot;pci.0&quot;,
                    &quot;mac&quot;: &quot;52:54:00:12:34:56&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


<p><b>TODO:</b>
This command effectively bypasses QAPI completely due to its
&quot;additional arguments&quot; business.  It shouldn&rsquo;t have been added to
the schema in this form.  It should be qapified properly, or
replaced by a properly qapified command.
</p>
<p><b>Since:</b>
0.13
</p>
</dd></dl>



<dl>
<dt><a name="index-device_005fdel"></a>Command: <em></em> <strong>device_del</strong></dt>
<dd>
<p>Remove a device from a guest
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>the device&rsquo;s ID or QOM path
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If <code>id</code> is not a valid device, DeviceNotFound
</p>
<p><b>Notes:</b>
When this command completes, the device may not be removed from the
guest.  Hot removal is an operation that requires guest cooperation.
This command merely requests that the guest begin the hot removal
process.  Completion of the device removal process is signaled with a
DEVICE_DELETED event. Guest reset will automatically complete removal
for all devices.
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;device_del&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;net1&quot; } }
&lt;- { &quot;return&quot;: {} }

-&gt; { &quot;execute&quot;: &quot;device_del&quot;,
     &quot;arguments&quot;: { &quot;id&quot;: &quot;/machine/peripheral-anon/device[0]&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-DEVICE_005fDELETED"></a>Event: <em></em> <strong>DEVICE_DELETED</strong></dt>
<dd>
<p>Emitted whenever the device removal completion is acknowledged by the guest.
At this point, it&rsquo;s safe to reuse the specified device ID. Device removal can
be initiated by the guest or by HMP/QMP commands.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>device name
</p></dd>
<dt><code>path: string</code></dt>
<dd><p>device path
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;DEVICE_DELETED&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;virtio-net-pci-0&quot;,
               &quot;path&quot;: &quot;/machine/peripheral/virtio-net-pci-0&quot; },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1265044230, &quot;microseconds&quot;: 450486 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-DumpGuestMemoryFormat"></a>Enum: <strong>DumpGuestMemoryFormat</strong></dt>
<dd>
<p>An enumeration of guest-memory-dump&rsquo;s format.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>elf</code></dt>
<dd><p>elf format
</p></dd>
<dt><code>kdump-zlib</code></dt>
<dd><p>kdump-compressed format with zlib-compressed
</p></dd>
<dt><code>kdump-lzo</code></dt>
<dd><p>kdump-compressed format with lzo-compressed
</p></dd>
<dt><code>kdump-snappy</code></dt>
<dd><p>kdump-compressed format with snappy-compressed
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-dump_002dguest_002dmemory"></a>Command: <em></em> <strong>dump-guest-memory</strong></dt>
<dd>
<p>Dump guest&rsquo;s memory to vmcore. It is a synchronous operation that can take
very long depending on the amount of guest memory.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>paging: boolean</code></dt>
<dd><p>if true, do paging to get guest&rsquo;s memory mapping. This allows
using gdb to process the core file.
</p>
<p>IMPORTANT: this option can make QEMU allocate several gigabytes
of RAM. This can happen for a large guest, or a
malicious guest pretending to be large.
</p>
<p>Also, paging=true has the following limitations:
</p>
<ol>
<li> The guest may be in a catastrophic state or can have corrupted
memory, which cannot be trusted
</li><li> The guest can be in real-mode even if paging is enabled. For
example, the guest uses ACPI to sleep, and ACPI sleep state
goes in real-mode
</li><li> Currently only supported on i386 and x86_64.
</li></ol>

</dd>
<dt><code>protocol: string</code></dt>
<dd><p>the filename or file descriptor of the vmcore. The supported
protocols are:
</p>
<ol>
<li> file: the protocol starts with &quot;file:&quot;, and the following
string is the file&rsquo;s path.
</li><li> fd: the protocol starts with &quot;fd:&quot;, and the following string
is the fd&rsquo;s name.
</li></ol>

</dd>
<dt><code>detach: boolean</code> (optional)</dt>
<dd><p>if true, QMP will return immediately rather than
waiting for the dump to finish. The user can track progress
using &quot;query-dump&quot;. (since 2.6).
</p></dd>
<dt><code>begin: int</code> (optional)</dt>
<dd><p>if specified, the starting physical address.
</p></dd>
<dt><code>length: int</code> (optional)</dt>
<dd><p>if specified, the memory size, in bytes. If you don&rsquo;t
want to dump all guest&rsquo;s memory, please specify the start <code>begin</code>
and <code>length</code>
</p></dd>
<dt><code>format: DumpGuestMemoryFormat</code> (optional)</dt>
<dd><p>if specified, the format of guest memory dump. But non-elf
format is conflict with paging and filter, ie. <code>paging</code>, <code>begin</code> and
<code>length</code> is not allowed to be specified with non-elf <code>format</code> at the
same time (since 2.0)
</p></dd>
</dl>


<p><b>Note:</b>
All boolean arguments default to false
</p>
<p><b>Returns:</b>
nothing on success
</p>
<p><b>Since:</b>
1.2
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;dump-guest-memory&quot;,
     &quot;arguments&quot;: { &quot;protocol&quot;: &quot;fd:dump&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-DumpStatus"></a>Enum: <strong>DumpStatus</strong></dt>
<dd>
<p>Describe the status of a long-running background guest memory dump.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>none</code></dt>
<dd><p>no dump-guest-memory has started yet.
</p></dd>
<dt><code>active</code></dt>
<dd><p>there is one dump running in background.
</p></dd>
<dt><code>completed</code></dt>
<dd><p>the last dump has finished successfully.
</p></dd>
<dt><code>failed</code></dt>
<dd><p>the last dump has failed.
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-DumpQueryResult"></a>Object: <strong>DumpQueryResult</strong></dt>
<dd>
<p>The result format for &rsquo;query-dump&rsquo;.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>status: DumpStatus</code></dt>
<dd><p>enum of <code>DumpStatus</code>, which shows current dump status
</p></dd>
<dt><code>completed: int</code></dt>
<dd><p>bytes written in latest dump (uncompressed)
</p></dd>
<dt><code>total: int</code></dt>
<dd><p>total bytes to be written in latest dump (uncompressed)
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002ddump"></a>Command: <em></em> <strong>query-dump</strong></dt>
<dd>
<p>Query latest dump status.
</p>

<p><b>Returns:</b>
A <code>DumpStatus</code> object showing the dump status.
</p>
<p><b>Since:</b>
2.6
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-dump&quot; }
&lt;- { &quot;return&quot;: { &quot;status&quot;: &quot;active&quot;, &quot;completed&quot;: 1024000,
                 &quot;total&quot;: 2048000 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-DUMP_005fCOMPLETED"></a>Event: <em></em> <strong>DUMP_COMPLETED</strong></dt>
<dd>
<p>Emitted when background dump has completed
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>result: DumpQueryResult</code></dt>
<dd><p>DumpQueryResult type described in qapi-schema.json.
</p></dd>
<dt><code>error: string</code> (optional)</dt>
<dd><p>human-readable error string that provides
hint on why dump failed. Only presents on failure. The
user should not try to interpret the error string.
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">{ &quot;event&quot;: &quot;DUMP_COMPLETED&quot;,
  &quot;data&quot;: {&quot;result&quot;: {&quot;total&quot;: 1090650112, &quot;status&quot;: &quot;completed&quot;,
                      &quot;completed&quot;: 1090650112} } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-DumpGuestMemoryCapability"></a>Object: <strong>DumpGuestMemoryCapability</strong></dt>
<dd>
<p>A list of the available formats for dump-guest-memory
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>formats: array of DumpGuestMemoryFormat</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002ddump_002dguest_002dmemory_002dcapability"></a>Command: <em></em> <strong>query-dump-guest-memory-capability</strong></dt>
<dd>
<p>Returns the available formats for dump-guest-memory
</p>

<p><b>Returns:</b>
A <code>DumpGuestMemoryCapability</code> object listing available formats for
dump-guest-memory
</p>
<p><b>Since:</b>
2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-dump-guest-memory-capability&quot; }
&lt;- { &quot;return&quot;: { &quot;formats&quot;:
                 [&quot;elf&quot;, &quot;kdump-zlib&quot;, &quot;kdump-lzo&quot;, &quot;kdump-snappy&quot;] }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-dump_002dskeys"></a>Command: <em></em> <strong>dump-skeys</strong></dt>
<dd>
<p>Dump guest&rsquo;s storage keys
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>filename: string</code></dt>
<dd><p>the path to the file to dump to
</p></dd>
</dl>
<p>This command is only supported on s390 architecture.
</p>
<p><b>Since:</b>
2.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;dump-skeys&quot;,
     &quot;arguments&quot;: { &quot;filename&quot;: &quot;/tmp/skeys&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-object_002dadd"></a>Command: <em></em> <strong>object-add</strong></dt>
<dd>
<p>Create a QOM object.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>qom-type: string</code></dt>
<dd><p>the class name for the object to be created
</p></dd>
<dt><code>id: string</code></dt>
<dd><p>the name of the new object
</p></dd>
<dt><code>props: value</code> (optional)</dt>
<dd><p>a dictionary of properties to be passed to the backend
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
Error if <code>qom-type</code> is not a valid class name
</p>
<p><b>Since:</b>
2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;object-add&quot;,
     &quot;arguments&quot;: { &quot;qom-type&quot;: &quot;rng-random&quot;, &quot;id&quot;: &quot;rng1&quot;,
                    &quot;props&quot;: { &quot;filename&quot;: &quot;/dev/hwrng&quot; } } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-object_002ddel"></a>Command: <em></em> <strong>object-del</strong></dt>
<dd>
<p>Remove a QOM object.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>id: string</code></dt>
<dd><p>the name of the QOM object to remove
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
Error if <code>id</code> is not a valid id for a QOM object
</p>
<p><b>Since:</b>
2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;object-del&quot;, &quot;arguments&quot;: { &quot;id&quot;: &quot;rng1&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-getfd"></a>Command: <em></em> <strong>getfd</strong></dt>
<dd>
<p>Receive a file descriptor via SCM rights and assign it a name
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>fdname: string</code></dt>
<dd><p>file descriptor name
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Notes:</b>
If <code>fdname</code> already exists, the file descriptor assigned to
it will be closed and replaced by the received file
descriptor.
</p>
<p>The &rsquo;closefd&rsquo; command can be used to explicitly close the
file descriptor when it is no longer needed.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;getfd&quot;, &quot;arguments&quot;: { &quot;fdname&quot;: &quot;fd1&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-closefd"></a>Command: <em></em> <strong>closefd</strong></dt>
<dd>
<p>Close a file descriptor previously passed via SCM rights
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>fdname: string</code></dt>
<dd><p>file descriptor name
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
</p>
<p><b>Since:</b>
0.14.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;closefd&quot;, &quot;arguments&quot;: { &quot;fdname&quot;: &quot;fd1&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-MachineInfo"></a>Object: <strong>MachineInfo</strong></dt>
<dd>
<p>Information describing a machine.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the name of the machine
</p></dd>
<dt><code>alias: string</code> (optional)</dt>
<dd><p>an alias for the machine name
</p></dd>
<dt><code>is-default: boolean</code> (optional)</dt>
<dd><p>whether the machine is default
</p></dd>
<dt><code>cpu-max: int</code></dt>
<dd><p>maximum number of CPUs supported by the machine type
(since 1.5.0)
</p></dd>
<dt><code>hotpluggable-cpus: boolean</code></dt>
<dd><p>cpu hotplug via -device is supported (since 2.7.0)
</p></dd>
</dl>


<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dmachines"></a>Command: <em></em> <strong>query-machines</strong></dt>
<dd>
<p>Return a list of supported machines
</p>

<p><b>Returns:</b>
a list of MachineInfo
</p>
<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuDefinitionInfo"></a>Object: <strong>CpuDefinitionInfo</strong></dt>
<dd>
<p>Virtual CPU definition.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the name of the CPU definition
</p></dd>
<dt><code>migration-safe: boolean</code> (optional)</dt>
<dd><p>whether a CPU definition can be safely used for
migration in combination with a QEMU compatibility machine
when migrating between different QMU versions and between
hosts with different sets of (hardware or software)
capabilities. If not provided, information is not available
and callers should not assume the CPU definition to be
migration-safe. (since 2.8)
</p></dd>
<dt><code>static: boolean</code></dt>
<dd><p>whether a CPU definition is static and will not change depending on
QEMU version, machine type, machine options and accelerator options.
A static model is always migration-safe. (since 2.8)
</p></dd>
<dt><code>unavailable-features: array of string</code> (optional)</dt>
<dd><p>List of properties that prevent
the CPU model from running in the current
host. (since 2.8)
</p></dd>
<dt><code>typename: string</code></dt>
<dd><p>Type name that can be used as argument to <code>device-list-properties</code>,
to introspect properties configurable using -cpu or -global.
(since 2.9)
</p></dd>
</dl>
<p><code>unavailable-features</code> is a list of QOM property names that
represent CPU model attributes that prevent the CPU from running.
If the QOM property is read-only, that means there&rsquo;s no known
way to make the CPU model run in the current host. Implementations
that choose not to provide specific information return the
property name &quot;type&quot;.
If the property is read-write, it means that it MAY be possible
to run the CPU model in the current host if that property is
changed. Management software can use it as hints to suggest or
choose an alternative for the user, or just to generate meaningful
error messages explaining why the CPU model can&rsquo;t be used.
If <code>unavailable-features</code> is an empty list, the CPU model is
runnable using the current host and machine-type.
If <code>unavailable-features</code> is not present, runnability
information for the CPU is not available.
</p>
<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-MemoryInfo"></a>Object: <strong>MemoryInfo</strong></dt>
<dd>
<p>Actual memory information in bytes.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>base-memory: int</code></dt>
<dd><p>size of &quot;base&quot; memory specified with command line
option -m.
</p></dd>
<dt><code>plugged-memory: int</code> (optional)</dt>
<dd><p>size of memory that can be hot-unplugged. This field
is omitted if target doesn&rsquo;t support memory hotplug
(i.e. CONFIG_MEM_HOTPLUG not defined on build time).
</p></dd>
</dl>


<p><b>Since:</b>
2.11.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dmemory_002dsize_002dsummary"></a>Command: <em></em> <strong>query-memory-size-summary</strong></dt>
<dd>
<p>Return the amount of initially allocated and present hotpluggable (if
enabled) memory in bytes.
</p>

<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-memory-size-summary&quot; }
&lt;- { &quot;return&quot;: { &quot;base-memory&quot;: 4294967296, &quot;plugged-memory&quot;: 0 } }
</pre></div>


<p><b>Since:</b>
2.11.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dcpu_002ddefinitions"></a>Command: <em></em> <strong>query-cpu-definitions</strong></dt>
<dd>
<p>Return a list of supported virtual CPU definitions
</p>

<p><b>Returns:</b>
a list of CpuDefInfo
</p>
<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuModelInfo"></a>Object: <strong>CpuModelInfo</strong></dt>
<dd>
<p>Virtual CPU model.
</p>
<p>A CPU model consists of the name of a CPU definition, to which
delta changes are applied (e.g. features added/removed). Most magic values
that an architecture might require should be hidden behind the name.
However, if required, architectures can expose relevant properties.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>the name of the CPU definition the model is based on
</p></dd>
<dt><code>props: value</code> (optional)</dt>
<dd><p>a dictionary of QOM properties to be applied
</p></dd>
</dl>


<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuModelExpansionType"></a>Enum: <strong>CpuModelExpansionType</strong></dt>
<dd>
<p>An enumeration of CPU model expansion types.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>static</code></dt>
<dd><p>Expand to a static CPU model, a combination of a static base
model name and property delta changes. As the static base model will
never change, the expanded CPU model will be the same, independant of
independent of QEMU version, machine type, machine options, and
accelerator options. Therefore, the resulting model can be used by
tooling without having to specify a compatibility machine - e.g. when
displaying the &quot;host&quot; model. static CPU models are migration-safe.
</p></dd>
<dt><code>full</code></dt>
<dd><p>Expand all properties. The produced model is not guaranteed to be
migration-safe, but allows tooling to get an insight and work with
model details.
</p></dd>
</dl>


<p><b>Note:</b>
When a non-migration-safe CPU model is expanded in static mode, some
features enabled by the CPU model may be omitted, because they can&rsquo;t be
implemented by a static CPU model definition (e.g. cache info passthrough and
PMU passthrough in x86). If you need an accurate representation of the
features enabled by a non-migration-safe CPU model, use <code>full</code>. If you need a
static representation that will keep ABI compatibility even when changing QEMU
version or machine-type, use <code>static</code> (but keep in mind that some features may
be omitted).
</p>
<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuModelExpansionInfo"></a>Object: <strong>CpuModelExpansionInfo</strong></dt>
<dd>
<p>The result of a cpu model expansion.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>model: CpuModelInfo</code></dt>
<dd><p>the expanded CpuModelInfo.
</p></dd>
</dl>


<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dcpu_002dmodel_002dexpansion"></a>Command: <em></em> <strong>query-cpu-model-expansion</strong></dt>
<dd>
<p>Expands a given CPU model (or a combination of CPU model + additional options)
to different granularities, allowing tooling to get an understanding what a
specific CPU model looks like in QEMU under a certain configuration.
</p>
<p>This interface can be used to query the &quot;host&quot; CPU model.
</p>
<p>The data returned by this command may be affected by:
</p>
<ul>
<li> QEMU version: CPU models may look different depending on the QEMU version.
(Except for CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> machine-type: CPU model  may look different depending on the machine-type.
(Except for CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> machine options (including accelerator): in some architectures, CPU models
may look different depending on machine and accelerator options. (Except for
CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> &quot;-cpu&quot; arguments and global properties: arguments to the -cpu option and
global properties may affect expansion of CPU models. Using
query-cpu-model-expansion while using these is not advised.

</li></ul>

<p>Some architectures may not support all expansion types. s390x supports
&quot;full&quot; and &quot;static&quot;.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>type: CpuModelExpansionType</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>model: CpuModelInfo</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Returns:</b>
a CpuModelExpansionInfo. Returns an error if expanding CPU models is
not supported, if the model cannot be expanded, if the model contains
an unknown CPU definition name, unknown properties or properties
with a wrong type. Also returns an error if an expansion type is
not supported.
</p>
<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuModelCompareResult"></a>Enum: <strong>CpuModelCompareResult</strong></dt>
<dd>
<p>An enumeration of CPU model comparation results. The result is usually
calculated using e.g. CPU features or CPU generations.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>incompatible</code></dt>
<dd><p>If model A is incompatible to model B, model A is not
guaranteed to run where model B runs and the other way around.
</p></dd>
<dt><code>identical</code></dt>
<dd><p>If model A is identical to model B, model A is guaranteed to run
where model B runs and the other way around.
</p></dd>
<dt><code>superset</code></dt>
<dd><p>If model A is a superset of model B, model B is guaranteed to run
where model A runs. There are no guarantees about the other way.
</p></dd>
<dt><code>subset</code></dt>
<dd><p>If model A is a subset of model B, model A is guaranteed to run
where model B runs. There are no guarantees about the other way.
</p></dd>
</dl>


<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuModelCompareInfo"></a>Object: <strong>CpuModelCompareInfo</strong></dt>
<dd>
<p>The result of a CPU model comparison.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>result: CpuModelCompareResult</code></dt>
<dd><p>The result of the compare operation.
</p></dd>
<dt><code>responsible-properties: array of string</code></dt>
<dd><p>List of properties that led to the comparison result
not being identical.
</p></dd>
</dl>
<p><code>responsible-properties</code> is a list of QOM property names that led to
both CPUs not being detected as identical. For identical models, this
list is empty.
If a QOM property is read-only, that means there&rsquo;s no known way to make the
CPU models identical. If the special property name &quot;type&quot; is included, the
models are by definition not identical and cannot be made identical.
</p>
<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dcpu_002dmodel_002dcomparison"></a>Command: <em></em> <strong>query-cpu-model-comparison</strong></dt>
<dd>
<p>Compares two CPU models, returning how they compare in a specific
configuration. The results indicates how both models compare regarding
runnability. This result can be used by tooling to make decisions if a
certain CPU model will run in a certain configuration or if a compatible
CPU model has to be created by baselining.
</p>
<p>Usually, a CPU model is compared against the maximum possible CPU model
of a certain configuration (e.g. the &quot;host&quot; model for KVM). If that CPU
model is identical or a subset, it will run in that configuration.
</p>
<p>The result returned by this command may be affected by:
</p>
<ul>
<li> QEMU version: CPU models may look different depending on the QEMU version.
(Except for CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> machine-type: CPU model may look different depending on the machine-type.
(Except for CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> machine options (including accelerator): in some architectures, CPU models
may look different depending on machine and accelerator options. (Except for
CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> &quot;-cpu&quot; arguments and global properties: arguments to the -cpu option and
global properties may affect expansion of CPU models. Using
query-cpu-model-expansion while using these is not advised.

</li></ul>

<p>Some architectures may not support comparing CPU models. s390x supports
comparing CPU models.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>modela: CpuModelInfo</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>modelb: CpuModelInfo</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Returns:</b>
a CpuModelBaselineInfo. Returns an error if comparing CPU models is
not supported, if a model cannot be used, if a model contains
an unknown cpu definition name, unknown properties or properties
with wrong types.
</p>
<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-CpuModelBaselineInfo"></a>Object: <strong>CpuModelBaselineInfo</strong></dt>
<dd>
<p>The result of a CPU model baseline.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>model: CpuModelInfo</code></dt>
<dd><p>the baselined CpuModelInfo.
</p></dd>
</dl>


<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dcpu_002dmodel_002dbaseline"></a>Command: <em></em> <strong>query-cpu-model-baseline</strong></dt>
<dd>
<p>Baseline two CPU models, creating a compatible third model. The created
model will always be a static, migration-safe CPU model (see &quot;static&quot;
CPU model expansion for details).
</p>
<p>This interface can be used by tooling to create a compatible CPU model out
two CPU models. The created CPU model will be identical to or a subset of
both CPU models when comparing them. Therefore, the created CPU model is
guaranteed to run where the given CPU models run.
</p>
<p>The result returned by this command may be affected by:
</p>
<ul>
<li> QEMU version: CPU models may look different depending on the QEMU version.
(Except for CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> machine-type: CPU model may look different depending on the machine-type.
(Except for CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> machine options (including accelerator): in some architectures, CPU models
may look different depending on machine and accelerator options. (Except for
CPU models reported as &quot;static&quot; in query-cpu-definitions.)
</li><li> &quot;-cpu&quot; arguments and global properties: arguments to the -cpu option and
global properties may affect expansion of CPU models. Using
query-cpu-model-expansion while using these is not advised.

</li></ul>

<p>Some architectures may not support baselining CPU models. s390x supports
baselining CPU models.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>modela: CpuModelInfo</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>modelb: CpuModelInfo</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Returns:</b>
a CpuModelBaselineInfo. Returns an error if baselining CPU models is
not supported, if a model cannot be used, if a model contains
an unknown cpu definition name, unknown properties or properties
with wrong types.
</p>
<p><b>Since:</b>
2.8.0
</p>
</dd></dl>



<dl>
<dt><a name="index-AddfdInfo"></a>Object: <strong>AddfdInfo</strong></dt>
<dd>
<p>Information about a file descriptor that was added to an fd set.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>fdset-id: int</code></dt>
<dd><p>The ID of the fd set that <code>fd</code> was added to.
</p></dd>
<dt><code>fd: int</code></dt>
<dd><p>The file descriptor that was received via SCM rights and
added to the fd set.
</p></dd>
</dl>


<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-add_002dfd"></a>Command: <em></em> <strong>add-fd</strong></dt>
<dd>
<p>Add a file descriptor, that was passed via SCM rights, to an fd set.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>fdset-id: int</code> (optional)</dt>
<dd><p>The ID of the fd set to add the file descriptor to.
</p></dd>
<dt><code>opaque: string</code> (optional)</dt>
<dd><p>A free-form string that can be used to describe the fd.
</p></dd>
</dl>


<p><b>Returns:</b>
<code>AddfdInfo</code> on success
</p>
<p>If file descriptor was not received, FdNotSupplied
</p>
<p>If <code>fdset-id</code> is a negative value, InvalidParameterValue
</p>
<p><b>Notes:</b>
The list of fd sets is shared by all monitor connections.
</p>
<p>If <code>fdset-id</code> is not specified, a new fd set will be created.
</p>
<p><b>Since:</b>
1.2.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;add-fd&quot;, &quot;arguments&quot;: { &quot;fdset-id&quot;: 1 } }
&lt;- { &quot;return&quot;: { &quot;fdset-id&quot;: 1, &quot;fd&quot;: 3 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-remove_002dfd"></a>Command: <em></em> <strong>remove-fd</strong></dt>
<dd>
<p>Remove a file descriptor from an fd set.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>fdset-id: int</code></dt>
<dd><p>The ID of the fd set that the file descriptor belongs to.
</p></dd>
<dt><code>fd: int</code> (optional)</dt>
<dd><p>The file descriptor that is to be removed.
</p></dd>
</dl>


<p><b>Returns:</b>
Nothing on success
If <code>fdset-id</code> or <code>fd</code> is not found, FdNotFound
</p>
<p><b>Since:</b>
1.2.0
</p>
<p><b>Notes:</b>
The list of fd sets is shared by all monitor connections.
</p>
<p>If <code>fd</code> is not specified, all file descriptors in <code>fdset-id</code>
will be removed.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;remove-fd&quot;, &quot;arguments&quot;: { &quot;fdset-id&quot;: 1, &quot;fd&quot;: 3 } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-FdsetFdInfo"></a>Object: <strong>FdsetFdInfo</strong></dt>
<dd>
<p>Information about a file descriptor that belongs to an fd set.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>fd: int</code></dt>
<dd><p>The file descriptor value.
</p></dd>
<dt><code>opaque: string</code> (optional)</dt>
<dd><p>A free-form string that can be used to describe the fd.
</p></dd>
</dl>


<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-FdsetInfo"></a>Object: <strong>FdsetInfo</strong></dt>
<dd>
<p>Information about an fd set.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>fdset-id: int</code></dt>
<dd><p>The ID of the fd set.
</p></dd>
<dt><code>fds: array of FdsetFdInfo</code></dt>
<dd><p>A list of file descriptors that belong to this fd set.
</p></dd>
</dl>


<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dfdsets"></a>Command: <em></em> <strong>query-fdsets</strong></dt>
<dd>
<p>Return information describing all fd sets.
</p>

<p><b>Returns:</b>
A list of <code>FdsetInfo</code>
</p>
<p><b>Since:</b>
1.2.0
</p>
<p><b>Note:</b>
The list of fd sets is shared by all monitor connections.
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-fdsets&quot; }
&lt;- { &quot;return&quot;: [
       {
         &quot;fds&quot;: [
           {
             &quot;fd&quot;: 30,
             &quot;opaque&quot;: &quot;rdonly:/path/to/file&quot;
           },
           {
             &quot;fd&quot;: 24,
             &quot;opaque&quot;: &quot;rdwr:/path/to/file&quot;
           }
         ],
         &quot;fdset-id&quot;: 1
       },
       {
         &quot;fds&quot;: [
           {
             &quot;fd&quot;: 28
           },
           {
             &quot;fd&quot;: 29
           }
         ],
         &quot;fdset-id&quot;: 0
       }
     ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-TargetInfo"></a>Object: <strong>TargetInfo</strong></dt>
<dd>
<p>Information describing the QEMU target.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>arch: string</code></dt>
<dd><p>the target architecture (eg &quot;x86_64&quot;, &quot;i386&quot;, etc)
</p></dd>
</dl>


<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dtarget"></a>Command: <em></em> <strong>query-target</strong></dt>
<dd>
<p>Return information about the target for this QEMU
</p>

<p><b>Returns:</b>
TargetInfo
</p>
<p><b>Since:</b>
1.2.0
</p>
</dd></dl>



<dl>
<dt><a name="index-AcpiTableOptions"></a>Object: <strong>AcpiTableOptions</strong></dt>
<dd>
<p>Specify an ACPI table on the command line to load.
</p>
<p>At most one of <code>file</code> and <code>data</code> can be specified. The list of files specified
by any one of them is loaded and concatenated in order. If both are omitted,
<code>data</code> is implied.
</p>
<p>Other fields / optargs can be used to override fields of the generic ACPI
table header; refer to the ACPI specification 5.0, section 5.2.6 System
Description Table Header. If a header field is not overridden, then the
corresponding value from the concatenated blob is used (in case of <code>file</code>), or
it is filled in with a hard-coded value (in case of <code>data</code>).
</p>
<p>String fields are copied into the matching ACPI member from lowest address
upwards, and silently truncated / NUL-padded to length.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>sig: string</code> (optional)</dt>
<dd><p>table signature / identifier (4 bytes)
</p></dd>
<dt><code>rev: int</code> (optional)</dt>
<dd><p>table revision number (dependent on signature, 1 byte)
</p></dd>
<dt><code>oem_id: string</code> (optional)</dt>
<dd><p>OEM identifier (6 bytes)
</p></dd>
<dt><code>oem_table_id: string</code> (optional)</dt>
<dd><p>OEM table identifier (8 bytes)
</p></dd>
<dt><code>oem_rev: int</code> (optional)</dt>
<dd><p>OEM-supplied revision number (4 bytes)
</p></dd>
<dt><code>asl_compiler_id: string</code> (optional)</dt>
<dd><p>identifier of the utility that created the table
(4 bytes)
</p></dd>
<dt><code>asl_compiler_rev: int</code> (optional)</dt>
<dd><p>revision number of the utility that created the
table (4 bytes)
</p></dd>
<dt><code>file: string</code> (optional)</dt>
<dd><p>colon (:) separated list of pathnames to load and
concatenate as table data. The resultant binary blob is expected to
have an ACPI table header. At least one file is required. This field
excludes <code>data</code>.
</p></dd>
<dt><code>data: string</code> (optional)</dt>
<dd><p>colon (:) separated list of pathnames to load and
concatenate as table data. The resultant binary blob must not have an
ACPI table header. At least one file is required. This field excludes
<code>file</code>.
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-CommandLineParameterType"></a>Enum: <strong>CommandLineParameterType</strong></dt>
<dd>
<p>Possible types for an option parameter.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>string</code></dt>
<dd><p>accepts a character string
</p></dd>
<dt><code>boolean</code></dt>
<dd><p>accepts &quot;on&quot; or &quot;off&quot;
</p></dd>
<dt><code>number</code></dt>
<dd><p>accepts a number
</p></dd>
<dt><code>size</code></dt>
<dd><p>accepts a number followed by an optional suffix (K)ilo,
(M)ega, (G)iga, (T)era
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-CommandLineParameterInfo"></a>Object: <strong>CommandLineParameterInfo</strong></dt>
<dd>
<p>Details about a single parameter of a command line option.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>name: string</code></dt>
<dd><p>parameter name
</p></dd>
<dt><code>type: CommandLineParameterType</code></dt>
<dd><p>parameter <code>CommandLineParameterType</code>
</p></dd>
<dt><code>help: string</code> (optional)</dt>
<dd><p>human readable text string, not suitable for parsing.
</p></dd>
<dt><code>default: string</code> (optional)</dt>
<dd><p>default value string (since 2.1)
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-CommandLineOptionInfo"></a>Object: <strong>CommandLineOptionInfo</strong></dt>
<dd>
<p>Details about a command line option, including its list of parameter details
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>option: string</code></dt>
<dd><p>option name
</p></dd>
<dt><code>parameters: array of CommandLineParameterInfo</code></dt>
<dd><p>an array of <code>CommandLineParameterInfo</code>
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dcommand_002dline_002doptions"></a>Command: <em></em> <strong>query-command-line-options</strong></dt>
<dd>
<p>Query command line option schema.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>option: string</code> (optional)</dt>
<dd><p>option name
</p></dd>
</dl>


<p><b>Returns:</b>
list of <code>CommandLineOptionInfo</code> for all options (or for the given
<code>option</code>).  Returns an error if the given <code>option</code> doesn&rsquo;t exist.
</p>
<p><b>Since:</b>
1.5
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-command-line-options&quot;,
     &quot;arguments&quot;: { &quot;option&quot;: &quot;option-rom&quot; } }
&lt;- { &quot;return&quot;: [
        {
            &quot;parameters&quot;: [
                {
                    &quot;name&quot;: &quot;romfile&quot;,
                    &quot;type&quot;: &quot;string&quot;
                },
                {
                    &quot;name&quot;: &quot;bootindex&quot;,
                    &quot;type&quot;: &quot;number&quot;
                }
            ],
            &quot;option&quot;: &quot;option-rom&quot;
        }
     ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-X86CPURegister32"></a>Enum: <strong>X86CPURegister32</strong></dt>
<dd>
<p>A X86 32-bit register
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>EAX</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>EBX</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ECX</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>EDX</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ESP</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>EBP</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>ESI</code></dt>
<dd><p>Not documented
</p></dd>
<dt><code>EDI</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-X86CPUFeatureWordInfo"></a>Object: <strong>X86CPUFeatureWordInfo</strong></dt>
<dd>
<p>Information about a X86 CPU feature word
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>cpuid-input-eax: int</code></dt>
<dd><p>Input EAX value for CPUID instruction for that feature word
</p></dd>
<dt><code>cpuid-input-ecx: int</code> (optional)</dt>
<dd><p>Input ECX value for CPUID instruction for that
feature word
</p></dd>
<dt><code>cpuid-register: X86CPURegister32</code></dt>
<dd><p>Output register containing the feature bits
</p></dd>
<dt><code>features: int</code></dt>
<dd><p>value of output register, containing the feature bits
</p></dd>
</dl>


<p><b>Since:</b>
1.5
</p>
</dd></dl>



<dl>
<dt><a name="index-DummyForceArrays"></a>Object: <strong>DummyForceArrays</strong></dt>
<dd>
<p>Not used by QMP; hack to let us use X86CPUFeatureWordInfoList internally
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>unused: array of X86CPUFeatureWordInfo</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-NumaOptionsType"></a>Enum: <strong>NumaOptionsType</strong></dt>
<dd>


<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>node</code></dt>
<dd><p>NUMA nodes configuration
</p></dd>
<dt><code>dist</code></dt>
<dd><p>NUMA distance configuration (since 2.10)
</p></dd>
<dt><code>cpu</code></dt>
<dd><p>property based CPU(s) to node mapping (Since: 2.10)
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-NumaOptions"></a>Object: <strong>NumaOptions</strong></dt>
<dd>
<p>A discriminated record of NUMA options. (for OptsVisitor)
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: NumaOptionsType</code></dt>
<dd><p>Not documented
</p></dd>
<dt>The members of <code>NumaNodeOptions</code> when <code>type</code> is <tt>&quot;node&quot;</tt></dt>
<dt>The members of <code>NumaDistOptions</code> when <code>type</code> is <tt>&quot;dist&quot;</tt></dt>
<dt>The members of <code>NumaCpuOptions</code> when <code>type</code> is <tt>&quot;cpu&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-NumaNodeOptions"></a>Object: <strong>NumaNodeOptions</strong></dt>
<dd>
<p>Create a guest NUMA node. (for OptsVisitor)
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>nodeid: int</code> (optional)</dt>
<dd><p>NUMA node ID (increase by 1 from 0 if omitted)
</p></dd>
<dt><code>cpus: array of int</code> (optional)</dt>
<dd><p>VCPUs belonging to this node (assign VCPUS round-robin
if omitted)
</p></dd>
<dt><code>mem: int</code> (optional)</dt>
<dd><p>memory size of this node; mutually exclusive with <code>memdev</code>.
Equally divide total memory among nodes if both <code>mem</code> and <code>memdev</code> are
omitted.
</p></dd>
<dt><code>memdev: string</code> (optional)</dt>
<dd><p>memory backend object.  If specified for one node,
it must be specified for all nodes.
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-NumaDistOptions"></a>Object: <strong>NumaDistOptions</strong></dt>
<dd>
<p>Set the distance between 2 NUMA nodes.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>src: int</code></dt>
<dd><p>source NUMA node.
</p></dd>
<dt><code>dst: int</code></dt>
<dd><p>destination NUMA node.
</p></dd>
<dt><code>val: int</code></dt>
<dd><p>NUMA distance from source node to destination node.
When a node is unreachable from another node, set the distance
between them to 255.
</p></dd>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-NumaCpuOptions"></a>Object: <strong>NumaCpuOptions</strong></dt>
<dd>
<p>Option &quot;-numa cpu&quot; overrides default cpu to node mapping.
It accepts the same set of cpu properties as returned by
query-hotpluggable-cpus[].props, where node-id could be used to
override default node mapping.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt>The members of <code>CpuInstanceProperties</code></dt>
</dl>


<p><b>Since:</b>
2.10
</p>
</dd></dl>



<dl>
<dt><a name="index-HostMemPolicy"></a>Enum: <strong>HostMemPolicy</strong></dt>
<dd>
<p>Host memory policy types
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>default</code></dt>
<dd><p>restore default policy, remove any nondefault policy
</p></dd>
<dt><code>preferred</code></dt>
<dd><p>set the preferred host nodes for allocation
</p></dd>
<dt><code>bind</code></dt>
<dd><p>a strict policy that restricts memory allocation to the
host nodes specified
</p></dd>
<dt><code>interleave</code></dt>
<dd><p>memory allocations are interleaved across the set
of host nodes specified
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-Memdev"></a>Object: <strong>Memdev</strong></dt>
<dd>
<p>Information about memory backend
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>id: string</code> (optional)</dt>
<dd><p>backend&rsquo;s ID if backend has &rsquo;id&rsquo; property (since 2.9)
</p></dd>
<dt><code>size: int</code></dt>
<dd><p>memory backend size
</p></dd>
<dt><code>merge: boolean</code></dt>
<dd><p>enables or disables memory merge support
</p></dd>
<dt><code>dump: boolean</code></dt>
<dd><p>includes memory backend&rsquo;s memory in a core dump or not
</p></dd>
<dt><code>prealloc: boolean</code></dt>
<dd><p>enables or disables memory preallocation
</p></dd>
<dt><code>host-nodes: array of int</code></dt>
<dd><p>host nodes for its memory policy
</p></dd>
<dt><code>policy: HostMemPolicy</code></dt>
<dd><p>memory policy of memory backend
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dmemdev"></a>Command: <em></em> <strong>query-memdev</strong></dt>
<dd>
<p>Returns information for all memory backends.
</p>

<p><b>Returns:</b>
a list of <code>Memdev</code>.
</p>
<p><b>Since:</b>
2.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-memdev&quot; }
&lt;- { &quot;return&quot;: [
       {
         &quot;id&quot;: &quot;mem1&quot;,
         &quot;size&quot;: 536870912,
         &quot;merge&quot;: false,
         &quot;dump&quot;: true,
         &quot;prealloc&quot;: false,
         &quot;host-nodes&quot;: [0, 1],
         &quot;policy&quot;: &quot;bind&quot;
       },
       {
         &quot;size&quot;: 536870912,
         &quot;merge&quot;: false,
         &quot;dump&quot;: true,
         &quot;prealloc&quot;: true,
         &quot;host-nodes&quot;: [2, 3],
         &quot;policy&quot;: &quot;preferred&quot;
       }
     ]
   }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-PCDIMMDeviceInfo"></a>Object: <strong>PCDIMMDeviceInfo</strong></dt>
<dd>
<p>PCDIMMDevice state information
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>id: string</code> (optional)</dt>
<dd><p>device&rsquo;s ID
</p></dd>
<dt><code>addr: int</code></dt>
<dd><p>physical address, where device is mapped
</p></dd>
<dt><code>size: int</code></dt>
<dd><p>size of memory that the device provides
</p></dd>
<dt><code>slot: int</code></dt>
<dd><p>slot number at which device is plugged in
</p></dd>
<dt><code>node: int</code></dt>
<dd><p>NUMA node number where device is plugged in
</p></dd>
<dt><code>memdev: string</code></dt>
<dd><p>memory backend linked with device
</p></dd>
<dt><code>hotplugged: boolean</code></dt>
<dd><p>true if device was hotplugged
</p></dd>
<dt><code>hotpluggable: boolean</code></dt>
<dd><p>true if device if could be added/removed while machine is running
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-MemoryDeviceInfo"></a>Object: <strong>MemoryDeviceInfo</strong></dt>
<dd>
<p>Union containing information about a memory device
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type</code></dt>
<dd><p>One of <tt>&quot;dimm&quot;</tt>
</p></dd>
<dt><code>data: PCDIMMDeviceInfo</code> when <code>type</code> is <tt>&quot;dimm&quot;</tt></dt>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dmemory_002ddevices"></a>Command: <em></em> <strong>query-memory-devices</strong></dt>
<dd>
<p>Lists available memory devices and their state
</p>

<p><b>Since:</b>
2.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-memory-devices&quot; }
&lt;- { &quot;return&quot;: [ { &quot;data&quot;:
                      { &quot;addr&quot;: 5368709120,
                        &quot;hotpluggable&quot;: true,
                        &quot;hotplugged&quot;: true,
                        &quot;id&quot;: &quot;d1&quot;,
                        &quot;memdev&quot;: &quot;/objects/memX&quot;,
                        &quot;node&quot;: 0,
                        &quot;size&quot;: 1073741824,
                        &quot;slot&quot;: 0},
                   &quot;type&quot;: &quot;dimm&quot;
                 } ] }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-MEM_005fUNPLUG_005fERROR"></a>Event: <em></em> <strong>MEM_UNPLUG_ERROR</strong></dt>
<dd>
<p>Emitted when memory hot unplug error occurs.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>device: string</code></dt>
<dd><p>device name
</p></dd>
<dt><code>msg: string</code></dt>
<dd><p>Informative message
</p></dd>
</dl>


<p><b>Since:</b>
2.4
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;MEM_UNPLUG_ERROR&quot;
     &quot;data&quot;: { &quot;device&quot;: &quot;dimm1&quot;,
               &quot;msg&quot;: &quot;acpi: device unplug for unsupported device&quot;
     },
     &quot;timestamp&quot;: { &quot;seconds&quot;: 1265044230, &quot;microseconds&quot;: 450486 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-ACPISlotType"></a>Enum: <strong>ACPISlotType</strong></dt>
<dd>


<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>DIMM</code></dt>
<dd><p>memory slot
</p></dd>
<dt><code>CPU</code></dt>
<dd><p>logical CPU slot (since 2.7)
</p></dd>
</dl>


</dd></dl>



<dl>
<dt><a name="index-ACPIOSTInfo"></a>Object: <strong>ACPIOSTInfo</strong></dt>
<dd>
<p>OSPM Status Indication for a device
For description of possible values of <code>source</code> and <code>status</code> fields
see &quot;_OST (OSPM Status Indication)&quot; chapter of ACPI5.0 spec.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>device: string</code> (optional)</dt>
<dd><p>device ID associated with slot
</p></dd>
<dt><code>slot: string</code></dt>
<dd><p>slot ID, unique per slot of a given <code>slot-type</code>
</p></dd>
<dt><code>slot-type: ACPISlotType</code></dt>
<dd><p>type of the slot
</p></dd>
<dt><code>source: int</code></dt>
<dd><p>an integer containing the source event
</p></dd>
<dt><code>status: int</code></dt>
<dd><p>an integer containing the status code
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dacpi_002dospm_002dstatus"></a>Command: <em></em> <strong>query-acpi-ospm-status</strong></dt>
<dd>
<p>Return a list of ACPIOSTInfo for devices that support status
reporting via ACPI _OST method.
</p>

<p><b>Since:</b>
2.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-acpi-ospm-status&quot; }
&lt;- { &quot;return&quot;: [ { &quot;device&quot;: &quot;d1&quot;, &quot;slot&quot;: &quot;0&quot;, &quot;slot-type&quot;: &quot;DIMM&quot;, &quot;source&quot;: 1, &quot;status&quot;: 0},
                 { &quot;slot&quot;: &quot;1&quot;, &quot;slot-type&quot;: &quot;DIMM&quot;, &quot;source&quot;: 0, &quot;status&quot;: 0},
                 { &quot;slot&quot;: &quot;2&quot;, &quot;slot-type&quot;: &quot;DIMM&quot;, &quot;source&quot;: 0, &quot;status&quot;: 0},
                 { &quot;slot&quot;: &quot;3&quot;, &quot;slot-type&quot;: &quot;DIMM&quot;, &quot;source&quot;: 0, &quot;status&quot;: 0}
   ]}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-ACPI_005fDEVICE_005fOST"></a>Event: <em></em> <strong>ACPI_DEVICE_OST</strong></dt>
<dd>
<p>Emitted when guest executes ACPI _OST method.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>info: ACPIOSTInfo</code></dt>
<dd><p>ACPIOSTInfo type as described in qapi-schema.json
</p></dd>
</dl>


<p><b>Since:</b>
2.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;- { &quot;event&quot;: &quot;ACPI_DEVICE_OST&quot;,
     &quot;data&quot;: { &quot;device&quot;: &quot;d1&quot;, &quot;slot&quot;: &quot;0&quot;,
               &quot;slot-type&quot;: &quot;DIMM&quot;, &quot;source&quot;: 1, &quot;status&quot;: 0 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-rtc_002dreset_002dreinjection"></a>Command: <em></em> <strong>rtc-reset-reinjection</strong></dt>
<dd>
<p>This command will reset the RTC interrupt reinjection backlog.
Can be used if another mechanism to synchronize guest time
is in effect, for example QEMU guest agent&rsquo;s guest-set-time
command.
</p>

<p><b>Since:</b>
2.1
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;rtc-reset-reinjection&quot; }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-RTC_005fCHANGE"></a>Event: <em></em> <strong>RTC_CHANGE</strong></dt>
<dd>
<p>Emitted when the guest changes the RTC time.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>offset: int</code></dt>
<dd><p>offset between base RTC clock (as specified by -rtc base), and
new RTC clock value
</p></dd>
</dl>


<p><b>Note:</b>
This event is rate-limited.
</p>
<p><b>Since:</b>
0.13.0
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">&lt;-   { &quot;event&quot;: &quot;RTC_CHANGE&quot;,
       &quot;data&quot;: { &quot;offset&quot;: 78 },
       &quot;timestamp&quot;: { &quot;seconds&quot;: 1267020223, &quot;microseconds&quot;: 435656 } }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-ReplayMode"></a>Enum: <strong>ReplayMode</strong></dt>
<dd>
<p>Mode of the replay subsystem.
</p>
<p><b>Values:</b>
</p><dl compact="compact">
<dt><code>none</code></dt>
<dd><p>normal execution mode. Replay or record are not enabled.
</p></dd>
<dt><code>record</code></dt>
<dd><p>record mode. All non-deterministic data is written into the
replay log.
</p></dd>
<dt><code>play</code></dt>
<dd><p>replay mode. Non-deterministic data required for system execution
is read from the log.
</p></dd>
</dl>


<p><b>Since:</b>
2.5
</p>
</dd></dl>



<dl>
<dt><a name="index-xen_002dload_002ddevices_002dstate"></a>Command: <em></em> <strong>xen-load-devices-state</strong></dt>
<dd>
<p>Load the state of all devices from file. The RAM and the block devices
of the VM are not loaded by this command.
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>filename: string</code></dt>
<dd><p>the file to load the state of the devices from as binary
data. See xen-save-devices-state.txt for a description of the binary
format.
</p></dd>
</dl>


<p><b>Since:</b>
2.7
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;xen-load-devices-state&quot;,
     &quot;arguments&quot;: { &quot;filename&quot;: &quot;/tmp/resume&quot; } }
&lt;- { &quot;return&quot;: {} }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-GICCapability"></a>Object: <strong>GICCapability</strong></dt>
<dd>
<p>The struct describes capability for a specific GIC (Generic
Interrupt Controller) version. These bits are not only decided by
QEMU/KVM software version, but also decided by the hardware that
the program is running upon.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>version: int</code></dt>
<dd><p>version of GIC to be described. Currently, only 2 and 3
are supported.
</p></dd>
<dt><code>emulated: boolean</code></dt>
<dd><p>whether current QEMU/hardware supports emulated GIC
device in user space.
</p></dd>
<dt><code>kernel: boolean</code></dt>
<dd><p>whether current QEMU/hardware supports hardware
accelerated GIC device in kernel.
</p></dd>
</dl>


<p><b>Since:</b>
2.6
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dgic_002dcapabilities"></a>Command: <em></em> <strong>query-gic-capabilities</strong></dt>
<dd>
<p>This command is ARM-only. It will return a list of GICCapability
objects that describe its capability bits.
</p>

<p><b>Returns:</b>
a list of GICCapability objects.
</p>
<p><b>Since:</b>
2.6
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">-&gt; { &quot;execute&quot;: &quot;query-gic-capabilities&quot; }
&lt;- { &quot;return&quot;: [{ &quot;version&quot;: 2, &quot;emulated&quot;: true, &quot;kernel&quot;: false },
                { &quot;version&quot;: 3, &quot;emulated&quot;: false, &quot;kernel&quot;: true } ] }
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-CpuInstanceProperties"></a>Object: <strong>CpuInstanceProperties</strong></dt>
<dd>
<p>List of properties to be used for hotplugging a CPU instance,
it should be passed by management with device_add command when
a CPU is being hotplugged.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>node-id: int</code> (optional)</dt>
<dd><p>NUMA node ID the CPU belongs to
</p></dd>
<dt><code>socket-id: int</code> (optional)</dt>
<dd><p>socket number within node/board the CPU belongs to
</p></dd>
<dt><code>core-id: int</code> (optional)</dt>
<dd><p>core number within socket the CPU belongs to
</p></dd>
<dt><code>thread-id: int</code> (optional)</dt>
<dd><p>thread number within core the CPU belongs to
</p></dd>
</dl>


<p><b>Note:</b>
currently there are 4 properties that could be present
but management should be prepared to pass through other
properties with device_add command to allow for future
interface extension. This also requires the filed names to be kept in
sync with the properties passed to -device/device_add.
</p>
<p><b>Since:</b>
2.7
</p>
</dd></dl>



<dl>
<dt><a name="index-HotpluggableCPU"></a>Object: <strong>HotpluggableCPU</strong></dt>
<dd>


<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>type: string</code></dt>
<dd><p>CPU object type for usage with device_add command
</p></dd>
<dt><code>props: CpuInstanceProperties</code></dt>
<dd><p>list of properties to be used for hotplugging CPU
</p></dd>
<dt><code>vcpus-count: int</code></dt>
<dd><p>number of logical VCPU threads <code>HotpluggableCPU</code> provides
</p></dd>
<dt><code>qom-path: string</code> (optional)</dt>
<dd><p>link to existing CPU object if CPU is present or
omitted if CPU is not present.
</p></dd>
</dl>


<p><b>Since:</b>
2.7
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dhotpluggable_002dcpus"></a>Command: <em></em> <strong>query-hotpluggable-cpus</strong></dt>
<dd>



<p><b>Returns:</b>
a list of HotpluggableCPU objects.
</p>
<p><b>Since:</b>
2.7
</p>
<p><b>Example:</b>
</p><div class="example">
<pre class="example">For pseries machine type started with -smp 2,cores=2,maxcpus=4 -cpu POWER8:

-&gt; { &quot;execute&quot;: &quot;query-hotpluggable-cpus&quot; }
&lt;- {&quot;return&quot;: [
     { &quot;props&quot;: { &quot;core&quot;: 8 }, &quot;type&quot;: &quot;POWER8-spapr-cpu-core&quot;,
       &quot;vcpus-count&quot;: 1 },
     { &quot;props&quot;: { &quot;core&quot;: 0 }, &quot;type&quot;: &quot;POWER8-spapr-cpu-core&quot;,
       &quot;vcpus-count&quot;: 1, &quot;qom-path&quot;: &quot;/machine/unattached/device[0]&quot;}
   ]}'

For pc machine type started with -smp 1,maxcpus=2:

-&gt; { &quot;execute&quot;: &quot;query-hotpluggable-cpus&quot; }
&lt;- {&quot;return&quot;: [
     {
        &quot;type&quot;: &quot;qemu64-x86_64-cpu&quot;, &quot;vcpus-count&quot;: 1,
        &quot;props&quot;: {&quot;core-id&quot;: 0, &quot;socket-id&quot;: 1, &quot;thread-id&quot;: 0}
     },
     {
        &quot;qom-path&quot;: &quot;/machine/unattached/device[0]&quot;,
        &quot;type&quot;: &quot;qemu64-x86_64-cpu&quot;, &quot;vcpus-count&quot;: 1,
        &quot;props&quot;: {&quot;core-id&quot;: 0, &quot;socket-id&quot;: 0, &quot;thread-id&quot;: 0}
     }
   ]}

For s390x-virtio-ccw machine type started with -smp 1,maxcpus=2 -cpu qemu
(Since: 2.11):

-&gt; { &quot;execute&quot;: &quot;query-hotpluggable-cpus&quot; }
&lt;- {&quot;return&quot;: [
     {
        &quot;type&quot;: &quot;qemu-s390x-cpu&quot;, &quot;vcpus-count&quot;: 1,
        &quot;props&quot;: { &quot;core-id&quot;: 1 }
     },
     {
        &quot;qom-path&quot;: &quot;/machine/unattached/device[0]&quot;,
        &quot;type&quot;: &quot;qemu-s390x-cpu&quot;, &quot;vcpus-count&quot;: 1,
        &quot;props&quot;: { &quot;core-id&quot;: 0 }
     }
   ]}
</pre></div>


</dd></dl>



<dl>
<dt><a name="index-GuidInfo"></a>Object: <strong>GuidInfo</strong></dt>
<dd>
<p>GUID information.
</p>
<p><b>Members:</b>
</p><dl compact="compact">
<dt><code>guid: string</code></dt>
<dd><p>the globally unique identifier
</p></dd>
</dl>


<p><b>Since:</b>
2.9
</p>
</dd></dl>



<dl>
<dt><a name="index-query_002dvm_002dgeneration_002did"></a>Command: <em></em> <strong>query-vm-generation-id</strong></dt>
<dd>
<p>Show Virtual Machine Generation ID
</p>
<p>Since 2.9
</p>

</dd></dl>



<dl>
<dt><a name="index-watchdog_002dset_002daction"></a>Command: <em></em> <strong>watchdog-set-action</strong></dt>
<dd>
<p>Set watchdog action
</p>
<p><b>Arguments:</b>
</p><dl compact="compact">
<dt><code>action: WatchdogAction</code></dt>
<dd><p>Not documented
</p></dd>
</dl>


<p><b>Since:</b>
2.11
</p>
</dd></dl>




<hr>
<a name="Commands-and-Events-Index"></a>
<a name="Commands-and-Events-Index-1"></a>
<h2 class="unnumbered">Commands and Events Index</h2>
<table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-A"><b>A</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-B"><b>B</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-C"><b>C</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-D"><b>D</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-E"><b>E</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-G"><b>G</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-H"><b>H</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-I"><b>I</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-M"><b>M</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-N"><b>N</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-O"><b>O</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-P"><b>P</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-Q"><b>Q</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-R"><b>R</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-S"><b>S</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-T"><b>T</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-V"><b>V</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-W"><b>W</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-X"><b>X</b></a>
 &nbsp; 
</td></tr></table>
<table class="index-fn" border="0">
<tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> Section</th></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-A">A</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-ACPI_005fDEVICE_005fOST"><code>ACPI_DEVICE_OST</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-add_002dfd"><code>add-fd</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-add_005fclient"><code>add_client</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-B">B</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-balloon"><code>balloon</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BALLOON_005fCHANGE"><code>BALLOON_CHANGE</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002dcommit"><code>block-commit</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002ddirty_002dbitmap_002dadd"><code>block-dirty-bitmap-add</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002ddirty_002dbitmap_002dclear"><code>block-dirty-bitmap-clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002ddirty_002dbitmap_002dremove"><code>block-dirty-bitmap-remove</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002djob_002dcancel"><code>block-job-cancel</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002djob_002dcomplete"><code>block-job-complete</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002djob_002dpause"><code>block-job-pause</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002djob_002dresume"><code>block-job-resume</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002djob_002dset_002dspeed"><code>block-job-set-speed</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002dset_002dwrite_002dthreshold"><code>block-set-write-threshold</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_002dstream"><code>block-stream</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dadd"><code>blockdev-add</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dbackup"><code>blockdev-backup</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dchange_002dmedium"><code>blockdev-change-medium</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dclose_002dtray"><code>blockdev-close-tray</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002ddel"><code>blockdev-del</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dmirror"><code>blockdev-mirror</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dopen_002dtray"><code>blockdev-open-tray</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dsnapshot"><code>blockdev-snapshot</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dsnapshot_002ddelete_002dinternal_002dsync"><code>blockdev-snapshot-delete-internal-sync</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dsnapshot_002dinternal_002dsync"><code>blockdev-snapshot-internal-sync</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-blockdev_002dsnapshot_002dsync"><code>blockdev-snapshot-sync</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BLOCK_005fIMAGE_005fCORRUPTED"><code>BLOCK_IMAGE_CORRUPTED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BLOCK_005fIO_005fERROR"><code>BLOCK_IO_ERROR</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BLOCK_005fJOB_005fCANCELLED"><code>BLOCK_JOB_CANCELLED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BLOCK_005fJOB_005fCOMPLETED"><code>BLOCK_JOB_COMPLETED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BLOCK_005fJOB_005fERROR"><code>BLOCK_JOB_ERROR</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BLOCK_005fJOB_005fREADY"><code>BLOCK_JOB_READY</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_005fpasswd"><code>block_passwd</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_005fresize"><code>block_resize</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-block_005fset_005fio_005fthrottle"><code>block_set_io_throttle</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BLOCK_005fWRITE_005fTHRESHOLD"><code>BLOCK_WRITE_THRESHOLD</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-C">C</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-change"><code>change</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-change_002dbacking_002dfile"><code>change-backing-file</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-change_002dvnc_002dpassword"><code>change-vnc-password</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-chardev_002dadd"><code>chardev-add</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-chardev_002dchange"><code>chardev-change</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-chardev_002dremove"><code>chardev-remove</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-chardev_002dsend_002dbreak"><code>chardev-send-break</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-client_005fmigrate_005finfo"><code>client_migrate_info</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-closefd"><code>closefd</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-cont"><code>cont</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-cpu"><code>cpu</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-cpu_002dadd"><code>cpu-add</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-D">D</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-device_002dlist_002dproperties"><code>device-list-properties</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-device_005fadd"><code>device_add</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-device_005fdel"><code>device_del</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DEVICE_005fDELETED"><code>DEVICE_DELETED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DEVICE_005fTRAY_005fMOVED"><code>DEVICE_TRAY_MOVED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-drive_002dbackup"><code>drive-backup</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-drive_002dmirror"><code>drive-mirror</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-dump_002dguest_002dmemory"><code>dump-guest-memory</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-dump_002dskeys"><code>dump-skeys</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DUMP_005fCOMPLETED"><code>DUMP_COMPLETED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-E">E</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-eject"><code>eject</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-expire_005fpassword"><code>expire_password</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-G">G</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-getfd"><code>getfd</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-GUEST_005fPANICKED"><code>GUEST_PANICKED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-H">H</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-human_002dmonitor_002dcommand"><code>human-monitor-command</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-I">I</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-inject_002dnmi"><code>inject-nmi</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-input_002dsend_002devent"><code>input-send-event</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-M">M</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-memsave"><code>memsave</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MEM_005fUNPLUG_005fERROR"><code>MEM_UNPLUG_ERROR</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate"><code>migrate</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_002dcontinue"><code>migrate-continue</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_002dincoming"><code>migrate-incoming</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_002dset_002dcache_002dsize"><code>migrate-set-cache-size</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_002dset_002dcapabilities"><code>migrate-set-capabilities</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_002dset_002dparameters"><code>migrate-set-parameters</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_002dstart_002dpostcopy"><code>migrate-start-postcopy</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_005fcancel"><code>migrate_cancel</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_005fset_005fdowntime"><code>migrate_set_downtime</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-migrate_005fset_005fspeed"><code>migrate_set_speed</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MIGRATION"><code>MIGRATION</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MIGRATION_005fPASS"><code>MIGRATION_PASS</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-N">N</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-nbd_002dserver_002dadd"><code>nbd-server-add</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-nbd_002dserver_002dstart"><code>nbd-server-start</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-nbd_002dserver_002dstop"><code>nbd-server-stop</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-netdev_005fadd"><code>netdev_add</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-netdev_005fdel"><code>netdev_del</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NIC_005fRX_005fFILTER_005fCHANGED"><code>NIC_RX_FILTER_CHANGED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-O">O</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-object_002dadd"><code>object-add</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-object_002ddel"><code>object-del</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-P">P</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-pmemsave"><code>pmemsave</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-POWERDOWN"><code>POWERDOWN</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-Q">Q</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-qmp_005fcapabilities"><code>qmp_capabilities</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-qom_002dget"><code>qom-get</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-qom_002dlist"><code>qom-list</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-qom_002dlist_002dtypes"><code>qom-list-types</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-qom_002dset"><code>qom-set</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dacpi_002dospm_002dstatus"><code>query-acpi-ospm-status</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dballoon"><code>query-balloon</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dblock"><code>query-block</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dblock_002djobs"><code>query-block-jobs</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dblockstats"><code>query-blockstats</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dchardev"><code>query-chardev</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dchardev_002dbackends"><code>query-chardev-backends</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dcommand_002dline_002doptions"><code>query-command-line-options</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dcommands"><code>query-commands</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dcpu_002ddefinitions"><code>query-cpu-definitions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dcpu_002dmodel_002dbaseline"><code>query-cpu-model-baseline</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dcpu_002dmodel_002dcomparison"><code>query-cpu-model-comparison</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dcpu_002dmodel_002dexpansion"><code>query-cpu-model-expansion</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dcpus"><code>query-cpus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002ddump"><code>query-dump</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002ddump_002dguest_002dmemory_002dcapability"><code>query-dump-guest-memory-capability</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002devents"><code>query-events</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dfdsets"><code>query-fdsets</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dgic_002dcapabilities"><code>query-gic-capabilities</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dhotpluggable_002dcpus"><code>query-hotpluggable-cpus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002diothreads"><code>query-iothreads</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dkvm"><code>query-kvm</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmachines"><code>query-machines</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmemdev"><code>query-memdev</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmemory_002ddevices"><code>query-memory-devices</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmemory_002dsize_002dsummary"><code>query-memory-size-summary</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmice"><code>query-mice</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmigrate"><code>query-migrate</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmigrate_002dcache_002dsize"><code>query-migrate-cache-size</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmigrate_002dcapabilities"><code>query-migrate-capabilities</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dmigrate_002dparameters"><code>query-migrate-parameters</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dname"><code>query-name</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dnamed_002dblock_002dnodes"><code>query-named-block-nodes</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dpci"><code>query-pci</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dqmp_002dschema"><code>query-qmp-schema</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002drocker"><code>query-rocker</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002drocker_002dof_002ddpa_002dflows"><code>query-rocker-of-dpa-flows</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002drocker_002dof_002ddpa_002dgroups"><code>query-rocker-of-dpa-groups</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002drocker_002dports"><code>query-rocker-ports</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002drx_002dfilter"><code>query-rx-filter</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dspice"><code>query-spice</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dstatus"><code>query-status</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dtarget"><code>query-target</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dtpm"><code>query-tpm</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dtpm_002dmodels"><code>query-tpm-models</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dtpm_002dtypes"><code>query-tpm-types</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002duuid"><code>query-uuid</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dversion"><code>query-version</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dvm_002dgeneration_002did"><code>query-vm-generation-id</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dvnc"><code>query-vnc</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dvnc_002dservers"><code>query-vnc-servers</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-query_002dxen_002dreplication_002dstatus"><code>query-xen-replication-status</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-quit"><code>quit</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QUORUM_005fFAILURE"><code>QUORUM_FAILURE</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QUORUM_005fREPORT_005fBAD"><code>QUORUM_REPORT_BAD</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-R">R</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-remove_002dfd"><code>remove-fd</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RESET"><code>RESET</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RESUME"><code>RESUME</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ringbuf_002dread"><code>ringbuf-read</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ringbuf_002dwrite"><code>ringbuf-write</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-rtc_002dreset_002dreinjection"><code>rtc-reset-reinjection</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RTC_005fCHANGE"><code>RTC_CHANGE</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-S">S</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-screendump"><code>screendump</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-send_002dkey"><code>send-key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-set_005flink"><code>set_link</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-set_005fpassword"><code>set_password</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SHUTDOWN"><code>SHUTDOWN</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SPICE_005fCONNECTED"><code>SPICE_CONNECTED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SPICE_005fDISCONNECTED"><code>SPICE_DISCONNECTED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SPICE_005fINITIALIZED"><code>SPICE_INITIALIZED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SPICE_005fMIGRATE_005fCOMPLETED"><code>SPICE_MIGRATE_COMPLETED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-STOP"><code>STOP</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-stop"><code>stop</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SUSPEND"><code>SUSPEND</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SUSPEND_005fDISK"><code>SUSPEND_DISK</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-system_005fpowerdown"><code>system_powerdown</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-system_005freset"><code>system_reset</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-system_005fwakeup"><code>system_wakeup</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-T">T</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-trace_002devent_002dget_002dstate"><code>trace-event-get-state</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-trace_002devent_002dset_002dstate"><code>trace-event-set-state</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-transaction"><code>transaction</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-V">V</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-VNC_005fCONNECTED"><code>VNC_CONNECTED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VNC_005fDISCONNECTED"><code>VNC_DISCONNECTED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VNC_005fINITIALIZED"><code>VNC_INITIALIZED</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VSERPORT_005fCHANGE"><code>VSERPORT_CHANGE</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-W">W</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-WAKEUP"><code>WAKEUP</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-WATCHDOG"><code>WATCHDOG</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-watchdog_002dset_002daction"><code>watchdog-set-action</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Commands-and-Events-Index_fn_letter-X">X</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-x_002dblockdev_002dchange"><code>x-blockdev-change</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-x_002dblockdev_002dinsert_002dmedium"><code>x-blockdev-insert-medium</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-x_002dblockdev_002dremove_002dmedium"><code>x-blockdev-remove-medium</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-x_002dcolo_002dlost_002dheartbeat"><code>x-colo-lost-heartbeat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-x_002ddebug_002dblock_002ddirty_002dbitmap_002dsha256"><code>x-debug-block-dirty-bitmap-sha256</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-xen_002dcolo_002ddo_002dcheckpoint"><code>xen-colo-do-checkpoint</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-xen_002dload_002ddevices_002dstate"><code>xen-load-devices-state</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-xen_002dsave_002ddevices_002dstate"><code>xen-save-devices-state</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-xen_002dset_002dglobal_002ddirty_002dlog"><code>xen-set-global-dirty-log</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-xen_002dset_002dreplication"><code>xen-set-replication</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
</table>
<table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-A"><b>A</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-B"><b>B</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-C"><b>C</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-D"><b>D</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-E"><b>E</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-G"><b>G</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-H"><b>H</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-I"><b>I</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-M"><b>M</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-N"><b>N</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-O"><b>O</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-P"><b>P</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-Q"><b>Q</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-R"><b>R</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-S"><b>S</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-T"><b>T</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-V"><b>V</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-W"><b>W</b></a>
 &nbsp; 
<a class="summary-letter" href="#Commands-and-Events-Index_fn_letter-X"><b>X</b></a>
 &nbsp; 
</td></tr></table>

<hr>
<a name="Data-Types-Index"></a>
<a name="Data-Types-Index-1"></a>
<h2 class="unnumbered">Data Types Index</h2>
<table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Data-Types-Index_tp_letter-A"><b>A</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-B"><b>B</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-C"><b>C</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-D"><b>D</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-E"><b>E</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-F"><b>F</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-G"><b>G</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-H"><b>H</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-I"><b>I</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-J"><b>J</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-K"><b>K</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-L"><b>L</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-M"><b>M</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-N"><b>N</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-O"><b>O</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-P"><b>P</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-Q"><b>Q</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-R"><b>R</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-S"><b>S</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-T"><b>T</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-U"><b>U</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-V"><b>V</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-W"><b>W</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-X"><b>X</b></a>
 &nbsp; 
</td></tr></table>
<table class="index-tp" border="0">
<tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> Section</th></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-A">A</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-Abort"><code>Abort</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ACPIOSTInfo"><code>ACPIOSTInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ACPISlotType"><code>ACPISlotType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-AcpiTableOptions"><code>AcpiTableOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ActionCompletionMode"><code>ActionCompletionMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-AddfdInfo"><code>AddfdInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-B">B</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-BalloonInfo"><code>BalloonInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BiosAtaTranslation"><code>BiosAtaTranslation</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlkdebugEvent"><code>BlkdebugEvent</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlkdebugInjectErrorOptions"><code>BlkdebugInjectErrorOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlkdebugSetStateOptions"><code>BlkdebugSetStateOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevAioOptions"><code>BlockdevAioOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevBackup"><code>BlockdevBackup</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevCacheInfo"><code>BlockdevCacheInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevCacheOptions"><code>BlockdevCacheOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevChangeReadOnlyMode"><code>BlockdevChangeReadOnlyMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevDetectZeroesOptions"><code>BlockdevDetectZeroesOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevDiscardOptions"><code>BlockdevDiscardOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevDriver"><code>BlockdevDriver</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDeviceInfo"><code>BlockDeviceInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDeviceIoStatus"><code>BlockDeviceIoStatus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDeviceMapEntry"><code>BlockDeviceMapEntry</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDeviceStats"><code>BlockDeviceStats</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDeviceTimedStats"><code>BlockDeviceTimedStats</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOnError"><code>BlockdevOnError</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptions"><code>BlockdevOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsBlkdebug"><code>BlockdevOptionsBlkdebug</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsBlkverify"><code>BlockdevOptionsBlkverify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsCurlBase"><code>BlockdevOptionsCurlBase</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsCurlFtp"><code>BlockdevOptionsCurlFtp</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsCurlFtps"><code>BlockdevOptionsCurlFtps</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsCurlHttp"><code>BlockdevOptionsCurlHttp</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsCurlHttps"><code>BlockdevOptionsCurlHttps</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsFile"><code>BlockdevOptionsFile</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsGenericCOWFormat"><code>BlockdevOptionsGenericCOWFormat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsGenericFormat"><code>BlockdevOptionsGenericFormat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsGluster"><code>BlockdevOptionsGluster</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsIscsi"><code>BlockdevOptionsIscsi</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsLUKS"><code>BlockdevOptionsLUKS</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsNbd"><code>BlockdevOptionsNbd</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsNfs"><code>BlockdevOptionsNfs</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsNull"><code>BlockdevOptionsNull</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsQcow"><code>BlockdevOptionsQcow</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsQcow2"><code>BlockdevOptionsQcow2</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsQuorum"><code>BlockdevOptionsQuorum</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsRaw"><code>BlockdevOptionsRaw</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsRbd"><code>BlockdevOptionsRbd</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsReplication"><code>BlockdevOptionsReplication</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsSheepdog"><code>BlockdevOptionsSheepdog</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsSsh"><code>BlockdevOptionsSsh</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsThrottle"><code>BlockdevOptionsThrottle</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsVVFAT"><code>BlockdevOptionsVVFAT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevOptionsVxHS"><code>BlockdevOptionsVxHS</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevQcow2Encryption"><code>BlockdevQcow2Encryption</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevQcow2EncryptionFormat"><code>BlockdevQcow2EncryptionFormat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevQcowEncryption"><code>BlockdevQcowEncryption</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevQcowEncryptionFormat"><code>BlockdevQcowEncryptionFormat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevRef"><code>BlockdevRef</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevRefOrNull"><code>BlockdevRefOrNull</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevSnapshot"><code>BlockdevSnapshot</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevSnapshotInternal"><code>BlockdevSnapshotInternal</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockdevSnapshotSync"><code>BlockdevSnapshotSync</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDirtyBitmap"><code>BlockDirtyBitmap</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDirtyBitmapAdd"><code>BlockDirtyBitmapAdd</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDirtyBitmapSha256"><code>BlockDirtyBitmapSha256</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockDirtyInfo"><code>BlockDirtyInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockErrorAction"><code>BlockErrorAction</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockInfo"><code>BlockInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockIOThrottle"><code>BlockIOThrottle</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockJobInfo"><code>BlockJobInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockJobType"><code>BlockJobType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockMeasureInfo"><code>BlockMeasureInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-BlockStats"><code>BlockStats</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-C">C</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevBackend"><code>ChardevBackend</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevBackendInfo"><code>ChardevBackendInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevCommon"><code>ChardevCommon</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevFile"><code>ChardevFile</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevHostdev"><code>ChardevHostdev</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevInfo"><code>ChardevInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevMux"><code>ChardevMux</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevReturn"><code>ChardevReturn</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevRingbuf"><code>ChardevRingbuf</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevSocket"><code>ChardevSocket</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevSpiceChannel"><code>ChardevSpiceChannel</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevSpicePort"><code>ChardevSpicePort</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevStdio"><code>ChardevStdio</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevUdp"><code>ChardevUdp</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ChardevVC"><code>ChardevVC</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-COLOMessage"><code>COLOMessage</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-COLOMode"><code>COLOMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CommandInfo"><code>CommandInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CommandLineOptionInfo"><code>CommandLineOptionInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CommandLineParameterInfo"><code>CommandLineParameterInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CommandLineParameterType"><code>CommandLineParameterType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuDefinitionInfo"><code>CpuDefinitionInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInfo"><code>CpuInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInfoArch"><code>CpuInfoArch</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInfoMIPS"><code>CpuInfoMIPS</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInfoOther"><code>CpuInfoOther</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInfoPPC"><code>CpuInfoPPC</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInfoSPARC"><code>CpuInfoSPARC</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInfoTricore"><code>CpuInfoTricore</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInfoX86"><code>CpuInfoX86</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuInstanceProperties"><code>CpuInstanceProperties</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuModelBaselineInfo"><code>CpuModelBaselineInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuModelCompareInfo"><code>CpuModelCompareInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuModelCompareResult"><code>CpuModelCompareResult</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuModelExpansionInfo"><code>CpuModelExpansionInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuModelExpansionType"><code>CpuModelExpansionType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-CpuModelInfo"><code>CpuModelInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-D">D</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-DataFormat"><code>DataFormat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DevicePropertyInfo"><code>DevicePropertyInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DirtyBitmapStatus"><code>DirtyBitmapStatus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DriveBackup"><code>DriveBackup</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DriveMirror"><code>DriveMirror</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DummyForceArrays"><code>DummyForceArrays</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DumpGuestMemoryCapability"><code>DumpGuestMemoryCapability</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DumpGuestMemoryFormat"><code>DumpGuestMemoryFormat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DumpQueryResult"><code>DumpQueryResult</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-DumpStatus"><code>DumpStatus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-E">E</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-EventInfo"><code>EventInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-F">F</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-FailoverStatus"><code>FailoverStatus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-FdsetFdInfo"><code>FdsetFdInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-FdsetInfo"><code>FdsetInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-FloppyDriveType"><code>FloppyDriveType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-G">G</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-GICCapability"><code>GICCapability</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-GuestPanicAction"><code>GuestPanicAction</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-GuestPanicInformation"><code>GuestPanicInformation</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-GuestPanicInformationHyperV"><code>GuestPanicInformationHyperV</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-GuestPanicInformationType"><code>GuestPanicInformationType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-GuidInfo"><code>GuidInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-H">H</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-HostMemPolicy"><code>HostMemPolicy</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-HotpluggableCPU"><code>HotpluggableCPU</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-I">I</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-ImageCheck"><code>ImageCheck</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ImageInfo"><code>ImageInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ImageInfoSpecific"><code>ImageInfoSpecific</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ImageInfoSpecificQCow2"><code>ImageInfoSpecificQCow2</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ImageInfoSpecificQCow2Encryption"><code>ImageInfoSpecificQCow2Encryption</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ImageInfoSpecificQCow2EncryptionBase"><code>ImageInfoSpecificQCow2EncryptionBase</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ImageInfoSpecificVmdk"><code>ImageInfoSpecificVmdk</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-InetSocketAddress"><code>InetSocketAddress</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-InetSocketAddressBase"><code>InetSocketAddressBase</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-InputAxis"><code>InputAxis</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-InputBtnEvent"><code>InputBtnEvent</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-InputButton"><code>InputButton</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-InputEvent"><code>InputEvent</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-InputKeyEvent"><code>InputKeyEvent</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-InputMoveEvent"><code>InputMoveEvent</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-IoOperationType"><code>IoOperationType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-IOThreadInfo"><code>IOThreadInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-IscsiHeaderDigest"><code>IscsiHeaderDigest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-IscsiTransport"><code>IscsiTransport</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-J">J</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-JSONType"><code>JSONType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-K">K</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-KeyValue"><code>KeyValue</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-KvmInfo"><code>KvmInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-L">L</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-LostTickPolicy"><code>LostTickPolicy</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-M">M</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-MachineInfo"><code>MachineInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MapEntry"><code>MapEntry</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Memdev"><code>Memdev</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MemoryDeviceInfo"><code>MemoryDeviceInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MemoryInfo"><code>MemoryInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MigrateSetParameters"><code>MigrateSetParameters</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MigrationCapability"><code>MigrationCapability</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MigrationCapabilityStatus"><code>MigrationCapabilityStatus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MigrationInfo"><code>MigrationInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MigrationParameter"><code>MigrationParameter</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MigrationParameters"><code>MigrationParameters</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MigrationStats"><code>MigrationStats</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MigrationStatus"><code>MigrationStatus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MirrorSyncMode"><code>MirrorSyncMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-MouseInfo"><code>MouseInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-N">N</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-NameInfo"><code>NameInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetClientDriver"><code>NetClientDriver</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Netdev"><code>Netdev</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevBridgeOptions"><code>NetdevBridgeOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevDumpOptions"><code>NetdevDumpOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevHubPortOptions"><code>NetdevHubPortOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevL2TPv3Options"><code>NetdevL2TPv3Options</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevNetmapOptions"><code>NetdevNetmapOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevNoneOptions"><code>NetdevNoneOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevSocketOptions"><code>NetdevSocketOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevTapOptions"><code>NetdevTapOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevUserOptions"><code>NetdevUserOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevVdeOptions"><code>NetdevVdeOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetdevVhostUserOptions"><code>NetdevVhostUserOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetFilterDirection"><code>NetFilterDirection</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetLegacy"><code>NetLegacy</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetLegacyNicOptions"><code>NetLegacyNicOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetLegacyOptions"><code>NetLegacyOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetLegacyOptionsType"><code>NetLegacyOptionsType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NetworkAddressFamily"><code>NetworkAddressFamily</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NewImageMode"><code>NewImageMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NFSServer"><code>NFSServer</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NFSTransport"><code>NFSTransport</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NumaCpuOptions"><code>NumaCpuOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NumaDistOptions"><code>NumaDistOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NumaNodeOptions"><code>NumaNodeOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NumaOptions"><code>NumaOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-NumaOptionsType"><code>NumaOptionsType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-O">O</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-ObjectPropertyInfo"><code>ObjectPropertyInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ObjectTypeInfo"><code>ObjectTypeInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-OnOffAuto"><code>OnOffAuto</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-OnOffSplit"><code>OnOffSplit</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-P">P</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-PCDIMMDeviceInfo"><code>PCDIMMDeviceInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PciBridgeInfo"><code>PciBridgeInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PciBusInfo"><code>PciBusInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PciDeviceClass"><code>PciDeviceClass</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PciDeviceId"><code>PciDeviceId</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PciDeviceInfo"><code>PciDeviceInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PciInfo"><code>PciInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PciMemoryRange"><code>PciMemoryRange</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PciMemoryRegion"><code>PciMemoryRegion</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-PreallocMode"><code>PreallocMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-Q">Q</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-QapiErrorClass"><code>QapiErrorClass</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Qcow2OverlapCheckFlags"><code>Qcow2OverlapCheckFlags</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Qcow2OverlapCheckMode"><code>Qcow2OverlapCheckMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Qcow2OverlapChecks"><code>Qcow2OverlapChecks</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockCreateOptions"><code>QCryptoBlockCreateOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockCreateOptionsLUKS"><code>QCryptoBlockCreateOptionsLUKS</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockFormat"><code>QCryptoBlockFormat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockInfo"><code>QCryptoBlockInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockInfoBase"><code>QCryptoBlockInfoBase</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockInfoLUKS"><code>QCryptoBlockInfoLUKS</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockInfoLUKSSlot"><code>QCryptoBlockInfoLUKSSlot</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockInfoQCow"><code>QCryptoBlockInfoQCow</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockOpenOptions"><code>QCryptoBlockOpenOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockOptionsBase"><code>QCryptoBlockOptionsBase</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockOptionsLUKS"><code>QCryptoBlockOptionsLUKS</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoBlockOptionsQCow"><code>QCryptoBlockOptionsQCow</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoCipherAlgorithm"><code>QCryptoCipherAlgorithm</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoCipherMode"><code>QCryptoCipherMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoHashAlgorithm"><code>QCryptoHashAlgorithm</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoIVGenAlgorithm"><code>QCryptoIVGenAlgorithm</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoSecretFormat"><code>QCryptoSecretFormat</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QCryptoTLSCredsEndpoint"><code>QCryptoTLSCredsEndpoint</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QKeyCode"><code>QKeyCode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QuorumOpType"><code>QuorumOpType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-QuorumReadPattern"><code>QuorumReadPattern</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-R">R</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-ReplayMode"><code>ReplayMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ReplicationMode"><code>ReplicationMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ReplicationStatus"><code>ReplicationStatus</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerOfDpaFlow"><code>RockerOfDpaFlow</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerOfDpaFlowAction"><code>RockerOfDpaFlowAction</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerOfDpaFlowKey"><code>RockerOfDpaFlowKey</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerOfDpaFlowMask"><code>RockerOfDpaFlowMask</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerOfDpaGroup"><code>RockerOfDpaGroup</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerPort"><code>RockerPort</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerPortAutoneg"><code>RockerPortAutoneg</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerPortDuplex"><code>RockerPortDuplex</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RockerSwitch"><code>RockerSwitch</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RunState"><code>RunState</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RxFilterInfo"><code>RxFilterInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-RxState"><code>RxState</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-S">S</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfo"><code>SchemaInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoAlternate"><code>SchemaInfoAlternate</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoAlternateMember"><code>SchemaInfoAlternateMember</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoArray"><code>SchemaInfoArray</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoBuiltin"><code>SchemaInfoBuiltin</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoCommand"><code>SchemaInfoCommand</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoEnum"><code>SchemaInfoEnum</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoEvent"><code>SchemaInfoEvent</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoObject"><code>SchemaInfoObject</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoObjectMember"><code>SchemaInfoObjectMember</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaInfoObjectVariant"><code>SchemaInfoObjectVariant</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SchemaMetaType"><code>SchemaMetaType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SnapshotInfo"><code>SnapshotInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SocketAddress"><code>SocketAddress</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SocketAddressLegacy"><code>SocketAddressLegacy</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SocketAddressType"><code>SocketAddressType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SpiceBasicInfo"><code>SpiceBasicInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SpiceChannel"><code>SpiceChannel</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SpiceInfo"><code>SpiceInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SpiceQueryMouseMode"><code>SpiceQueryMouseMode</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-SpiceServerInfo"><code>SpiceServerInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-StatusInfo"><code>StatusInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-String"><code>String</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-StrOrNull"><code>StrOrNull</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-T">T</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-TargetInfo"><code>TargetInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ThrottleLimits"><code>ThrottleLimits</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TPMEmulatorOptions"><code>TPMEmulatorOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TPMInfo"><code>TPMInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TpmModel"><code>TpmModel</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TPMPassthroughOptions"><code>TPMPassthroughOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TpmType"><code>TpmType</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TpmTypeOptions"><code>TpmTypeOptions</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TraceEventInfo"><code>TraceEventInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TraceEventState"><code>TraceEventState</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TransactionAction"><code>TransactionAction</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-TransactionProperties"><code>TransactionProperties</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-U">U</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-UnixSocketAddress"><code>UnixSocketAddress</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-UuidInfo"><code>UuidInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-V">V</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-VersionInfo"><code>VersionInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VersionTriple"><code>VersionTriple</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VncBasicInfo"><code>VncBasicInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VncClientInfo"><code>VncClientInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VncInfo"><code>VncInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VncInfo2"><code>VncInfo2</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VncPrimaryAuth"><code>VncPrimaryAuth</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VncServerInfo"><code>VncServerInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VncServerInfo2"><code>VncServerInfo2</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VncVencryptSubAuth"><code>VncVencryptSubAuth</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-VsockSocketAddress"><code>VsockSocketAddress</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-W">W</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-WatchdogAction"><code>WatchdogAction</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Data-Types-Index_tp_letter-X">X</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-X86CPUFeatureWordInfo"><code>X86CPUFeatureWordInfo</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-X86CPURegister32"><code>X86CPURegister32</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-XBZRLECacheStats"><code>XBZRLECacheStats</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#API-Reference">API Reference</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
</table>
<table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Data-Types-Index_tp_letter-A"><b>A</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-B"><b>B</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-C"><b>C</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-D"><b>D</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-E"><b>E</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-F"><b>F</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-G"><b>G</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-H"><b>H</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-I"><b>I</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-J"><b>J</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-K"><b>K</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-L"><b>L</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-M"><b>M</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-N"><b>N</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-O"><b>O</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-P"><b>P</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-Q"><b>Q</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-R"><b>R</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-S"><b>S</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-T"><b>T</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-U"><b>U</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-V"><b>V</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-W"><b>W</b></a>
 &nbsp; 
<a class="summary-letter" href="#Data-Types-Index_tp_letter-X"><b>X</b></a>
 &nbsp; 
</td></tr></table>

<hr>



</body>
</html>

Zerion Mini Shell 1.0