diff options
author | 2012-08-21 17:18:32 +0800 | |
---|---|---|
committer | 2012-08-22 15:51:23 +0800 | |
commit | 19630db3e328f114e179cf52b5158981b1be0abb (patch) | |
tree | a857a147532747431b019b3eb3e288e675fb8980 /docs | |
parent | Change virDomainVcpuPinDefParseXML to support parsing emulatorpin (diff) | |
download | libvirt-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.in | 9 | ||||
-rw-r--r-- | docs/schemas/domaincommon.rng | 7 |
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 @@ <vcpupin vcpu="1" cpuset="0,1"/> <vcpupin vcpu="2" cpuset="2,3"/> <vcpupin vcpu="3" cpuset="0,4"/> + <emulatorpin cpuset="1-3"/%gt; <shares>2048</shares> <period>1000000</period> <quota>-1</quota> @@ -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> |