qemu-e2k/include/qemu
Fam Zheng e26110cfc6 module: implement module loading
This patch adds loading, stamp checking and initialization of modules.

The init function of dynamic module is no longer directly called as
__attribute__((constructor)) in static linked version, it is called
only after passed the checking of presense of stamp symbol:

    qemu_stamp_$RELEASEHASH

where $RELEASEHASH is generated by hashing version strings and content
of configure script.

With this, modules built from a different tree/version/configure will
not be loaded.

The module loading code requires gmodule-2.0.

Modules are searched under
 - CONFIG_MODDIR
 - executable folder (to allow running qemu-{img,io} in the build
   directory)
 - ../ of executable folder (to allow running system emulator in the
   build directory)

Modules are linked under their subdir respectively, then copied to top
level of build directory for above convinience, e.g.:
    $(BUILD_DIR)/block/curl.so -> $(BUILD_DIR)/block-curl.so

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-02-20 13:14:18 +01:00
..
acl.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
aes.h aes: make Td[0-5] and Te[0-5] tables non static 2013-04-13 13:51:57 +02:00
atomic.h atomic.h: Fix build with clang 2013-11-21 08:01:06 -08:00
bitmap.h bitmap: Add bitmap_zero_extend operation 2014-01-13 14:04:54 +01:00
bitops.h bitmap: use long as index 2014-01-13 14:04:53 +01:00
bswap.h bswap.h: Remove cpu_to_32wu() 2013-11-05 19:57:47 -08:00
cache-utils.h util: Use qemu_getauxval in linux qemu_cache_utils_init 2013-11-30 07:45:30 +13:00
compatfd.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
compiler.h audio: Replace static functions in header file by macros, remove GCC_ATTR 2013-06-21 22:52:50 +04:00
config-file.h qemu-option: Add qemu_config_parse_qdict() 2014-01-22 12:07:17 +01:00
crc32c.h qemu: add castagnoli crc32c checksum algorithm 2013-05-03 10:31:58 +02:00
envlist.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
error-report.h add timestamp to error_report() 2013-07-10 13:42:09 -04:00
event_notifier.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
fifo8.h util/fifo8: implement push/pop of multiple bytes 2014-02-08 14:50:48 +00:00
hbitmap.h hbitmap: Use non-bitops ctzl 2013-02-16 11:11:34 +00:00
host-utils.h host-utils: add clrsb32/64 - count leading redundant sign bits 2013-12-17 20:12:51 +00:00
int128.h int128: optimize and add test cases 2013-07-02 08:17:01 +02:00
iov.h iov: add iov_discard_front/back() to remove data 2013-01-02 15:58:05 +01:00
log.h log: Change log_cpu_state[_mask]() argument to CPUState 2013-07-09 21:33:04 +02:00
main-loop.h main-loop: add qemu_get_aio_context() 2013-03-15 16:07:50 +01:00
module.h module: implement module loading 2014-02-20 13:14:18 +01:00
notify.h notify: add NotiferWithReturn so notifier list can abort 2013-06-28 09:20:26 +02:00
option.h qemu-option: Remove qemu_opts_create_nofail 2014-01-06 15:02:30 -05:00
option_int.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
osdep.h util: Split out exec_dir from os_find_datadir 2014-02-20 13:12:54 +01:00
queue.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
range.h range: add min/max operations on ranges 2013-09-15 11:49:50 +03:00
ratelimit.h aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
readline.h readline: Add missing GCC_FMT_ATTR 2014-02-01 13:46:06 +04:00
seqlock.h seqlock: introduce read-write seqlock 2013-10-17 17:24:15 +02:00
sockets.h util: add socket_set_fast_reuse function which will replace setting SO_REUSEADDR 2013-10-02 19:20:31 +02:00
thread-posix.h qemu-thread: add QemuEvent 2013-10-17 17:30:55 +02:00
thread-win32.h qemu-thread: add QemuEvent 2013-10-17 17:30:55 +02:00
thread.h qemu-thread: add QemuEvent 2013-10-17 17:30:55 +02:00
throttle.h throttle: Add a new throttling API implementing continuous leaky bucket. 2013-09-06 15:25:07 +02:00
timer.h Fix typo of tiemr in timer.h 2014-01-15 23:34:17 +04:00
tls.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
typedefs.h memory: Add MemoryListener to typedefs.h 2014-02-11 22:56:31 +10:00
uri.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
xattr.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00