[libvirt] [PATCH v3] domain.rng vs. formatdomain.html#elementsUSB

Philipp Hahn hahn at univention.de
Thu Mar 10 16:23:34 UTC 2011


Hello Daniel, hello Eric,

Ping?

Am Dienstag 01 März 2011 11:23:20 schrieb Philipp Hahn:
> The Relax-NG schema for domains regarding <hostdev> doesn't match what's
> implemented in src/conf/domain_conf.c#virDomainHostdevDefFormat(): The
> implementation only requires @type, but the schema currently either
> required none or all three attributes (@mode, @type, and @managed) to be
> defined together, because they are declared in the same
> <optional)-section. (@managed is currently even undocumented on
> <http://libvirt.org/formatdomain.html#elementsUSB>).
>
> Thus the following minimal <hostdev>-example fails to validate:
> <domain type='test'>
>         <name>N</name>
>         <memory>4096</memory>
>         <bootloader>/bin/false</bootloader>
>         <os>
>                 <type arch='x86_64' machine='xenpv'>linux</type>
>         </os>
>         <devices>
>                 <hostdev type='pci'>
>                         <source>
>                                 <address bus='0x06' slot='0x00'
> function='0x0'/> </source>
>                 </hostdev>
>         </devices>
> </domain>
>
> The schema is changed to match the current implementation:
> 1. @mode is optional (which defaults to 'subsystem')
> 2. @type is required
> 3. @managed is optional (which defaults to 'no')
>
> The documnetation is updated to mention @managed.

What some more changes or how may I improve my contrinbution?

Sincerely
Philipp
-- 
Philipp Hahn           Open Source Software Engineer      hahn at univention.de
Univention GmbH        Linux for Your Business        fon: +49 421 22 232- 0
Mary-Somerville-Str.1  28359 Bremen                   fax: +49 421 22 232-99
                                                   http://www.univention.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110310/adaeda93/attachment-0001.sig>


More information about the libvir-list mailing list