Convert code *DomainUpdateDeviceFlags/*DomainDetachDeviceLiveAndConfig
to avoid use of virDomainDeviceDefCopy. We have the original XML string
from the user so it doesn't make sense to parse it and then copy it
(whcih involves formatting and parsing back), when we can simply parse
it twice, saving the extra formatting step.

Peter Krempa (7):
  qemu: driver: Fix formatting of function headers around
    qemuDomainAttachDevice
  qemuDomainUpdateDeviceFlags: Parse XML twice rather than use
    virDomainDeviceDefCopy
  qemuDomainDetachDeviceLiveAndConfig: Parse XML twice rather than use
    virDomainDeviceDefCopy
  qemuDomainDetachDeviceLiveAndConfig: Refactor cleanup
  lxcDomainAttachDeviceFlags: Parse XML twice rather than use
    virDomainDeviceDefCopy
  lxcDomainDetachDeviceFlags: Parse XML twice rather than use
    virDomainDeviceDefCopy
  conf: domain: Remove virDomainDeviceDefCopy

 src/conf/domain_conf.c   | 121 ---------------------------------------
 src/conf/domain_conf.h   |   4 --
 src/libvirt_private.syms |   1 -
 src/lxc/lxc_driver.c     |  75 ++++++++++--------------
 src/qemu/qemu_driver.c   |  97 +++++++++++++------------------
 5 files changed, 70 insertions(+), 228 deletions(-)

-- 
2.37.3

Reply via email to