[libvirt] [PATCH] BlockPull: Set initial bandwidth limit if specified

Eric Blake eblake at redhat.com
Fri Sep 2 02:18:27 UTC 2011


On 09/01/2011 04:35 PM, Adam Litke wrote:
> The libvirt BlockPull API supports the use of an initial bandwidth limit but the
> qemu block_stream API does not.  To get the desired behavior we use the two APIs
> strung together: first BlockPull, then BlockJobSetSpeed.  We can do this at the
> driver level to avoid duplicated code in each monitor path.
>
> Signed-off-by: Adam Litke<agl at us.ibm.com>
> ---
>   src/qemu/qemu_driver.c       |    8 +++++++-
>   src/qemu/qemu_monitor_json.c |    4 ----
>   2 files changed, 7 insertions(+), 5 deletions(-)

ACK and pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list