]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainDetachDeviceLiveAndConfig: Parse XML twice rather than use virDomainDeviceD...
authorPeter Krempa <pkrempa@redhat.com>
Tue, 22 Nov 2022 16:01:31 +0000 (17:01 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Dec 2022 11:03:11 +0000 (12:03 +0100)
commit333fb6714effb3bd7c06274c2a41b6d1c4ee0897
tree134e7d17fcb15c3517aa0c740aecb33854515875
parent645afd640c3dc1e1dc50cde0a5e008b4b4f2ea7c
qemuDomainDetachDeviceLiveAndConfig: Parse XML twice rather than use virDomainDeviceDefCopy

'virDomainDeviceDefCopy' formats the definition and parses it back.
Since we already are parsing the XML here, we're better off parsing it
twice and save the formatting step.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c