qemu-e2k/include/qemu
Chrysostomos Nanakos 2f78e491d7 async: aio_context_new(): Handle event_notifier_init failure
On a system with a low limit of open files the initialization
of the event notifier could fail and QEMU exits without printing any
error information to the user.

The problem can be easily reproduced by enforcing a low limit of open
files and start QEMU with enough I/O threads to hit this limit.

The same problem raises, without the creation of I/O threads, while
QEMU initializes the main event loop by enforcing an even lower limit of
open files.

This commit adds an error message on failure:

 # qemu [...] -object iothread,id=iothread0 -object iothread,id=iothread1
 qemu: Failed to initialize event notifier: Too many open files in system

Signed-off-by: Chrysostomos Nanakos <cnanakos@grnet.gr>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-09-22 11:39:48 +01:00
..
acl.h
aes.h include/qemu/aes.h: Avoid conflicts with FreeBSD AES functions 2014-06-19 16:13:38 +01:00
atomic.h
bitmap.h
bitops.h bitops: provide an inline implementation of find_first_bit 2014-06-18 18:10:47 +02:00
bswap.h
compatfd.h
compiler.h
config-file.h
crc32c.h
envlist.h
error-report.h
event_notifier.h
fifo8.h
hbitmap.h
host-utils.h
int128.h
iov.h
log.h
main-loop.h async: aio_context_new(): Handle event_notifier_init failure 2014-09-22 11:39:48 +01:00
module.h
notify.h
option_int.h QemuOpts: change opt->name|str from (const char *) to (char *) 2014-06-16 17:23:20 +08:00
option.h QemuOpts: cleanup tmp 'allocated' member from QemuOptsList 2014-06-16 17:23:21 +08:00
osdep.h util: Move general qemu_getauxval to util/getauxval.c 2014-09-09 13:13:05 +02:00
queue.h
range.h Introduce signed range. 2014-06-19 18:44:19 +03:00
ratelimit.h
readline.h
rfifolock.h
seqlock.h
sockets.h qapi event: convert SPICE events 2014-06-23 11:12:28 -04:00
thread-posix.h
thread-win32.h
thread.h
throttle.h throttle: add throttle_detach/attach_aio_context() 2014-06-04 09:56:12 +02:00
timer.h cpu-exec: Add sleeping algorithm 2014-08-06 17:53:07 +02:00
tls.h
typedefs.h
uri.h
xattr.h