summary refs log tree commit diff stats
path: root/main-loop.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-27 08:52:42 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-27 08:52:42 -0600
commitebdfc3c83cef33f8f619ffcb57d297c6063db59d (patch)
treeaf4c54a676ecc8b9c6bae7370a27261b640a247c /main-loop.h
parenta0fa82085e175bf8ce6d69a3f83695f81af2a649 (diff)
parent44f76b289a33399abedfbca2d92d21d910792264 (diff)
downloadfocaccia-qemu-ebdfc3c83cef33f8f619ffcb57d297c6063db59d.tar.gz
focaccia-qemu-ebdfc3c83cef33f8f619ffcb57d297c6063db59d.zip
Merge remote-tracking branch 'bonzini/nbd-for-anthony' into staging
* bonzini/nbd-for-anthony: (26 commits)
  nbd: add myself as maintainer
  qemu-nbd: throttle requests
  qemu-nbd: asynchronous operation
  qemu-nbd: add client pointer to NBDRequest
  qemu-nbd: move client handling to nbd.c
  qemu-nbd: use common main loop
  link the main loop and its dependencies into the tools
  qemu-nbd: introduce NBDRequest
  qemu-nbd: introduce NBDExport
  qemu-nbd: introduce nbd_do_receive_request
  qemu-nbd: more robust handling of invalid requests
  qemu-nbd: introduce nbd_do_send_reply
  qemu-nbd: simplify nbd_trip
  move corking functions to osdep.c
  qemu-nbd: remove data_size argument to nbd_trip
  qemu-nbd: remove offset argument to nbd_trip
  Update ioctl order in nbd_init() to detect EBUSY
  nbd: add support for NBD_CMD_TRIM
  nbd: add support for NBD_CMD_FLUSH
  nbd: add support for NBD_CMD_FLAG_FUA
  ...
Diffstat (limited to 'main-loop.h')
-rw-r--r--main-loop.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/main-loop.h b/main-loop.h
index 876092dd15..f9710136c9 100644
--- a/main-loop.h
+++ b/main-loop.h
@@ -324,6 +324,9 @@ int qemu_add_child_watch(pid_t pid);
  * by threads other than the main loop thread when calling
  * qemu_bh_new(), qemu_set_fd_handler() and basically all other
  * functions documented in this file.
+ *
+ * NOTE: tools currently are single-threaded and qemu_mutex_lock_iothread
+ * is a no-op there.
  */
 void qemu_mutex_lock_iothread(void);
 
@@ -336,6 +339,9 @@ void qemu_mutex_lock_iothread(void);
  * as soon as possible by threads other than the main loop thread,
  * because it prevents the main loop from processing callbacks,
  * including timers and bottom halves.
+ *
+ * NOTE: tools currently are single-threaded and qemu_mutex_unlock_iothread
+ * is a no-op there.
  */
 void qemu_mutex_unlock_iothread(void);