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
Stefan Hajnoczi 40efe733e1 tcg: Remove last traces of TCG_TARGET_NEED_POOL_LABELS
tcg: Cleanups after disallowing 64-on-32
 tcg: Introduce constraint for zero register
 tcg: Remove TCG_TARGET_HAS_{br,set}cond2 from riscv and loongarch64
 tcg/i386: Use tcg_{high,unsigned}_cond in tcg_out_brcond2
 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h
 linux-user: Fix alignment when unmapping excess reservation
 target/sparc: Fix register selection for all F*TOx and FxTO* instructions
 target/sparc: Fix gdbstub incorrectly handling registers f32-f62
 target/sparc: fake UltraSPARC T1 PCR and PIC registers
 -----BEGIN PGP SIGNATURE-----
 
 iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAme0tZ8dHHJpY2hhcmQu
 aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV+u+AgAi47VyMpkM8HvlvrV
 6NGYD5FANLAF+Axl42GCTZEsisLN8b+KNWnM3QIxtE/ryxVY+OBpn/JpMRN96MJH
 jcbsbnadJxJEUktCi1Ny/9vZGKh/wfT45OdJ7Ej+J5J/5EIuDsJQEPlR5U4QVv7H
 I574hNttTibj12lYs0lbo0hESIISL+ALNw+smBNYEQ5zZTAPl3utP96NiQ/w3lyK
 qtybkljYXQRjOtUM7iNH2x6mwrBrPfbTDFubD0lLJGBTRQg2Q2Z5QVSsP4OY5gMp
 L9NPEQPs35GXA8c0GcAWwhO6kAcEbvkcUEL+jhfalb5BWhVWBgmTqCqYXr5RvuG2
 flSRwg==
 =BWCN
 -----END PGP SIGNATURE-----

Merge tag 'pull-tcg-20250215-3' of https://gitlab.com/rth7680/qemu into staging

tcg: Remove last traces of TCG_TARGET_NEED_POOL_LABELS
tcg: Cleanups after disallowing 64-on-32
tcg: Introduce constraint for zero register
tcg: Remove TCG_TARGET_HAS_{br,set}cond2 from riscv and loongarch64
tcg/i386: Use tcg_{high,unsigned}_cond in tcg_out_brcond2
linux-user: Move TARGET_SA_RESTORER out of generic/signal.h
linux-user: Fix alignment when unmapping excess reservation
target/sparc: Fix register selection for all F*TOx and FxTO* instructions
target/sparc: Fix gdbstub incorrectly handling registers f32-f62
target/sparc: fake UltraSPARC T1 PCR and PIC registers

# -----BEGIN PGP SIGNATURE-----
#
# iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAme0tZ8dHHJpY2hhcmQu
# aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV+u+AgAi47VyMpkM8HvlvrV
# 6NGYD5FANLAF+Axl42GCTZEsisLN8b+KNWnM3QIxtE/ryxVY+OBpn/JpMRN96MJH
# jcbsbnadJxJEUktCi1Ny/9vZGKh/wfT45OdJ7Ej+J5J/5EIuDsJQEPlR5U4QVv7H
# I574hNttTibj12lYs0lbo0hESIISL+ALNw+smBNYEQ5zZTAPl3utP96NiQ/w3lyK
# qtybkljYXQRjOtUM7iNH2x6mwrBrPfbTDFubD0lLJGBTRQg2Q2Z5QVSsP4OY5gMp
# L9NPEQPs35GXA8c0GcAWwhO6kAcEbvkcUEL+jhfalb5BWhVWBgmTqCqYXr5RvuG2
# flSRwg==
# =BWCN
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 19 Feb 2025 00:30:23 HKT
# gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg:                issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [full]
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F

* tag 'pull-tcg-20250215-3' of https://gitlab.com/rth7680/qemu: (28 commits)
  tcg: Remove TCG_TARGET_HAS_{br,set}cond2 from riscv and loongarch64
  tcg/i386: Use tcg_{high,unsigned}_cond in tcg_out_brcond2
  target/sparc: fake UltraSPARC T1 PCR and PIC registers
  target/sparc: Fix gdbstub incorrectly handling registers f32-f62
  target/sparc: Fix register selection for all F*TOx and FxTO* instructions
  linux-user: Move TARGET_SA_RESTORER out of generic/signal.h
  elfload: Fix alignment when unmapping excess reservation
  tcg/sparc64: Use 'z' constraint
  tcg/riscv: Use 'z' constraint
  tcg/mips: Use 'z' constraint
  tcg/loongarch64: Use 'z' constraint
  tcg/aarch64: Use 'z' constraint
  tcg: Introduce the 'z' constraint for a hardware zero register
  include/exec: Use uintptr_t in CPUTLBEntry
  include/exec: Change vaddr to uintptr_t
  target/mips: Use VADDR_PRIx for logging pc_next
  target/loongarch: Use VADDR_PRIx for logging pc_next
  accel/tcg: Fix tlb_set_page_with_attrs, tlb_set_page
  plugins: Fix qemu_plugin_read_memory_vaddr parameters
  tcg: Replace addr{lo,hi}_reg with addr_reg in TCGLabelQemuLdst
  ...

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
3 days ago
.github/workflows
.gitlab/issue_templates
.gitlab-ci.d rust: fix doctests 1 week ago
accel tcg: Remove last traces of TCG_TARGET_NEED_POOL_LABELS 3 days ago
audio qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
authz qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
backends backends/tpm: Use qemu_hexdump_line() to avoid sprintf() 5 days ago
block nbd/server: Allow users to adjust handshake limit in QMP 1 week ago
bsd-user gdbstub: Allow late attachment 2 weeks ago
chardev qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
common-user
configs i386: enable rust hpet for pc when rust is enabled 1 week ago
contrib plugins: fix -Werror=maybe-uninitialized false-positive 3 weeks ago
crypto crypto: Remove qcrypto_tls_session_get_handshake_status 7 days ago
disas disas/hppa: implement mfdiag/mtdiag disassembly 3 weeks ago
docs tcg: Introduce the 'z' constraint for a hardware zero register 3 days ago
dump qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
ebpf ebpf: improve trace event coverage to all key operations 4 months ago
fpu fpu: allow flushing of output denormals to be after rounding 1 week ago
fsdev * pc: Add a description for the i8042 property 5 months ago
gdb-xml target/i386/gdbstub: Expose orig_ax 4 months ago
gdbstub gdbstub: Allow late attachment 2 weeks ago
host/include util/cpuinfo-riscv: Detect Zbs 1 month ago
hw Memory pull request for 10.0 3 days ago
include tcg: Remove last traces of TCG_TARGET_NEED_POOL_LABELS 3 days ago
io io: Add a read flag for relaxed EOF 7 days ago
libdecnumber
linux-headers linux-headers: Update to Linux 6.13-rc1 2 months ago
linux-user linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 3 days ago
migration Memory pull request for 10.0 3 days ago
monitor hmp: use cpu_get_phys_page_debug() in hmp_gva2gpa() 1 week ago
nbd nbd/server: Support inactive nodes 2 weeks ago
net qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
pc-bios target/hppa: Update SeaBIOS-hppa to version 18 3 weeks ago
plugins plugins: Fix qemu_plugin_read_memory_vaddr parameters 3 days ago
po po: update Italian translation 6 months ago
python python: silence pylint raising-non-exception error 3 months ago
qapi Misc HW patches 5 days ago
qga qapi: Move and rename qapi/qmp/dispatch.h to qapi/qmp-registry.h 2 weeks ago
qobject qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
qom qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
replay qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
roms target/hppa: Update SeaBIOS-hppa 2 weeks ago
rust rust: fix doctests 1 week ago
scripts make-release: don't rely on $CWD when excluding subproject directories 1 week ago
scsi qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
semihosting semihosting/meson: Build config.o and console.o once 1 month ago
stats qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
storage-daemon qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
stubs testing and gdbstub updates: 2 weeks ago
subprojects semihosting, plugin and doc updates: 1 month ago
system Memory pull request for 10.0 3 days ago
target target/sparc: fake UltraSPARC T1 PCR and PIC registers 3 days ago
tcg tcg: Remove TCG_TARGET_HAS_{br,set}cond2 from riscv and loongarch64 3 days ago
tests tests/qtest/ufs-test: Add test code for MCQ functionality 4 days ago
tools qemu-vmsr-helper: implement --verbose/-v 7 months ago
trace overall: Remove unnecessary g_strdup_printf() calls 1 week ago
ui trivial patches for 2025-02-14 1 week ago
util overall: Remove unnecessary g_strdup_printf() calls 1 week ago
.b4-config Add a b4 configuration file 1 month ago
.dir-locals.el
.editorconfig editorconfig: update for perl scripts 1 month ago
.exrc
.gdbinit
.git-blame-ignore-revs
.gitattributes rust: patch bilge-impl to allow compilation with 1.63.0 4 months ago
.gitignore
.gitlab-ci.yml
.gitmodules
.gitpublish
.mailmap MAINTAINERS: update email address for Leif Lindholm 2 months ago
.patchew.yml
.readthedocs.yml
.travis.yml Revert "Remove the unused sh4eb target" 4 months ago
COPYING
COPYING.LIB
Kconfig build-sys: Add rust feature option 5 months ago
Kconfig.host hw/core: Add Enclave Image Format (EIF) related helpers 4 months ago
LICENSE
MAINTAINERS * Convert more avocado tests to the functional framework 1 week ago
Makefile contrib/plugins: remove Makefile for contrib/plugins 4 months ago
README.rst README.rst: add the missing punctuations 7 months ago
VERSION Open 10.0 development tree 2 months ago
block.c Block layer patches 2 weeks ago
blockdev-nbd.c nbd/server: Allow users to adjust handshake limit in QMP 1 week ago
blockdev.c Block layer patches 2 weeks ago
blockjob.c block: remove unused BLOCK_OP_TYPE_DATAPLANE 2 weeks ago
configure configure: reenable plugins by default for 32-bit hosts 1 month ago
cpu-common.c include: Rename sysemu/ -> system/ 2 months ago
cpu-target.c Accel & Exec patch queue 2 months ago
event-loop-base.c include: Rename sysemu/ -> system/ 2 months ago
gitdm.config
hmp-commands-info.hx hmp-commands-info.hx: Add missing info command for stats subcommand 8 months ago
hmp-commands.hx hmp/migration: Fix "migrate" command's documentation 10 months ago
iothread.c include: Rename sysemu/ -> system/ 2 months ago
job-qmp.c
job.c
meson.build Memory pull request for 10.0 3 days ago
meson_options.txt * rust: cleanups 4 months ago
module-common.c
os-posix.c os: add an ability to lock memory on_fault 1 week ago
os-win32.c include: Rename sysemu/ -> system/ 2 months ago
page-target.c exec: Expose 'target_page.h' API to user emulation 10 months ago
page-vary-common.c
page-vary-target.c
pythondeps.toml Require meson version 1.5.0 5 months ago
qemu-bridge-helper.c
qemu-edid.c
qemu-img-cmds.hx
qemu-img.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
qemu-io-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
qemu-io.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 weeks ago
qemu-keymap.c qemu-keymap: Release local allocation references 5 months ago
qemu-nbd.c qemu-nbd: Allow users to adjust handshake limit 1 week ago
qemu-options.hx overcommit: introduce mem-lock=on-fault 1 week ago
qemu.nsi license: Simplify GPL-2.0-or-later license descriptions 5 months ago
qemu.sasl
replication.c
trace-events system/dma-helpers.c: Move trace events to system/trace-events 3 months ago
version.rc

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>`_