Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Find a file
Wenchao Xia 21cd70dfc1 qapi script: add event support
qapi-event.py will parse the schema and generate qapi-event.c, then
the API in qapi-event.c can be used to handle events in qemu code.
All API have prefix "qapi_event".

The script mainly includes two parts: generate API for each event
define, generate an enum type for all defined events.

Since in some cases the real emit behavior may change, for example,
qemu-img would not send a event, a callback layer is used to
control the behavior. As a result, the stubs at compile time
can be saved, the binding of block layer code and monitor code
will become looser.

Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2014-06-23 11:01:25 -04:00
audio
backends hostmem: add properties for NUMA memory policy 2014-06-19 18:44:21 +03:00
block sheepdog: fix NULL dereference in sd_create 2014-06-23 16:36:13 +08:00
bsd-user
default-configs
disas
docs qapi script: add event support 2014-06-23 11:01:25 -04:00
dtc@bc895d6d09
fpu fpu: softfloat: drop INLINE macro 2014-06-23 11:00:12 -04:00
fsdev
gdb-xml
hw audio: fmopl: drop INLINE macro 2014-06-23 11:01:24 -04:00
include qapi: add event helper functions 2014-06-23 11:01:25 -04:00
libcacard
libdecnumber
linux-headers
linux-user
net
pc-bios Update OpenBIOS images 2014-06-20 23:59:19 +01:00
pixman@97336fad32
po
qapi qapi: add event helper functions 2014-06-23 11:01:25 -04:00
qga
qobject json-lexer: fix escaped backslash in single-quoted string 2014-06-23 11:01:24 -04:00
qom qom: introduce object_property_get_enum and object_property_get_uint16List 2014-06-19 18:44:19 +03:00
roms Update OpenBIOS images 2014-06-20 23:59:19 +01:00
scripts qapi script: add event support 2014-06-23 11:01:25 -04:00
slirp
stubs Block pull request 2014-06-23 12:55:22 +01:00
sysconfigs/target
target-alpha
target-arm target-arm: Introduce per-CPU field for PSCI version 2014-06-19 18:33:04 +01:00
target-cris
target-i386
target-lm32 vl: allow other threads to do qemu_system_vmstop_request 2014-06-23 16:36:13 +08:00
target-m68k
target-microblaze
target-mips target-mips: copy CP0_Config1 into DisasContext 2014-06-20 22:14:13 +02:00
target-moxie
target-openrisc
target-ppc
target-s390x
target-sh4
target-sparc
target-unicore32
target-xtensa
tcg
tests qapi script: add event support 2014-06-23 11:01:25 -04:00
trace
ui vnc: cleanups and fixes 2014-06-20 16:57:28 +01:00
util QemuOpts: check NULL opts in qemu_opt_get functions 2014-06-21 16:40:14 +08:00
.exrc
.gitignore
.gitmodules
.mailmap
.travis.yml
aio-posix.c
aio-win32.c
arch_init.c
async.c
balloon.c
block-migration.c
block.c block: asynchronously stop the VM on I/O errors 2014-06-23 16:36:13 +08:00
blockdev-nbd.c
blockdev.c
blockjob.c
bt-host.c
bt-vhci.c
Changelog
CODING_STYLE
configure Merge remote-tracking branch 'remotes/kvm/uq/master' into staging 2014-06-20 19:25:18 +01:00
COPYING
COPYING.LIB
coroutine-gthread.c
coroutine-sigaltstack.c
coroutine-ucontext.c
coroutine-win32.c
cpu-exec.c
cpus.c vl: allow other threads to do qemu_system_vmstop_request 2014-06-23 16:36:13 +08:00
cputlb.c
device-hotplug.c
device_tree.c
disas.c
dma-helpers.c
dump.c
exec.c hostmem: add property to map memory with MAP_SHARED 2014-06-19 18:44:20 +03:00
gdbstub.c
HACKING
hmp-commands.hx
hmp.c hmp: add info memdev 2014-06-19 18:44:21 +03:00
hmp.h hmp: add info memdev 2014-06-19 18:44:21 +03:00
iohandler.c
ioport.c
iothread.c
kvm-all.c Merge remote-tracking branch 'remotes/kvm/uq/master' into staging 2014-06-20 19:25:18 +01:00
kvm-stub.c
LICENSE
main-loop.c
MAINTAINERS Merge remote-tracking branch 'remotes/kvm/uq/master' into staging 2014-06-20 19:25:18 +01:00
Makefile qapi script: add event support 2014-06-23 11:01:25 -04:00
Makefile.objs qapi script: add event support 2014-06-23 11:01:25 -04:00
Makefile.target
memory.c hostmem: add property to map memory with MAP_SHARED 2014-06-19 18:44:20 +03:00
memory_mapping.c
migration-exec.c
migration-fd.c
migration-rdma.c
migration-tcp.c
migration-unix.c
migration.c
module-common.c
monitor.c qmp: add ACPI_DEVICE_OST event handling 2014-06-19 18:44:22 +03:00
nbd.c
numa.c numa: handle mmaped memory allocation failure correctly 2014-06-19 18:44:22 +03:00
os-posix.c
os-win32.c
page_cache.c
qapi-schema.json qmp: add query-acpi-ospm-status command 2014-06-19 18:44:22 +03:00
qdev-monitor.c
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c console: move chardev declarations to sysemu/char.h 2014-06-23 10:56:20 +01:00
qemu-coroutine-io.c
qemu-coroutine-lock.c
qemu-coroutine-sleep.c
qemu-coroutine.c
qemu-doc.texi
qemu-file.c
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi
qemu-io-cmds.c
qemu-io.c
qemu-log.c
qemu-nbd.c
qemu-nbd.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx numa: add -numa node,memdev= option 2014-06-19 18:44:19 +03:00
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c
qemu.nsi
qemu.sasl
qmp-commands.hx qmp: add query-acpi-ospm-status command 2014-06-19 18:44:22 +03:00
qmp.c qmp: add query-acpi-ospm-status command 2014-06-19 18:44:22 +03:00
qtest.c
README
rules.mak
savevm.c
softmmu_template.h
spice-qemu-char.c
tcg-runtime.c
tci.c
thread-pool.c
thunk.c
tpm.c
trace-events
translate-all.c
translate-all.h
user-exec.c
VERSION
version.rc
vl.c vl: allow other threads to do qemu_system_vmstop_request 2014-06-23 16:36:13 +08:00
vmstate.c
xbzrle.c
xen-common-stub.c
xen-common.c
xen-hvm-stub.c
xen-hvm.c
xen-mapcache.c

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team