qemu-e2k/util
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
..
acl.c
aes.c
bitmap.c
bitops.c
cache-utils.c
compatfd.c
crc32c.c
cutils.c cutils: tighten qemu_parse_fd() 2014-05-08 14:19:58 -04:00
envlist.c
error.c error: error_is_set() is finally unused; remove 2014-05-21 11:57:58 +02:00
event_notifier-posix.c
event_notifier-win32.c
fifo8.c savevm: Remove all the unneeded version_minimum_id_old (arm) 2014-05-13 16:09:35 +01:00
getauxval.c
hbitmap.c
hexdump.c
host-utils.c
iov.c util: add qemu_iovec_is_zero 2014-05-19 12:20:19 +02:00
Makefile.objs
module.c util: Add 'static' attribute to function implementation 2014-03-27 19:22:48 +04:00
notify.c
osdep.c do not call g_thread_init() for glib >= 2.31 2014-05-07 21:00:43 +04:00
oslib-posix.c
oslib-win32.c glib: fix g_poll early timeout on windows 2014-05-09 20:57:35 +02:00
path.c init_paths: fix minor memory leak 2014-04-28 08:55:32 +04:00
qemu-config.c trivial patches for 2014-04-28 2014-04-28 13:43:17 +01:00
qemu-error.c error: Print error_report() to stderr if using qmp 2014-04-25 09:19:58 -04:00
qemu-openpty.c
qemu-option.c qemu-option: Clean up fragile use of error_is_set() 2014-05-09 09:11:31 -04:00
qemu-progress.c
qemu-sockets.c qemu-socket: Clean up inet_connect_opts() 2014-05-21 11:57:57 +02:00
qemu-thread-posix.c Detect pthread_setname_np at configure time 2014-03-27 17:48:11 +02:00
qemu-thread-win32.c Detect pthread_setname_np at configure time 2014-03-27 17:48:11 +02:00
qemu-timer-common.c
readline.c readline: Sort completions before printing them. 2014-05-07 21:00:44 +04:00
rfifolock.c
throttle.c throttle: add throttle_detach/attach_aio_context() 2014-06-04 09:56:12 +02:00
unicode.c
uri.c