Done with this commit in 0.9.9:
commit b43432931aef92325920953ff92beabfbe5224c8
Author: Eric Blake <email address hidden>
Date: Thu Dec 22 17:47:50 2011 -0700
seclabel: allow a seclabel override on a disk src
Implement the parsing and formatting of the XML addition of
the previous commit. The new XML doesn't affect qemu command
line, so we can now test round-trip XML->memory->XML handling.
I chose to reuse the existing structure, even though per-device
override doesn't use all of those fields, rather than create a
new structure, in order to reuse more code.
* src/conf/domain_conf.h (_virDomainDiskDef): Add seclabel member.
* src/conf/domain_conf.c (virDomainDiskDefFree): Free it.
(virSecurityLabelDefFree): New function.
(virDomainDiskDefFormat): Print it.
(virSecurityLabelDefFormat): Reduce output if model not present.
(virDomainDiskDefParseXML): Alter signature, and parse seclabel.
(virSecurityLabelDefParseXML): Split...
(virSecurityLabelDefParseXMLHelper): ...into new helper.
(virDomainDeviceDefParse, virDomainDefParseXML): Update callers.
* tests/qemuxml2argvdata/qemuxml2argv-seclabel-dynamic-override.args:
New file.
* tests/qemuxml2xmltest.c (mymain): Enhance test.
* tests/qemuxml2argvtest.c (mymain): Likewise.
Done with this commit in 0.9.9: 25920953ff92bea bfbe5224c8
commit b43432931aef923
Author: Eric Blake <email address hidden>
Date: Thu Dec 22 17:47:50 2011 -0700
seclabel: allow a seclabel override on a disk src
Implement the parsing and formatting of the XML addition of
the previous commit. The new XML doesn't affect qemu command
line, so we can now test round-trip XML->memory->XML handling.
I chose to reuse the existing structure, even though per-device
override doesn't use all of those fields, rather than create a
new structure, in order to reuse more code.
* src/conf/ domain_ conf.h (_virDomainDisk Def): Add seclabel member. domain_ conf.c (virDomainDiskD efFree) : Free it. yLabelDefFree) : New function. iskDefFormat) : Print it. yLabelDefFormat ): Reduce output if model not present. iskDefParseXML) : Alter signature, and parse seclabel. yLabelDefParseX ML): Split... yLabelDefParseX MLHelper) : ...into new helper. eviceDefParse, virDomainDefPar seXML): Update callers. rgvdata/ qemuxml2argv- seclabel- dynamic- override. args: mltest. c (mymain): Enhance test. rgvtest. c (mymain): Likewise.
* src/conf/
(virSecurit
(virDomainD
(virSecurit
(virDomainD
(virSecurit
(virSecurit
(virDomainD
* tests/qemuxml2a
New file.
* tests/qemuxml2x
* tests/qemuxml2a