From 85d126f3ee666702ac514c66606c62d276c4341c Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 7 Mar 2013 13:41:48 +0100 Subject: block: add bdrv_get_aio_context() For now bdrv_get_aio_context() is just a stub that calls qemu_aio_get_context() since the block layer is currently tied to the main loop AioContext. Add the stub now so that the block layer can begin accessing its AioContext. Signed-off-by: Stefan Hajnoczi Reviewed-by: Paolo Bonzini --- block.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'block.c') diff --git a/block.c b/block.c index 0ab164d992..037e15e065 100644 --- a/block.c +++ b/block.c @@ -4681,3 +4681,9 @@ out: bdrv_delete(bs); } } + +AioContext *bdrv_get_aio_context(BlockDriverState *bs) +{ + /* Currently BlockDriverState always uses the main loop AioContext */ + return qemu_get_aio_context(); +} -- cgit v1.2.1