[libvirt] [PATCH] conf: Mark missing optional USB devices in domain XML

Eric Blake eblake at redhat.com
Thu Oct 11 22:40:11 UTC 2012


On 10/11/2012 02:56 PM, Jiri Denemark wrote:
> When startupPolicy set for a USB devices allows such device to be
> missing, there was no way this could be detected from domain XML. With
> this patch, libvirt emits a new missing='yes' attribute for such devices
> when active domain XML is generated.
> ---
>  docs/schemas/domaincommon.rng | 8 ++++++++
>  src/conf/domain_conf.c        | 5 +++++
>  2 files changed, 13 insertions(+)

ACK.

> 
> diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
> index b142716..70bc0e2 100644
> --- a/docs/schemas/domaincommon.rng
> +++ b/docs/schemas/domaincommon.rng
> @@ -1654,6 +1654,14 @@
>            </optional>
>            <interleave>
>              <element name="source">
> +              <optional>
> +                <attribute name="missing">
> +                  <choice>
> +                    <value>yes</value>
> +                    <value>no</value>

It's a bit odd to see a choice for missing='no', given that we never
output it, and that we ignore it during input, but it doesn't hurt.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121011/bfc59bc3/attachment-0001.sig>


More information about the libvir-list mailing list