QEMU With E2K User Support
Go to file
Paolo Bonzini 0b8b8753e4 coroutine: move entry argument to qemu_coroutine_create
In practice the entry argument is always known at creation time, and
it is confusing that sometimes qemu_coroutine_enter is used with a
non-NULL argument to re-enter a coroutine (this happens in
block/sheepdog.c and tests/test-coroutine.c).  So pass the opaque value
at creation time, for consistency with e.g. aio_bh_new.

Mostly done with the following semantic patch:

@ entry1 @
expression entry, arg, co;
@@
- co = qemu_coroutine_create(entry);
+ co = qemu_coroutine_create(entry, arg);
  ...
- qemu_coroutine_enter(co, arg);
+ qemu_coroutine_enter(co);

@ entry2 @
expression entry, arg;
identifier co;
@@
- Coroutine *co = qemu_coroutine_create(entry);
+ Coroutine *co = qemu_coroutine_create(entry, arg);
  ...
- qemu_coroutine_enter(co, arg);
+ qemu_coroutine_enter(co);

@ entry3 @
expression entry, arg;
@@
- qemu_coroutine_enter(qemu_coroutine_create(entry), arg);
+ qemu_coroutine_enter(qemu_coroutine_create(entry, arg));

@ reentry @
expression co;
@@
- qemu_coroutine_enter(co, NULL);
+ qemu_coroutine_enter(co);

except for the aforementioned few places where the semantic patch
stumbled (as expected) and for test_co_queue, which would otherwise
produce an uninitialized variable warning.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2016-07-13 13:26:02 +02:00
audio Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
backends msmouse: send short messages if possible. 2016-07-12 09:24:31 +02:00
block coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
bsd-user Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
contrib Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
crypto Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
default-configs dma: Add Xilinx Zynq devcfg device model 2016-07-04 13:15:22 +01:00
disas
docs blockjob: Update description of the 'device' field in the QMP API 2016-07-13 13:26:02 +02:00
dtc@65cc4d2748
fpu softfloat: Handle snan_bit_is_one == 0 in MIPS pickNaNMulAdd() 2016-06-24 13:41:32 +01:00
fsdev Clean up #include "..." vs <...> and header guards 2016-07-12 16:04:36 +01:00
gdb-xml
hw coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
include coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
io coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
libdecnumber
linux-headers linux-headers: update 2016-06-14 13:34:50 +02:00
linux-user Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
migration coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
nbd coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
net Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
pc-bios Last round of s390x patches for 2.7: 2016-07-11 18:46:38 +01:00
pixman@87eea99e44
po Added Bulgarian translation 2016-07-01 16:06:57 +01:00
qapi blockjob: Update description of the 'device' field in the QMP API 2016-07-13 13:26:02 +02:00
qga Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
qobject qapi: Improve use of qmp/types.h 2016-07-06 10:52:03 +02:00
qom pc: Parse CPU features only once 2016-07-07 15:25:06 -03:00
replay replay: Use new QAPI cloning 2016-07-06 10:52:04 +02:00
roms ipxe: update submodule from 4e03af8ec to 041863191 2016-07-05 12:46:18 +01:00
scripts scripts: New clean-header-guards.pl 2016-07-12 16:19:16 +02:00
slirp Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
stubs pc: acpi: introduce AcpiDeviceIfClass.madt_cpu hook 2016-06-24 05:21:16 +03:00
target-alpha target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-arm target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-cris Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
target-i386 Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
target-lm32 target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-m68k target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-microblaze target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-mips Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
target-moxie target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-openrisc Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
target-ppc Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
target-s390x target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-sh4 target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-sparc target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-tilegx Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
target-tricore Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
target-unicore32 target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
target-xtensa Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
tcg Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
tests coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
trace Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
ui Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
util coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
.dir-locals.el
.exrc
.gitignore trace: add build framework for merging trace-events files 2016-06-20 17:22:14 +01:00
.gitmodules
.mailmap
.travis.yml .travis.yml: disable Sparse testing 2016-06-08 17:47:22 +01:00
accel.c
aio-posix.c
aio-win32.c
arch_init.c
async.c
balloon.c
block.c coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
blockdev-nbd.c
blockdev.c commit: Add 'job-id' parameter to 'block-commit' 2016-07-13 13:26:02 +02:00
blockjob.c coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
bootdevice.c error: Remove NULL checks on error_propagate() calls 2016-06-20 16:38:13 +02:00
bt-host.c
bt-vhci.c
Changelog
CODING_STYLE
configure build: Use $(AS) for optionrom explicitly 2016-07-10 10:05:46 -07:00
COPYING
COPYING.LIB
cpu-exec-common.c cpu-exec: Rename cpu_resume_from_signal() to cpu_loop_exit_noexc() 2016-06-09 15:55:02 +01:00
cpu-exec.c tb hash: track translated blocks with qht 2016-06-11 17:11:16 -07:00
cpus.c seqlock: rename write_lock/unlock to write_begin/end 2016-06-11 22:59:34 +00:00
cputlb.c cputlb: Add address parameter to VICTIM_TLB_HIT 2016-07-08 13:04:41 -07:00
device_tree.c
device-hotplug.c
disas.c
dma-helpers.c dma-helpers: dma_blk_io() cancel support 2016-06-28 13:08:31 +01:00
dump.c error: Remove NULL checks on error_propagate() calls 2016-06-20 16:38:13 +02:00
exec.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
gdbstub.c linux-user pull request for June 2016 2016-06-08 18:34:32 +01:00
HACKING
hmp-commands-info.hx hmp: Add 'info hotpluggable-cpus' HMP command 2016-06-17 16:33:49 +10:00
hmp-commands.hx
hmp.c stream: Add 'job-id' parameter to 'block-stream' 2016-07-13 13:26:02 +02:00
hmp.h hmp: Add 'info hotpluggable-cpus' HMP command 2016-06-17 16:33:49 +10:00
iohandler.c
ioport.c
iothread.c
kvm-all.c KVM: use KVM_CAP_MAX_VCPU_ID 2016-06-16 18:39:04 +02:00
kvm-stub.c
LICENSE
main-loop.c
MAINTAINERS MAINTAINERS: Remove Blue Swirl leftovers 2016-06-30 13:34:49 +01:00
Makefile ipxe: update submodule from 4e03af8ec to 041863191 2016-07-05 12:46:18 +01:00
Makefile.objs trace: split out trace events for linux-user/ directory 2016-06-20 17:22:17 +01:00
Makefile.target linux-user: Create a hostdep.h for each host architecture 2016-06-26 13:17:21 +03:00
memory_mapping.c all: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
memory.c memory: Assert that memory_region_init_rom_device() ops aren't NULL 2016-07-04 13:06:35 +01:00
module-common.c
monitor.c Drop Emacs local variables lists redundant with .dir-locals.el 2016-07-12 16:19:16 +02:00
numa.c opts-visitor: Favor new visit_free() function 2016-07-06 10:52:04 +02:00
os-posix.c os-posix: include sys/mman.h 2016-06-16 18:39:03 +02:00
os-win32.c
page_cache.c coccinelle: Remove unnecessary variables for function return value 2016-06-20 16:38:13 +02:00
qapi-schema.json tap: vhost busy polling support 2016-07-07 14:29:04 +08:00
qdev-monitor.c
qdict-test-data.txt
qemu-bridge-helper.c all: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
qemu-char.c sockets: Use new QAPI cloning 2016-07-06 10:52:04 +02:00
qemu-doc.texi
qemu-ga.texi
qemu-img-cmds.hx qemu-img bench: Add --flush-interval 2016-06-08 10:21:09 +02:00
qemu-img.c qemu-img: Set the ID of the block job in img_commit() 2016-07-13 13:26:02 +02:00
qemu-img.texi trace: enable tracing in qemu-img 2016-06-28 21:14:12 +01:00
qemu-io-cmds.c coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
qemu-io.c trace: enable tracing in qemu-io 2016-06-28 21:14:12 +01:00
qemu-nbd.c trace: enable tracing in qemu-nbd 2016-06-28 21:14:12 +01:00
qemu-nbd.texi trace: enable tracing in qemu-nbd 2016-06-28 21:14:12 +01:00
qemu-option-trace.texi doc: move text describing --trace to specific .texi file 2016-06-28 21:14:12 +01:00
qemu-options-wrapper.h
qemu-options.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
qemu-options.hx tap: vhost busy polling support 2016-07-07 14:29:04 +08:00
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c qemu-timer: Use DIV_ROUND_UP 2016-06-07 18:19:25 +03:00
qemu.nsi
qemu.sasl
qmp-commands.hx commit: Add 'job-id' parameter to 'block-commit' 2016-07-13 13:26:02 +02:00
qmp.c qmp-input-visitor: Favor new visit_free() function 2016-07-06 10:52:04 +02:00
qtest.c
README
rules.mak build: Use $(AS) for optionrom explicitly 2016-07-10 10:05:46 -07:00
softmmu_template.h cputlb: Fix for self-modifying writes across page boundaries 2016-07-08 13:05:07 -07:00
spice-qemu-char.c
tcg-runtime.c
tci.c
thread-pool.c coroutine: move entry argument to qemu_coroutine_create 2016-07-13 13:26:02 +02:00
thunk.c thunk: Rename args and fields in host-target bitmask conversion code 2016-06-07 18:19:24 +03:00
tpm.c
trace-events trace: [*-user] Add events to trace guest syscalls in syscall emulation mode 2016-06-28 21:14:12 +01:00
translate-all.c translate-all: Fix user-mode self-modifying code in 2 page long TB 2016-07-08 13:17:38 -07:00
translate-all.h user-exec: Push resume-from-signal code out to handle_cpu_signal() 2016-06-09 15:55:02 +01:00
translate-common.c
user-exec.c user-exec: Remove unused code for OSX hosts 2016-06-26 13:17:20 +03:00
VERSION
version.rc
vl.c machine: Add machine_register_compat_props() function 2016-07-07 15:24:54 -03:00
xen-common-stub.c
xen-common.c
xen-hvm-stub.c
xen-hvm.c xen: fix ram init regression 2016-07-04 14:50:00 +03:00
xen-mapcache.c os-posix: include sys/mman.h 2016-06-16 18:39:03 +02:00

         QEMU README
         ===========

QEMU is a generic and open source machine & userspace emulator and
virtualizer.

QEMU is capable of emulating a complete machine in software without any
need for hardware virtualization support. By using dynamic translation,
it achieves very good performance. QEMU can also integrate with the Xen
and KVM hypervisors to provide emulated hardware while allowing the
hypervisor to manage the CPU. With hypervisor support, QEMU can achieve
near native performance for CPUs. When QEMU emulates CPUs directly it is
capable of running operating systems made for one machine (e.g. an ARMv7
board) on a different machine (e.g. an x86_64 PC board).

QEMU is also capable of providing userspace API virtualization for Linux
and BSD kernel interfaces. This allows binaries compiled against one
architecture ABI (e.g. the Linux PPC64 ABI) to be run on a host using a
different architecture ABI (e.g. the Linux x86_64 ABI). This does not
involve any hardware emulation, simply CPU and syscall emulation.

QEMU aims to fit into a variety of use cases. It can be invoked directly
by users wishing to have full control over its behaviour and settings.
It also aims to facilitate integration into higher level management
layers, by providing a stable command line interface and monitor API.
It is commonly invoked indirectly via the libvirt library when using
open source applications such as oVirt, OpenStack and virt-manager.

QEMU as a whole is released under the GNU General Public License,
version 2. For full licensing details, consult the LICENSE file.


Building
========

QEMU is multi-platform software intended to be buildable on all modern
Linux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety
of other UNIX targets. The simple steps to build QEMU are:

  mkdir build
  cd build
  ../configure
  make

Complete details of the process for building and configuring QEMU for
all supported host platforms can be found in the qemu-tech.html file.
Additional information can also be found online via the QEMU website:

  http://qemu-project.org/Hosts/Linux
  http://qemu-project.org/Hosts/W32


Submitting patches
==================

The QEMU source code is maintained under the GIT version control system.

   git clone git://git.qemu-project.org/qemu.git

When submitting patches, the preferred approach is to use 'git
format-patch' and/or 'git send-email' to format & send the mail to the
qemu-devel@nongnu.org mailing list. All patches submitted must contain
a 'Signed-off-by' line from the author. Patches should follow the
guidelines set out in the HACKING and CODING_STYLE files.

Additional information on submitting patches can be found online via
the QEMU website

  http://qemu-project.org/Contribute/SubmitAPatch
  http://qemu-project.org/Contribute/TrivialPatches


Bug reporting
=============

The QEMU project uses Launchpad as its primary upstream bug tracker. Bugs
found when running code built from QEMU git or upstream released sources
should be reported via:

  https://bugs.launchpad.net/qemu/

If using QEMU via an operating system vendor pre-built binary package, it
is preferable to report bugs to the vendor's own bug tracker first. If
the bug is also known to affect latest upstream code, it can also be
reported via launchpad.

For additional information on bug reporting consult:

  http://qemu-project.org/Contribute/ReportABug


Contact
=======

The QEMU community can be contacted in a number of ways, with the two
main methods being email and IRC

 - qemu-devel@nongnu.org
   http://lists.nongnu.org/mailman/listinfo/qemu-devel
 - #qemu on irc.oftc.net

Information on additional methods of contacting the community can be
found online via the QEMU website:

  http://qemu-project.org/Contribute/StartHere

-- End