Stefan Hajnoczi 13af91ebf0 throttle: add throttle_detach/attach_aio_context()
Block I/O throttling uses timers and currently always adds them to the
main loop.  Throttling will break if bdrv_set_aio_context() is used to
move a BlockDriverState to a different AioContext.

This patch adds throttle_detach/attach_aio_context() interfaces so the
throttling timers and uses them to move timers to the new AioContext.
Note that bdrv_set_aio_context() already drains all requests so we're
sure no throttled requests are pending.

The test cases need to be updated since the throttle_init() interface
has changed.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
2014-06-04 09:56:12 +02:00
2014-05-28 14:28:46 +02:00
2014-05-20 13:05:58 +02:00
2014-06-02 16:49:00 +02:00
2014-05-09 09:11:31 -04:00
2014-05-19 11:36:48 +02:00
2014-06-02 16:49:00 +02:00
2014-04-25 09:19:58 -04:00
2014-06-02 16:10:12 +01:00
2014-05-27 22:45:03 +01:00
2014-05-20 11:57:52 +01:00
2014-05-24 00:07:29 +04:00
2014-05-28 17:36:21 +02:00
2014-04-18 10:33:36 +04:00
2014-05-28 14:28:46 +02:00
2014-05-24 00:07:29 +04:00
2014-05-28 17:36:21 +02:00
2014-05-09 22:59:40 +02:00
2014-06-02 17:07:21 +01:00
2014-04-17 20:39:32 +01:00
2014-05-07 16:16:43 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%