aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2019-05-06 19:17:56 +0200
committerKevin Wolf <kwolf@redhat.com>2019-05-20 17:08:56 +0200
commit5d2318499fe980542fbc21d9ccbc127a6106017b (patch)
treeb69b4502f4d658bee21e7642c451eda22e15297a /linux-user
parent25349e8250e67e7d126fbf0ad213811b62e7e529 (diff)
downloadqemu-5d2318499fe980542fbc21d9ccbc127a6106017b.zip
qemu-5d2318499fe980542fbc21d9ccbc127a6106017b.tar.gz
qemu-5d2318499fe980542fbc21d9ccbc127a6106017b.tar.bz2
block: Add bdrv_try_set_aio_context()
Eventually, we want to make sure that all parents and all children of a node are in the same AioContext as the node itself. This means that changing the AioContext may fail because one of the other involved parties (e.g. a guest device that was configured with an iothread) cannot allow switching to a different AioContext. Introduce a set of functions that allow to first check whether all involved nodes can switch to a new context and only then do the actual switch. The check recursively covers children and parents. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions