QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Richard Henderson cf3e71d8fc Various patches related to single binary effort:
- Endianness cleanups in memory core subsystem and for various targets
 - Few cleanups around target_ulong type
 - Build various compilation units as common
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE+qvnXhKRciHc/Wuy4+MsLN6twN4FAmlleisACgkQ4+MsLN6t
 wN40yw/+NYK6Q+v8YHclH0g6YkPsXYsCVOLWhYaUQ9Smc3Vk8js02LRMxomGiyjc
 lRhatftrH4dCuiWavyhlK/z+tu3b2WOgjjcIocg7ztZEwzyvDPEKidBNM4Wrv27d
 6WNdtCn1rOOYQBcCs/MEHnrxIl3qfl5Kqt4hzejcK4E1DFa1m5ashAEVJwMlqYWp
 qkBT3fw0jfHojM+eTAbvKI1fi27GVMXbQXSM3V3vG3njxmx4JQT0p9QjyDYWZwgh
 xAJvy5neoNv3T7TBELCfqSWzGA5WHrW/eAkuRuO0JVa69IOn/mh2aGKboJMT7KQF
 ufyxceHMj8TLJr6c9BrvaWX7+p7xyvbX3ud+qXOV9P2FBVm+hf2lHnw0pJJ6A51g
 qv3u8zUVwhmx6oF95ibQtaWKdLNhGCKtVKJu59Xxj/7Bp00BS1Jnj6E/g34To8Vm
 18g3cPJ+CEhdTFSkcHusiVI4GdHb8JEGUd5kyWza3gEgYb/J1Ps/a807n6C6NQcq
 MRkt2zNKS+sJeZzvl+BGH8WewMVGWm1f8IoP28ZvgyxFVutkgFcj+UQZp3J7mkpV
 ja0B7+1NMK9oMeq/+YM4gUgEF0ydThlqa+qTzxVYu8qpzWT9+cqqWeQHAteE3g/v
 rqqu/sBUSbh5xi+82zRbgwd7Hj31ST5XkepQN0vUTT4P3zCijy8=
 =P+9/
 -----END PGP SIGNATURE-----

Merge tag 'single-binary-20260112' of https://github.com/philmd/qemu into staging

Various patches related to single binary effort:

- Endianness cleanups in memory core subsystem and for various targets
- Few cleanups around target_ulong type
- Build various compilation units as common

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEE+qvnXhKRciHc/Wuy4+MsLN6twN4FAmlleisACgkQ4+MsLN6t
# wN40yw/+NYK6Q+v8YHclH0g6YkPsXYsCVOLWhYaUQ9Smc3Vk8js02LRMxomGiyjc
# lRhatftrH4dCuiWavyhlK/z+tu3b2WOgjjcIocg7ztZEwzyvDPEKidBNM4Wrv27d
# 6WNdtCn1rOOYQBcCs/MEHnrxIl3qfl5Kqt4hzejcK4E1DFa1m5ashAEVJwMlqYWp
# qkBT3fw0jfHojM+eTAbvKI1fi27GVMXbQXSM3V3vG3njxmx4JQT0p9QjyDYWZwgh
# xAJvy5neoNv3T7TBELCfqSWzGA5WHrW/eAkuRuO0JVa69IOn/mh2aGKboJMT7KQF
# ufyxceHMj8TLJr6c9BrvaWX7+p7xyvbX3ud+qXOV9P2FBVm+hf2lHnw0pJJ6A51g
# qv3u8zUVwhmx6oF95ibQtaWKdLNhGCKtVKJu59Xxj/7Bp00BS1Jnj6E/g34To8Vm
# 18g3cPJ+CEhdTFSkcHusiVI4GdHb8JEGUd5kyWza3gEgYb/J1Ps/a807n6C6NQcq
# MRkt2zNKS+sJeZzvl+BGH8WewMVGWm1f8IoP28ZvgyxFVutkgFcj+UQZp3J7mkpV
# ja0B7+1NMK9oMeq/+YM4gUgEF0ydThlqa+qTzxVYu8qpzWT9+cqqWeQHAteE3g/v
# rqqu/sBUSbh5xi+82zRbgwd7Hj31ST5XkepQN0vUTT4P3zCijy8=
# =P+9/
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue 13 Jan 2026 09:48:11 AM AEDT
# gpg:                using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
# gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: FAAB E75E 1291 7221 DCFD  6BB2 E3E3 2C2C DEAD C0DE

* tag 'single-binary-20260112' of https://github.com/philmd/qemu: (61 commits)
  target/arm/gdbstub: make compilation unit common
  target/arm/gdbstub: extract aarch64_cpu_register_gdb_regs_for_features
  gdbstub/helpers.h: allow header to be called from common code
  accel/tcg: Un-inline WatchPoint API user-emulation stubs
  target/tricore: Build system units in common source set
  target/tricore: Inline translator_lduw()
  target/tricore: Use little-endian variant of cpu_ld/st_data*()
  target/sparc: Inline cpu_ldl_code() call in cpu_do_interrupt()
  target/sparc: Inline translator_ldl()
  target/sparc: Use explicit big-endian LD/ST API
  hw/sparc: Use explicit big-endian LD/ST API
  hw/sparc: Mark SPARC-specific peripherals as big-endian
  target/sh4: drop cpu_reset from realizefn
  target/sh4: Build system units in common source set
  target/rx: Build system units in common source set
  target/rx: Inline translator_lduw() and translator_ldl()
  target/rx: Use explicit little-endian LD/ST API
  target/rx: Use little-endian variant of cpu_ld/st_data*()
  target/openrisc: Build system units in common source set
  target/openrisc: Avoid target-specific migration headers in machine.c
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2 days ago
.github/workflows github: fix config mistake preventing repo lockdown commenting 4 years ago
.gitlab/issue_templates .gitlab/issue_templates: Move suggestions into comments 3 years ago
.gitlab-ci.d gitlab-ci: enable rust for msys2-64bit 3 weeks ago
accel accel/tcg: Un-inline WatchPoint API user-emulation stubs 2 days ago
audio audio: deprecate HMP audio commands 3 months ago
authz qom: Make InterfaceInfo[] uses const 9 months ago
backends error: Use error_setg_errno() for simplicity and consistency 7 days ago
block block/file-win32: Improve an error message 7 days ago
bsd-user accel/tcg: Add clear_flags argument to page_set_flags 3 months ago
chardev monitor/qmp: cleanup SocketChardev listener sources early to avoid fd handling race 1 week ago
common-user tcg/mips: Remove support for O32 and N32 ABIs 3 months ago
configs configs: use default prefix for Windows compilation 2 days ago
contrib contrib/plugins/uftrace_symbols.py: unbreak --no-prefix-symbols 1 month ago
crypto crypto: support upto 5 parallel certificate identities 2 months ago
disas buildsys: Remove support for 32-bit PPC hosts 3 months ago
docs Various patches related to single binary effort: 2 days ago
dump include: reorganize memory API headers 3 weeks ago
ebpf ebpf: Make ebpf_rss_load() return value consistent with @errp 2 months ago
fpu fpu: Process float_muladd_negate_result after rounding 6 months ago
fsdev block: extract include/qemu/aiocb.h out of include/block/aio.h 3 weeks ago
gdb-xml i386/gdbstub: Add APX support for gdbstub 3 weeks ago
gdbstub include: move hw/boards.h to hw/core/ 3 weeks ago
host/include include/aarch64/host: Fix atomic16_fetch_{and,or} 1 month ago
hw Various patches related to single binary effort: 2 days ago
include Various patches related to single binary effort: 2 days ago
io error: error_free(NULL) is safe, drop unnecessary conditionals 1 week ago
libdecnumber libdecnumber: replace FSF postal address with licenses URL 7 months ago
linux-headers linux-headers: Update to Linux v6.18-rc3 3 months ago
linux-user target/alpha: Introduce alpha_phys_addr_space_bits() 2 days ago
migration error: Use error_setg_errno() for simplicity and consistency 7 days ago
monitor Error reporting patches for 2026-01-07 7 days ago
nbd error: Consistently name Error * objects err, and not errp 1 week ago
net error: Use error_setg_errno() for simplicity and consistency 7 days ago
pc-bios target/hppa: Update SeaBIOS-hppa to version 21 3 weeks ago
plugins include: move hw/boards.h to hw/core/ 3 weeks ago
po po: update Italian translation 1 year ago
python bump meson wheel to 1.10.0 3 weeks ago
qapi * cleanup include/hw headers 2 weeks ago
qga qga/commands-win32: Use error_setg_win32() for better error messages 7 days ago
qobject tests/qtest: Add qtest for for ASPEED GPIO gpio-set property 3 months ago
qom include: move hw/qdev-core.h to hw/core/, rename 3 weeks ago
replay block: rename block/aio.h to qemu/aio.h 3 weeks ago
roms target/hppa: Update SeaBIOS-hppa to version 21 3 weeks ago
rust rust/system: Stop exposing bogus DEVICE_NATIVE_ENDIAN symbol 2 weeks ago
scripts scripts/device-crash-test: ERROR_RULE_LIST garbage collection 1 week ago
scsi block: rename block/aio.h to qemu/aio.h 3 weeks ago
semihosting include: move hw/loader.h to hw/core/ 3 weeks ago
stats qapi: Move include/qapi/qmp/ to include/qobject/ 11 months ago
storage-daemon docs/sphinx: remove special parsing for freeform sections 6 months ago
stubs target/s390x: Fix infinite loop during replay 2 days ago
subprojects subprojects: add probe crate 3 weeks ago
system system/ioport: Do not open-code address_space_ld/st_le() methods 2 days ago
target Various patches related to single binary effort: 2 days ago
tcg tcg/riscv: Fix TCG_REG_TMP0 clobber in tcg_gen_dup{m,i} 3 days ago
tests Various patches related to single binary effort: 2 days ago
tools treewide: handle result of qio_channel_set_blocking() 4 months ago
trace rust: add trace crate 4 months ago
ui ui: Convert to qemu_create() for simplicity and consistency 1 week ago
util target/s390x: Fix infinite loop during replay 2 days ago
.b4-config b4: Drop linktrailermask 7 months ago
.dir-locals.el Add .dir-locals.el file to configure emacs coding style 10 years ago
.editorconfig scripts/kernel-doc: Delete the old Perl kernel-doc script 5 months ago
.exrc qemu: add .exrc 14 years ago
.gdbinit .gdbinit: load QEMU sub-commands when gdb starts 9 years ago
.git-blame-ignore-revs metadata: add .git-blame-ignore-revs 3 years ago
.gitattributes rust: patch bilge-impl to allow compilation with 1.63.0 1 year ago
.gitignore configure: rename --enable-pypi to --enable-download, control subprojects too 3 years ago
.gitlab-ci.yml docs: Document GitLab custom CI/CD variables 5 years ago
.gitmodules .gitmodules: restore qemu-project mirror of u-boot-sam460ex 3 months ago
.gitpublish .gitpublish: use origin/master as default base 3 months ago
.mailmap MAINTAINERS: Update David Hildenbrand's email address 2 months ago
.patchew.yml scripts/checkpatch: roll diff tweaking into checkpatch itself 5 years ago
.readthedocs.yml readthedocs: don't build extra formats 5 months ago
.travis.yml travis.yml: Remove the aarch64 job 7 months ago
COPYING COPYING: replace FSF postal address with licenses URL 7 months ago
COPYING.LIB COPYING: replace FSF postal address with licenses URL 7 months ago
Kconfig build-sys: Add rust feature option 1 year ago
Kconfig.host pvg: do not enable it on cross-architecture targets 11 months ago
LICENSE tcg/LICENSE: Remove out of date claim about TCG subdirectory licensing 6 years ago
MAINTAINERS Various patches related to single binary effort: 2 days ago
Makefile mtest2make: cleanup mtest-suites variables 2 months ago
README.rst README.rst: add the missing punctuations 2 years ago
VERSION Open 11.0 development tree 3 weeks ago
block.c block: use pwrite_zeroes_alignment when writing first sector 2 months ago
blockdev-nbd.c nbd: Avoid deadlock in client connecting to same-process server 2 months ago
blockdev.c block: Fix BDS use after free during shutdown 1 month ago
blockjob.c block: rename block/aio-wait.h to qemu/aio-wait.h 3 weeks ago
clippy.toml meson, cargo: require Rust 1.83.0 4 months ago
configure bump meson wheel to 1.10.0 3 weeks ago
cpu-common.c cpus: Trace cpu_exec_start() and cpu_exec_end() calls 3 months ago
cpu-target.c cpu-target: build compilation unit once for user/system 4 months ago
event-loop-base.c qom: Make InterfaceInfo[] uses const 9 months ago
gitdm.config contrib/gitdm: add group-map for Microsoft 2 months ago
hmp-commands-info.hx audio: deprecate HMP audio commands 3 months ago
hmp-commands.hx audio: deprecate HMP audio commands 3 months ago
iothread.c block: rename block/aio.h to qemu/aio.h 3 weeks ago
job-qmp.c qapi job: Elide redundant has_FOO in generated C 3 years ago
job.c block: rename block/aio-wait.h to qemu/aio-wait.h 3 weeks ago
meson.build meson: Allow system binaries to not have target-specific units 2 days ago
meson_options.txt * i386: fix migration issues in 10.1 3 months ago
module-common.c all: Clean up includes 10 years ago
os-posix.c os: add an ability to lock memory on_fault 11 months ago
os-wasm.c include/qemu/osdep.h: Add Emscripten-specific OS dependencies 8 months ago
os-win32.c include: Rename sysemu/ -> system/ 1 year ago
page-vary-common.c Remove qemu-common.h include from most units 4 years ago
page-vary-target.c page-vary: Restrict scope of TARGET_PAGE_BITS_MIN 9 months ago
pythondeps.toml bump meson wheel to 1.10.0 3 weeks ago
qemu-bridge-helper.c qemu-bridge-helper: relocate path to default ACL 5 years ago
qemu-edid.c qemu-edid: Restrict input parameter -d to avoid division by zero 3 years ago
qemu-img-cmds.hx qemu-img info: Add cache mode option 3 months ago
qemu-img.c qemu-img rebase: don't exceed IO_BUF_SIZE in one operation 2 months ago
qemu-io-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 11 months ago
qemu-io.c qapi: Move include/qapi/qmp/ to include/qobject/ 11 months ago
qemu-keymap.c cleanup: Drop pointless return at end of function 9 months ago
qemu-nbd.c nbd: Defer trace init until after daemonization 11 months ago
qemu-options.hx qemu-options.hx: Document -M as -machine alias 3 weeks ago
qemu.nsi pc-bios: Move device tree files in their own subdir 9 months ago
qemu.sasl sasl: remove comment about obsolete kerberos versions 5 years ago
replication.c replication: move include out of root directory 5 years ago
run.in run: introduce a script for running devel commands 3 weeks ago
target-info-qom.c hw/arm: Register TYPE_TARGET_ARM/AARCH64_MACHINE QOM interfaces 3 months ago
target-info-stub.c include: move hw/boards.h to hw/core/ 3 weeks ago
target-info.c qemu/target_info: Add target_base_arm() helper 3 months ago
trace-events cpus: Trace cpu_exec_start() and cpu_exec_end() calls 3 months ago
version.rc configure: remove CONFIG_FILEVERSION and CONFIG_PRODUCTVERSION 5 years ago

README.rst

===========
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.


Documentation
=============

Documentation can be found hosted online at
`<https://www.qemu.org/documentation/>`_. The documentation for the
current development version that is available at
`<https://www.qemu.org/docs/master/>`_ is generated from the ``docs/``
folder in the source tree, and is built by `Sphinx
<https://www.sphinx-doc.org/en/master/>`_.


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:


.. code-block:: shell

  mkdir build
  cd build
  ../configure
  make

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

* `<https://wiki.qemu.org/Hosts/Linux>`_
* `<https://wiki.qemu.org/Hosts/Mac>`_
* `<https://wiki.qemu.org/Hosts/W32>`_


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

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

.. code-block:: shell

   git clone https://gitlab.com/qemu-project/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 `style section
<https://www.qemu.org/docs/master/devel/style.html>`_ of
the Developers Guide.

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

* `<https://wiki.qemu.org/Contribute/SubmitAPatch>`_
* `<https://wiki.qemu.org/Contribute/TrivialPatches>`_

The QEMU website is also maintained under source control.

.. code-block:: shell

  git clone https://gitlab.com/qemu-project/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:

.. code-block:: shell

  $ 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:

.. code-block:: shell

  $ 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 GitLab issues to track bugs. Bugs
found when running code built from QEMU git or upstream released sources
should be reported via:

* `<https://gitlab.com/qemu-project/qemu/-/issues>`_

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 GitLab.

For additional information on bug reporting consult:

* `<https://wiki.qemu.org/Contribute/ReportABug>`_


ChangeLog
=========

For version history and release notes, please visit
`<https://wiki.qemu.org/ChangeLog/>`_ or look at the git history for
more detailed information.


Contact
=======

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

* `<mailto: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://wiki.qemu.org/Contribute/StartHere>`_