• E
    domain_conf: split source data out from ChrDef · 98334e7c
    Eric Blake 提交于
    This opens up the possibility of reusing the smaller ChrSourceDef
    for both qemu monitor and a passthrough smartcard device.
    
    * src/conf/domain_conf.h (_virDomainChrDef): Factor host
    details...
    (_virDomainChrSourceDef): ...into new struct.
    (virDomainChrSourceDefFree): New prototype.
    * src/conf/domain_conf.c (virDomainChrDefFree)
    (virDomainChrDefParseXML, virDomainChrDefFormat): Split...
    (virDomainChrSourceDefClear, virDomainChrSourceDefFree)
    (virDomainChrSourceDefParseXML, virDomainChrSourceDefFormat):
    ...into new functions.
    (virDomainChrDefParseTargetXML): Update clients to reflect type
    split.
    * src/vmx/vmx.c (virVMXParseSerial, virVMXParseParallel)
    (virVMXFormatSerial, virVMXFormatParallel): Likewise.
    * src/xen/xen_driver.c (xenUnifiedDomainOpenConsole): Likewise.
    * src/xen/xend_internal.c (xenDaemonParseSxprChar)
    (xenDaemonFormatSxprChr): Likewise.
    * src/vbox/vbox_tmpl.c (vboxDomainDumpXML, vboxAttachSerial)
    (vboxAttachParallel): Likewise.
    * src/security/security_dac.c (virSecurityDACSetChardevLabel)
    (virSecurityDACSetChardevCallback)
    (virSecurityDACRestoreChardevLabel)
    (virSecurityDACRestoreChardevCallback): Likewise.
    * src/security/security_selinux.c (SELinuxSetSecurityChardevLabel)
    (SELinuxSetSecurityChardevCallback)
    (SELinuxRestoreSecurityChardevLabel)
    (SELinuxSetSecurityChardevCallback): Likewise.
    * src/security/virt-aa-helper.c (get_files): Likewise.
    * src/lxc/lxc_driver.c (lxcVmStart, lxcDomainOpenConsole):
    Likewise.
    * src/uml/uml_conf.c (umlBuildCommandLineChr): Likewise.
    * src/uml/uml_driver.c (umlIdentifyOneChrPTY, umlIdentifyChrPTY)
    (umlDomainOpenConsole): Likewise.
    * src/qemu/qemu_command.c (qemuBuildChrChardevStr)
    (qemuBuildChrArgStr, qemuBuildCommandLine)
    (qemuParseCommandLineChr): Likewise.
    * src/qemu/qemu_domain.c (qemuDomainObjPrivateXMLFormat)
    (qemuDomainObjPrivateXMLParse): Likewise.
    * src/qemu/qemu_cgroup.c (qemuSetupChardevCgroup): Likewise.
    * src/qemu/qemu_hotplug.c (qemuDomainAttachNetDevice): Likewise.
    * src/qemu/qemu_driver.c (qemudFindCharDevicePTYsMonitor)
    (qemudFindCharDevicePTYs, qemuPrepareChardevDevice)
    (qemuPrepareMonitorChr, qemudShutdownVMDaemon)
    (qemuDomainOpenConsole): Likewise.
    * src/qemu/qemu_command.h (qemuBuildChrChardevStr)
    (qemuBuildChrArgStr): Delete, now that they are static.
    * src/libvirt_private.syms (domain_conf.h): New exports.
    * cfg.mk (useless_free_options): Update list.
    * tests/qemuxml2argvtest.c (testCompareXMLToArgvFiles): Update
    tests.
    98334e7c
security_dac.c 19.7 KB