]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Pass oldDev to virDomainDefCompatibleDevice on device update
authorJiri Denemark <jdenemar@redhat.com>
Thu, 22 Feb 2018 12:30:27 +0000 (13:30 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 23 Feb 2018 10:52:44 +0000 (11:52 +0100)
commitb6a264e8550d4add3946ec2fd9ae31a76fbf16fe
tree6373aadddecae769323af589d5bf41d2fb2ecfcc
parente3497f3fc895c427ce35188f3ddb2bb47a853be9
Pass oldDev to virDomainDefCompatibleDevice on device update

When calling virDomainDefCompatibleDevice to check a new device during
device update, we need to pass the original device which is going to be
updated in addition to the new device. Otherwise, the function can
report false conflicts.

The new argument is currently ignored by virDomainDefCompatibleDevice,
but this will change in the following patch.

https://bugzilla.redhat.com/show_bug.cgi?id=1546971

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c