qemu-patch-raspberry4/include
Stefan Hajnoczi 98563fc3ec aio: add aio_context_acquire() and aio_context_release()
It can be useful to run an AioContext from a thread which normally does
not "own" the AioContext.  For example, request draining can be
implemented by acquiring the AioContext and looping aio_poll() until all
requests have been completed.

The following pattern should work:

  /* Event loop thread */
  while (running) {
      aio_context_acquire(ctx);
      aio_poll(ctx, true);
      aio_context_release(ctx);
  }

  /* Another thread */
  aio_context_acquire(ctx);
  bdrv_read(bs, 0x1000, buf, 1);
  aio_context_release(ctx);

This patch implements aio_context_acquire() and aio_context_release().

Note that existing aio_poll() callers do not need to worry about
acquiring and releasing - it is only needed when multiple threads will
call aio_poll() on the same AioContext.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-03-13 14:42:24 +01:00
..
block aio: add aio_context_acquire() and aio_context_release() 2014-03-13 14:42:24 +01:00
disas disas: Implement disassembly output for A64 2014-02-08 14:50:48 +00:00
exec target-arm queue: 2014-03-11 13:20:23 +00:00
fpu softfloat: Support halving the result of muladd operation 2014-02-20 10:35:50 +00:00
hw q35: Correct typo BRDIGE -> BRIDGE 2014-03-11 13:27:27 +02:00
migration Fix two XBZRLE corruption issues 2014-02-25 14:30:28 +01:00
monitor quorum: Add quorum mechanism. 2014-02-21 22:29:50 +01:00
net net: remove implicit peer from offload API 2014-02-25 14:31:05 +01:00
qapi qapi script: do not add "_" for every capitalized char in enum 2014-03-11 09:07:42 -04:00
qemu rfifolock: add recursive FIFO lock 2014-03-13 14:42:21 +01:00
qom object: add object_get_canonical_path_component() 2014-03-13 14:23:27 +01:00
sysemu kvm: Add a new machine option kvm-type 2014-03-05 03:06:24 +01:00
ui console: add QemuUIInfo 2014-03-05 09:52:04 +01:00
config.h
elf.h
glib-compat.h
qemu-common.h Block patches 2014-02-25 10:50:11 +00:00
qemu-io.h qemu-io: add command completion 2014-01-22 12:07:17 +01:00
trace.h