aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2012-08-21 17:18:32 +0800
committerDaniel Veillard <veillard@redhat.com>2012-08-22 15:51:23 +0800
commit19630db3e328f114e179cf52b5158981b1be0abb (patch)
treea857a147532747431b019b3eb3e288e675fb8980 /docs
parentChange virDomainVcpuPinDefParseXML to support parsing emulatorpin (diff)
downloadlibvirt-19630db3e328f114e179cf52b5158981b1be0abb.tar.gz
libvirt-19630db3e328f114e179cf52b5158981b1be0abb.tar.bz2
libvirt-19630db3e328f114e179cf52b5158981b1be0abb.zip
Support emulatorpin xml parse.
This patch adds a new xml element <emulatorpin>, which is a sibling to the existing <vcpupin> element under the <cputune>, to pin emulator threads to specified physical CPUs. Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/formatdomain.html.in9
-rw-r--r--docs/schemas/domaincommon.rng7
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index d87ca6b7f..42df928a3 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -384,6 +384,7 @@
&lt;vcpupin vcpu="1" cpuset="0,1"/&gt;
&lt;vcpupin vcpu="2" cpuset="2,3"/&gt;
&lt;vcpupin vcpu="3" cpuset="0,4"/&gt;
+ &lt;emulatorpin cpuset="1-3"/%gt;
&lt;shares&gt;2048&lt;/shares&gt;
&lt;period&gt;1000000&lt;/period&gt;
&lt;quota&gt;-1&lt;/quota&gt;
@@ -410,6 +411,14 @@
of element <code>vcpu</code>. (NB: Only qemu driver support)
<span class="since">Since 0.9.0</span>
</dd>
+ <dt><code>emulatorpin</code></dt>
+ <dd>
+ The optional <code>emulatorpin</code> element specifies which of host
+ physical CPUs the "emulator", a subset of a domain not including vcpu,
+ will be pinned to. If this is ommitted, "emulator" is pinned to all
+ the physical CPUs by default. It contains one required attribute
+ <code>cpuset</code> specifying which physical CPUs to pin to.
+ </dd>
<dt><code>shares</code></dt>
<dd>
The optional <code>shares</code> element specifies the proportional
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 8a1782ac7..f4005c51e 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -591,6 +591,13 @@
</attribute>
</element>
</zeroOrMore>
+ <optional>
+ <element name="emulatorpin">
+ <attribute name="cpuset">
+ <ref name="cpuset"/>
+ </attribute>
+ </element>
+ </optional>
</element>
</optional>