• M
    qemu: Don't parse device twice in attach/detach · 1e0534a7
    Michal Privoznik 提交于
    Some members are generated during XML parse (e.g. MAC address of
    an interface); However, with current implementation, if we
    are plugging a device both to persistent and live config,
    we parse given XML twice: first time for live, second for config.
    This is wrong then as the second time we are not guaranteed
    to generate same values as we did for the first time.
    To prevent that we need to create a copy of DeviceDefPtr;
    This is done through format/parse process instead of writing
    functions for deep copy as it is easier to maintain:
    adding new field to any virDomain*DefPtr doesn't require change
    of copying function.
    1e0534a7
libvirt_private.syms 32.0 KB