Official QEMU mirror. Please see http://wiki.qemu.org/Contribute/SubmitAPatch for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website.
Clone or download
rth7680 and pm215 osdep: Work around MinGW assert
In several places we use assert(FEATURE), and assume that if FEATURE
is disabled, all following code is removed as unreachable.  Which allows
us to compile-out functions that are only present with FEATURE, and
have a link-time failure if the functions remain used.

MinGW does not mark its internal function _assert() as noreturn, so the
compiler cannot see when code is unreachable, which leads to link errors
for this host that are not present elsewhere.

The current build-time failure concerns 6282308, but I remember
having seen this same error before.  Fix it once and for all for MinGW.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20181022181623.8810-1-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Latest commit 3ebee3b Oct 22, 2018
Permalink
Failed to load latest commit information.
accel Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into… Oct 19, 2018
audio audio: add audio timer trace points Jul 3, 2018
backends hostmem: add some properties description Oct 5, 2018
block nvme: correct locking around completion Oct 12, 2018
bsd-user bsd-user: Use the IEC binary prefix definitions Jul 2, 2018
capstone @ 22ead3e disas: Add capstone as submodule Oct 26, 2017
chardev chardev: use a child source for qio input source Oct 3, 2018
contrib contrib: add elf2dmp tool Oct 2, 2018
crypto crypto: Implement TLS Pre-Shared Keys (PSK). Jul 3, 2018
default-configs default-configs: collect CONFIG_HYPERV* in hyperv.mak Oct 19, 2018
disas fix "Missing break in switch" coverity reports Aug 23, 2018
docs docs: Add COLO status diagram to COLO-FT.txt Oct 19, 2018
dtc @ 88f1890 Update dtc/libfdt submodule to v1.4.7 Oct 2, 2018
fpu qemu/compiler: Wrap __attribute__((flatten)) in a macro Oct 17, 2018
fsdev fsdev: fix compilation with VIRTIO but not VIRTIO_9P Aug 22, 2018
gdb-xml s390x/gdb: add gs registers Jul 14, 2017
hw Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into… Oct 19, 2018
include osdep: Work around MinGW assert Oct 23, 2018
io Delete AF_UNIX socket after close Jun 28, 2018
libdecnumber build: remove CONFIG_LIBDECNUMBER Oct 16, 2017
linux-headers linux-headers: update to 4.20-rc1 Oct 19, 2018
linux-user linux-user: Implement special usbfs ioctls. Oct 19, 2018
migration COLO: quick failover process by kick COLO thread Oct 19, 2018
nbd nbd/server: drop old-style negotiation Oct 3, 2018
net net: ignore packet size greater than INT_MAX Oct 19, 2018
pc-bios Update OpenBIOS images to 441a84d3 built from submodule. Oct 5, 2018
po po: Don't include comments with location Jul 23, 2018
qapi Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into… Oct 19, 2018
qga util: add qemu_write_pidfile() Oct 2, 2018
qobject json: Eliminate lexer state IN_WHITESPACE, pseudo-token JSON_SKIP Sep 24, 2018
qom tcg: access cpu->icount_decr.u16.high with atomics Oct 19, 2018
replay replay: pass raw icount value to replay_save_clock Oct 19, 2018
roms Update OpenBIOS images to 441a84d3 built from submodule. Oct 5, 2018
scripts Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2… Oct 18, 2018
scsi util: add qemu_write_pidfile() Oct 2, 2018
slirp qemu-timer: avoid checkpoints for virtual clock timers in external su… Oct 19, 2018
stubs replay: pass raw icount value to replay_save_clock Oct 19, 2018
target Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into… Oct 19, 2018
tcg tcg: Split CONFIG_ATOMIC128 Oct 19, 2018
tests qemu-timer: introduce timer attributes Oct 19, 2018
trace tracing: Use double-dash spelling for trace option Jul 19, 2018
ui qemu-timer: avoid checkpoints for virtual clock timers in external su… Oct 19, 2018
util qemu-timer: avoid checkpoints for virtual clock timers in external su… Oct 19, 2018
.dir-locals.el Add .dir-locals.el file to configure emacs coding style Oct 8, 2015
.editorconfig add editorconfig Jul 20, 2017
.exrc qemu: add .exrc Sep 7, 2012
.gdbinit .gdbinit: load QEMU sub-commands when gdb starts Jun 7, 2017
.gitignore edid: Ignore built binary Oct 5, 2018
.gitmodules gitmodules: add berkeley's softfloat + testfloat version 3 Oct 5, 2018
.gitpublish Add a git-publish configuration file Mar 5, 2018
.mailmap mailmap: Add an item for Yongbok Kim Oct 18, 2018
.shippable.yml shippable: Remove Debian 8 libfdt kludge May 11, 2018
.travis.yml travis: add gcovr summary for GCOV build Jul 5, 2018
CODING_STYLE CODING_STYLE: Define our preferred form for multiline comments Jun 15, 2018
COPYING COPYING: update from FSF Oct 12, 2008
COPYING.LIB Update FSF address in GPL/LGPL boilerplate Jan 4, 2009
Changelog Use HTTPS for qemu.org and other domains Nov 21, 2017
HACKING HACKING: document preference for g_new instead of g_malloc May 20, 2018
LICENSE vfio: move hw/misc/vfio.c to hw/vfio/pci.c Move vfio.h into include/h… Dec 19, 2014
MAINTAINERS MAINTAINERS: update block/sheepdog maintainers Oct 16, 2018
Makefile Makefile: Install new vgabios binaries Oct 15, 2018
Makefile.objs contrib: add elf2dmp tool Oct 2, 2018
Makefile.target dump: add Windows dump format to dump-guest-memory Jun 29, 2018
README README: Fix typo 'git-publish' Mar 8, 2018
VERSION Open 3.1 development tree Aug 14, 2018
arch_init.c arch_init: sort architectures Jun 1, 2018
balloon.c balloon: Allow multiple inhibit users Aug 17, 2018
block.c block: Allow changing 'detect-zeroes' on reopen Oct 1, 2018
blockdev-nbd.c nbd/server: drop old-style negotiation Oct 3, 2018
blockdev.c commit: Add top-node/base-node options Sep 25, 2018
blockjob.c block: Use a single global AioWait Sep 25, 2018
bootdevice.c fw_cfg: ignore suffixes in the bootdevice list dependent on machine c… Aug 17, 2018
bt-host.c all: Clean up includes Feb 4, 2016
bt-vhci.c all: Clean up includes Feb 4, 2016
configure Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1… Oct 21, 2018
cpus-common.c qom: convert the CPU list to RCU Aug 23, 2018
cpus.c Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into… Oct 19, 2018
device-hotplug.c block: Remove deprecated -drive option addr Aug 15, 2018
device_tree.c device_tree: Add qemu_fdt_node_unit_path Jun 29, 2018
disas.c RISC-V Disassembler Mar 6, 2018
dma-helpers.c block: explicitly acquire aiocontext in bottom halves that need it Feb 21, 2017
dump.c qapi: Drop qapi_event_send_FOO()'s Error ** argument Aug 28, 2018
exec.c exec: introduce tlb_init Oct 19, 2018
gdbstub.c gdbstub: Remove unused include Oct 16, 2018
hmp-commands-info.hx hmp-commands-info: add sync-profile Aug 23, 2018
hmp-commands.hx hmp-commands: add sync-profile Aug 23, 2018
hmp.c qmp, hmp: make subsystem/system-vendor identities optional Oct 11, 2018
hmp.h hmp-commands: add sync-profile Aug 23, 2018
ioport.c trace: switch to modular code generation for sub-directories Jan 31, 2017
iothread.c iothread: fix crash with invalid properties Oct 12, 2018
job-qmp.c jobs: canonize Error object Aug 31, 2018
job.c block: Use a single global AioWait Sep 25, 2018
memory.c target-i386 : add coalesced_pio API Oct 19, 2018
memory_ldst.inc.c exec: Fix MAP_RAM for cached access Jun 28, 2018
memory_mapping.c Replace all occurances of __FUNCTION__ with __func__ Jan 22, 2018
module-common.c all: Clean up includes Feb 4, 2016
monitor.c tcg: distribute tcg_time into TCG contexts Oct 19, 2018
numa.c memory, exec: switch file ram allocation functions to 'flags' parameters Aug 10, 2018
os-posix.c util: add qemu_write_pidfile() Oct 2, 2018
os-win32.c util: add qemu_write_pidfile() Oct 2, 2018
qdev-monitor.c qdev-monitor: print help to stdout Oct 5, 2018
qdict-test-data.txt Introduce QDict test data file Sep 4, 2009
qemu-bridge-helper.c all: Remove unnecessary glib.h includes Jun 7, 2016
qemu-deprecated.texi ui: remove support for GTK2 in favour of GTK3 Oct 12, 2018
qemu-doc.texi doc: replace x-root with rootdir for usb-mtp Oct 1, 2018
qemu-edid.c display/edid: add edid generator to qemu. Sep 27, 2018
qemu-ga.texi qemu-ga: Remove stray 'q' in documentation Oct 28, 2016
qemu-img-cmds.hx qemu-img: Add -C option for convert with copy offloading Jul 30, 2018
qemu-img.c qemu-img: fix regression copying secrets during convert Aug 15, 2018
qemu-img.texi qemu-img: Add -C option for convert with copy offloading Jul 30, 2018
qemu-io-cmds.c qemu-io: Fix writethrough check in reopen Oct 1, 2018
qemu-io.c qemu-io: Exit with error when a command failed Jun 11, 2018
qemu-keymap.c ui: use enum to string helpers Aug 24, 2018
qemu-nbd.c nbd/server: drop old-style negotiation Oct 3, 2018
qemu-nbd.texi nbd: Add qemu-nbd -D for human-readable description Nov 2, 2016
qemu-option-trace.texi qemu-option-trace: -trace enable= is a pattern, not a file May 20, 2018
qemu-options-wrapper.h qemu-img: remove references to GEN_DOCS May 20, 2018
qemu-options.h Clean up ill-advised or unusual header guards Jul 12, 2016
qemu-options.hx Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into… Oct 19, 2018
qemu-seccomp.c seccomp: check TSYNC host capability Sep 26, 2018
qemu-tech.texi cli qmp: Mark --preconfig, exit-preconfig experimental Jul 16, 2018
qemu.nsi Use HTTPS for qemu.org and other domains Nov 21, 2017
qemu.sasl Default to GSSAPI (Kerberos) instead of DIGEST-MD5 for SASL May 9, 2017
qmp.c cli qmp: Mark --preconfig, exit-preconfig experimental Jul 16, 2018
qtest.c qtest: Use cpu address space instead of system memory Jul 6, 2018
replication.c replication: Introduce new APIs to do replication operation Sep 13, 2016
replication.h block/replication: Remove protocol_name field Mar 26, 2018
rules.mak tests/docker/Makefile.include: handle empty TARGET_LIST Jun 4, 2018
thunk.c thunk: assert nb_fields is valid Jul 31, 2017
tpm.c qapi: Move qapi-schema.json to qapi/, rename generated files Mar 2, 2018
trace-events jobs: remove ret argument to job_completed; privatize it Aug 31, 2018
version.rc Use HTTPS for qemu.org and other domains Nov 21, 2017
vl.c Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into… Oct 19, 2018
win_dump.c dump: fix Windows dump memory run mapping Oct 2, 2018
win_dump.h dump: move Windows dump structures definitions Oct 2, 2018

README

         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

Additional information can also be found online via the QEMU website:

  https://qemu.org/Hosts/Linux
  https://qemu.org/Hosts/Mac
  https://qemu.org/Hosts/W32


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

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

   git clone git://git.qemu.org/qemu.git

When submitting patches, one common 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

  https://qemu.org/Contribute/SubmitAPatch
  https://qemu.org/Contribute/TrivialPatches

The QEMU website is also maintained under source control.

  git clone git://git.qemu.org/qemu-web.git
  https://www.qemu.org/2017/02/04/the-new-qemu-website-is-up/

A 'git-publish' utility was created to make above process less
cumbersome, and is highly recommended for making regular contributions,
or even just for sending consecutive patch series revisions. It also
requires a working 'git send-email' setup, and by default doesn't
automate everything, so you may want to go through the above steps
manually for once.

For installation instructions, please go to

  https://github.com/stefanha/git-publish

The workflow with 'git-publish' is:

  $ git checkout master -b my-feature
  $ # work on new commits, add your 'Signed-off-by' lines to each
  $ git publish

Your patch series will be sent and tagged as my-feature-v1 if you need to refer
back to it in the future.

Sending v2:

  $ git checkout my-feature # same topic branch
  $ # making changes to the commits (using 'git rebase', for example)
  $ git publish

Your patch series will be sent with 'v2' tag in the subject and the git tip
will be tagged as my-feature-v2.

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:

  https://qemu.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
   https://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:

  https://qemu.org/Contribute/StartHere

-- End