[libvirt] [PATCH v3] docs: formatdomain: Document the CPU feature 'name' attribute

Kashyap Chamarthy kchamart at redhat.com
Thu Jan 25 09:09:01 UTC 2018


Currently, the CPU feature 'name' XML attribute, as in:

    [...]
    <cpu match='exact'>
      <model fallback='forbid'>IvyBridge</model>
      <vendor>Intel</vendor>
      <feature policy='require' name='pcid'/>
    </cpu>
    [...]

isn't explicitly documented in formatdomain.html.

Document it now.

Signed-off-by: Kashyap Chamarthy <kchamart at redhat.com>
---
v3:
 - Wrap text in paragraph; fix phrasing [John Ferlan]
v2:
 - Remove redundant line [Eduardo Habkost]

 docs/formatdomain.html.in | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index d272cc1ba..fc0885420 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -1454,6 +1454,21 @@
 
         <span class="since">Since 0.8.5</span> the <code>policy</code>
         attribute can be omitted and will default to <code>require</code>.
+
+        <p> Individual CPU feature names are specified as part of the
+        <code>name</code> attribute. For example, to explicitly specify
+        the 'pcid' feature with Intel IvyBridge CPU model:
+        </p>
+
+<pre>
+...
+<cpu match='exact'>
+  <model fallback='forbid'>IvyBridge</model>
+  <vendor>Intel</vendor>
+  <feature policy='require' name='pcid'/>
+</cpu>
+...</pre>
+
       </dd>
 
       <dt><code>cache</code></dt>
-- 
2.13.6




More information about the libvir-list mailing list