]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu, libxl, hypervisor: use virDomainDriverNodeDeviceReAttach() helper
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Sat, 30 Jan 2021 16:40:35 +0000 (13:40 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 17 Feb 2021 18:52:50 +0000 (15:52 -0300)
commit23cdab6a3de0f6336505adcb446f77a6e0628e6b
tree1b62d7bcda48685efeee3be0180122e6e398aa85
parent89450b5e73dfc2cb7999e07127c5592401b90ee4
qemu, libxl, hypervisor: use virDomainDriverNodeDeviceReAttach() helper

libxlNodeDeviceReAttach() and qemuNodeDeviceReAttach() are mostly equal,
differing only how the virHostdevManager pointer is retrieved.

Put the common code into virDomainDriverNodeDeviceReAttach() to reduce
code duplication.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/hypervisor/domain_driver.c
src/hypervisor/domain_driver.h
src/libvirt_private.syms
src/libxl/libxl_driver.c
src/qemu/qemu_driver.c