[libvirt] [PATCH v3 2/3]doc: add NVRAM device

Li Zhang zhlcindy at gmail.com
Fri Mar 29 05:54:38 UTC 2013


Any more comment?

Thanks.

On 2013年03月27日 13:07, Li Zhang wrote:
> From: Li Zhang <zhlcindy at linux.vnet.ibm.com>
>
> This patch is to add NVRAM docs in formatdomain.html.in
> and domaincommon.rng
>
> Signed-off-by: Li Zhang <zhlcindy at linux.vnet.ibm.com>
> ---
>   docs/formatdomain.html.in     |   35 +++++++++++++++++++++++++++++++++++
>   docs/schemas/domaincommon.rng |   10 ++++++++++
>   2 files changed, 45 insertions(+)
>
> diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
> index 8a3c3b7..35f9c9b 100644
> --- a/docs/formatdomain.html.in
> +++ b/docs/formatdomain.html.in
> @@ -4365,6 +4365,41 @@ qemu-kvm -net nic,model=? /dev/null
>   
>       </dl>
>   
> +    <h4><a name="elementsNVRAM">NVRAM device</a></h4>
> +    <p>
> +      One NVRAM device is always added to pSeries guests on PPC64.
> +      And on PPC64, NVRAM devices' address type are VIO which
> +      allows users to change.<code>nvram</code> element in XML file
> +      is provided to specify its address.
> +      Currently, libvirt only considers configuration for pSeries guests.
> +    </p>
> +    <p>
> +      Example: usage of NVRAM configuration
> +    </p>
> +<pre>
> +  ...
> +  <devices>
> +    <nvram>
> +      <address type='spapr-vio' reg='0x3000'/>
> +    </nvram>
> +  </devices>
> +  ...
> +</pre>
> +  <dl>
> +    <dt><code>spapr-vio</code></dt>
> +    <dd>
> +      <p>
> +        VIO device address type, this is only for PPC64.
> +      </p>
> +    </dd>
> +    <dt><code>reg</code></dt>
> +    <dd>
> +      <p>
> +        Devices' address
> +      </p>
> +    </dd>
> +  </dl>
> +
>       <h3><a name="seclabel">Security label</a></h3>
>   
>       <p>
> diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
> index 9792065..3769d39 100644
> --- a/docs/schemas/domaincommon.rng
> +++ b/docs/schemas/domaincommon.rng
> @@ -2705,6 +2705,13 @@
>         </optional>
>       </element>
>     </define>
> +  <define name="nvram">
> +    <element name="nvram">
> +      <optional>
> +        <ref name="address"/>
> +      </optional>
> +    </element>
> +  </define>
>     <define name="memballoon">
>       <element name="memballoon">
>         <attribute name="model">
> @@ -3135,6 +3142,9 @@
>           <optional>
>             <ref name="memballoon"/>
>           </optional>
> +        <optional>
> +          <ref name="nvram"/>
> +        </optional>
>         </interleave>
>       </element>
>     </define>




More information about the libvir-list mailing list