]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Actually clear bandwidth settings
authorJianwei Hu <jiahu@redhat.com>
Mon, 11 Aug 2014 06:41:33 +0000 (14:41 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Aug 2014 09:56:58 +0000 (11:56 +0200)
commit337c6eec1b15ac409aaaaa5a93f493a0bfbb95d5
treeff851aa79606199bd7608fbe28d08f975f18e0a1
parent954538720dc576af08c95ed02858acb2975e9ed5
qemu: Actually clear bandwidth settings

The virDomainSetInterfaceParameters implementation in qemu over
VIR_DOMAIN_AFFECT_CONFIG doesn't work as expected. When trying to
clear out the bandwidth settings for an interface, it has no
actual effect:

    virsh # domiftune --config $domain $interface
    inbound.average: 100
    inbound.peak   : 0
    inbound.burst  : 0
    outbound.average: 10
    outbound.peak  : 0
    outbound.burst : 0

    virsh domiftune --config $domain $interface 0 0

    virsh # domiftune --config $domain $interface
    inbound.average: 100
    inbound.peak   : 0
    inbound.burst  : 0
    outbound.average: 10
    outbound.peak  : 0
    outbound.burst : 0

But according to virsh man page:

    To clear inbound or outbound settings, use --inbound or
    --outbound respectfully with average value of zero.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c