« Previous | Next » 

Revision 7d7d975c


Added by MORITA Kazutaka over 10 years ago

qemu-io: check registered fds in command_loop()

Some block drivers use an aio handler and do I/O completion routines
in it. However, the handler is not invoked if we only do
aio_read/write, because registered fds are not checked at all.

This patch registers an aio handler of STDIO to checks whether we can
read a command without blocking, and calls qemu_aio_wait() in
command_loop(). Any other handlers can be invoked when user input is

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences