]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: when leaving iotune group update xml properly
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Wed, 8 Jan 2020 06:49:31 +0000 (09:49 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 29 Jan 2020 10:47:01 +0000 (11:47 +0100)
commit93b66b3cbb15982b026c82cd58070dc57134fccc
tree2944b26f3b8f51cb93fbb2170e5dd25ab0f99f5c
parent57ac9f5eef6f7b6f4c92ab7fbdb4beaf6c6dbc20
qemu: when leaving iotune group update xml properly

Currently when disk is removed from iotune group (by setting
all tunables to zero) group name is leaved in config. Let's fix
it.

Given iotune defaults are taken from the destination group setting
tunables to zero may require different set of zero settings in API
call. Let's prohibit removing from group while specifying different
group name then current for the sanity sake.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c