From: Miloslav Trmač Date: Tue, 21 Jul 2009 05:23:03 +0000 (+0200) Subject: Attach encryption information to virDomainDiskDef. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f340964dc9b81ea0ff0f4f315afe070b47fb1d87;p=libvirt.git Attach encryption information to virDomainDiskDef. The XML allows , this implementation canonicalizes the internal representation so that "disk->encryption" is non-NULL iff encryption information is available. A domain with partial encryption information can be defined, completeness of the information is not verified. The domain won't start until the remaining information is added, of course. * docs/formatdomain.html, docs/formatdomain.html.in: Document new encryption options for disks * docs/schemas/domain.rng: Pull in storage encryption schema rules * src/domain_conf.h, src/domain_conf.c: Wire up storage encryption XML parsing/formatting APIs --- diff --git a/docs/formatdomain.html b/docs/formatdomain.html index efba65a3f1..3368ad5004 100644 --- a/docs/formatdomain.html +++ b/docs/formatdomain.html @@ -453,6 +453,9 @@ <driver name="tap" type="aio"> <source file='/var/lib/xen/images/fv0'/> <target dev='hda' bus='ide'/> + <encryption type='...'> + ... + </encryption> </disk> ...
disk
The disk element is the main container for describing @@ -478,6 +481,9 @@ driver element allows them to be selected. The name attribute is the primary backend driver name, while the optional type attribute provides the sub-type. Since 0.1.8 +
encryption
If present, specifies how the volume is encrypted. See + the Storage Encryption page + for more information.

USB and PCI devices diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index eb1278413d..211f7edb5d 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -338,6 +338,9 @@ <driver name="tap" type="aio"> <source file='/var/lib/xen/images/fv0'/> <target dev='hda' bus='ide'/> + <encryption type='...'> + ... + </encryption> </disk> ... @@ -373,6 +376,11 @@ attribute is the primary backend driver name, while the optional type attribute provides the sub-type. Since 0.1.8 +
encryption
+
If present, specifies how the volume is encrypted. See + the Storage Encryption page + for more information. +

USB and PCI devices

diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng index f8573011a7..df31f4a873 100644 --- a/docs/schemas/domain.rng +++ b/docs/schemas/domain.rng @@ -4,6 +4,8 @@ + + @@ -336,6 +338,9 @@ + + +