libvirt/src/hypervisor
Daniel Henrique Barboza 8595948bc8 src/hypervisor: introduce domain_driver.c
lxcDomainMergeBlkioDevice() and qemuDomainMergeBlkioDevice()
are the same functions. This duplicated code can't be put in
the existing domain_cgroup.c since it's not cgroup related.

This patch introduces a new src/hypervisor/domain_driver.c to
host this more generic code that can be shared between virt
drivers. This new file is then used to create a new helper
called virDomainDeivceMergeBlkioDevice() to eliminate the code
repetition mentioned above. Callers in LXC and QEMU files
were updated.

This change is a preliminary step for more code reduction of
cgroup related code inside lxcDomainSetBlkioParameters() and
qemuDomainSetBlkioParameters().

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2020-02-23 14:02:23 +01:00
..
domain_cgroup.c
domain_cgroup.h
domain_driver.c src/hypervisor: introduce domain_driver.c 2020-02-23 14:02:23 +01:00
domain_driver.h src/hypervisor: introduce domain_driver.c 2020-02-23 14:02:23 +01:00
Makefile.inc.am src/hypervisor: introduce domain_driver.c 2020-02-23 14:02:23 +01:00