Official QEMU mirror. Please see https://www.qemu.org/contribute/ for how to submit changes to QEMU. Pull Requests are disabled. Please only use release tarballs from the QEMU website. http://www.qemu.org
  • C 83.3%
  • C++ 6%
  • Python 3.5%
  • Dylan 2.7%
  • Shell 1.2%
  • Other 3%
Find a file
Richard Henderson d29412cca5 RISC-V PR for 11.2
* Add experimental Zvabd extension support
 * Mask vsepc according to IALIGN
 * Reset vCPU on VM reset via MP_STATE_INIT_RECEIVED
 * Improve modeling of the Atlantis UART
 * Fix IOMMU entry leak with ioatc-limit=0
 * Fix integer handling issues in k230_gsdma and k230_decomp_gzip
 * Reclaim invalidated IOATC entries for IOMMU
 * Duct tape fix for QMP and RV profiles introspection
 * Move RISC-V 'Z' CPU properties section to removed features
 * Use TSO barriers instead of full barriers for Ztso
 * Make mnstatus.MNPELP writable with Zicfilp
 * Gate envcfg CBO fields on extensions
 * Fix stale PMP state across reset
 * Use 1ULL for a value we're going to shift by 63
 * Remove unused IMISC macro
 * Encode debug translation ranges in IOMMU
 * Allow regular mstatus MPV/GVA writes again
 * Fix uninitialised upper half in pmu_timer_trigger_irq
 * Fix CPU state access on big-endian hosts
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEaukCtqfKh31tZZKWr3yVEwxTgBMFAmrgREAACgkQr3yVEwxT
 gBPBHxAAmIzV1LXJAxQTvU46+1j+4+mSvGr37byb1iU8yg+dJCNtYpFLHKdNjF0Q
 Fn+5uBL+QJC3rEA0Xbq6iF4EP2GO8t/Qm4rElLmWCw1xzraj7RAZrNJHWCebLp1j
 PLS53gINaQNIuE6DC91mwcuWanKo7q+tvOiwcShaVyUH771J1+1xVOkpcbkQaVrZ
 a54IfHIcs4TIsKrpmxCJPkEuBcL4VtaK5JwcqbeCQQ68v7L7qQpec75t9idr3o25
 Pn/BOsHwkXoJ1qxFuY61JGhUpFKUzZIqd6HKqwv4SENZY+O87J79R9X/HU9H17xh
 B75+h91ZFSZ2luNd2vZCCMx4vOXuCa+YE/m0ZmyyjJnGLA4LHRoeFRmUUu5Dxzkn
 kP+psnaeUfcI6W71d8Dcqov1g1O7MBdVrQD1hzK8IeAuYL438cLZpo9WT6TVX5cn
 /DRCyDR4f6uzf8Lnh0wItJGzSUlW2xadFLu357KsJ0+lpytpmYolOBxUGJXtJu2g
 BSfgQX9y9xhszCbFopngunu3guOlDoHZEJ9l29+tXicezvJxXw+FRyc4EU3onRtz
 zXGWa7sN4XGifzoDorbVcWGpOT2w2LI1himS4N9qXWNCZ4s115xENMVCMDRt6a9Z
 aZRyBib2nbrrgnO4JJbxBUe/MViBfQlc+AuqMmEwrwdP3LRBbZA=
 =qxZ6
 -----END PGP SIGNATURE-----

Merge tag 'pull-riscv-to-apply-20261027' of https://github.com/alistair23/qemu into staging

RISC-V PR for 11.2

* Add experimental Zvabd extension support
* Mask vsepc according to IALIGN
* Reset vCPU on VM reset via MP_STATE_INIT_RECEIVED
* Improve modeling of the Atlantis UART
* Fix IOMMU entry leak with ioatc-limit=0
* Fix integer handling issues in k230_gsdma and k230_decomp_gzip
* Reclaim invalidated IOATC entries for IOMMU
* Duct tape fix for QMP and RV profiles introspection
* Move RISC-V 'Z' CPU properties section to removed features
* Use TSO barriers instead of full barriers for Ztso
* Make mnstatus.MNPELP writable with Zicfilp
* Gate envcfg CBO fields on extensions
* Fix stale PMP state across reset
* Use 1ULL for a value we're going to shift by 63
* Remove unused IMISC macro
* Encode debug translation ranges in IOMMU
* Allow regular mstatus MPV/GVA writes again
* Fix uninitialised upper half in pmu_timer_trigger_irq
* Fix CPU state access on big-endian hosts

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCgAdFiEEaukCtqfKh31tZZKWr3yVEwxTgBMFAmrgREAACgkQr3yVEwxT
# gBPBHxAAmIzV1LXJAxQTvU46+1j+4+mSvGr37byb1iU8yg+dJCNtYpFLHKdNjF0Q
# Fn+5uBL+QJC3rEA0Xbq6iF4EP2GO8t/Qm4rElLmWCw1xzraj7RAZrNJHWCebLp1j
# PLS53gINaQNIuE6DC91mwcuWanKo7q+tvOiwcShaVyUH771J1+1xVOkpcbkQaVrZ
# a54IfHIcs4TIsKrpmxCJPkEuBcL4VtaK5JwcqbeCQQ68v7L7qQpec75t9idr3o25
# Pn/BOsHwkXoJ1qxFuY61JGhUpFKUzZIqd6HKqwv4SENZY+O87J79R9X/HU9H17xh
# B75+h91ZFSZ2luNd2vZCCMx4vOXuCa+YE/m0ZmyyjJnGLA4LHRoeFRmUUu5Dxzkn
# kP+psnaeUfcI6W71d8Dcqov1g1O7MBdVrQD1hzK8IeAuYL438cLZpo9WT6TVX5cn
# /DRCyDR4f6uzf8Lnh0wItJGzSUlW2xadFLu357KsJ0+lpytpmYolOBxUGJXtJu2g
# BSfgQX9y9xhszCbFopngunu3guOlDoHZEJ9l29+tXicezvJxXw+FRyc4EU3onRtz
# zXGWa7sN4XGifzoDorbVcWGpOT2w2LI1himS4N9qXWNCZ4s115xENMVCMDRt6a9Z
# aZRyBib2nbrrgnO4JJbxBUe/MViBfQlc+AuqMmEwrwdP3LRBbZA=
# =qxZ6
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue 27 Oct 2026 01:27:12 AM CDT
# gpg:                using RSA key 6AE902B6A7CA877D6D659296AF7C95130C538013
# gpg: Good signature from "Alistair Francis <alistair@alistair23.me>" [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: 6AE9 02B6 A7CA 877D 6D65  9296 AF7C 9513 0C53 8013

* tag 'pull-riscv-to-apply-20261027' of https://github.com/alistair23/qemu: (29 commits)
  target/riscv: Fix CPU state access on big-endian hosts
  target/riscv: fix uninitialised upper half in pmu_timer_trigger_irq()
  target/riscv/csr.c: allow regular mstatus MPV/GVA writes again
  hw/riscv/riscv-iommu: encode debug translation ranges
  include/hw/intc/riscv_imsic.h: remove unused macro
  target/riscv: Use 1ULL for a value we're going to shift by 63
  target/riscv: pmp: reset the derived PMP bounds and rule count
  target/riscv: pmp: clear A and L on every implemented PMP entry at reset
  target/riscv: gate envcfg CBO fields on extensions
  target/riscv: make mnstatus.MNPELP writable with Zicfilp
  target/riscv: Use TSO barriers instead of full barriers for Ztso
  docs: Move RISC-V 'Z' CPU properties section to removed features
  target/riscv/cpu.c: duct tape fix for QMP + RV profiles introspection
  hw/riscv/riscv-iommu: reclaim invalidated IOATC entries
  hw/riscv/riscv-iommu: serialize IOATC accesses
  hw/dma: fix k230_gsdma integer handling issues
  qtest: fix k230_decomp_gzip test integer handling issues
  hw/misc: use hwaddr for the k230_decomp_gzip input address
  hw/misc: fix calculating input address overflow in k230_decomp_gzip
  hw/misc: fix calculating output address overflow in k230_decomp_gzip
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-27 14:27:13 -05:00
.agents/skills/qemu-codebase agents: Add a skill for finding your way around QEMU 2026-10-05 15:56:02 +02:00
.claude agents: Add a skill for finding your way around QEMU 2026-10-05 15:56:02 +02:00
.gemini agents: Add a skill for finding your way around QEMU 2026-10-05 15:56:02 +02:00
.github/workflows
.gitlab/issue_templates
.gitlab-ci.d ci: add automatic retry 2026-10-21 18:18:33 +00:00
accel tcg: Drop division helpers 2026-10-24 17:14:49 +02:00
audio audio/wavcapture: prevent freq overflow and corrupted WAV header 2026-10-13 17:22:49 +04:00
authz
backends backends/igvm: fix parameter area entries leak 2026-10-21 18:26:52 +02:00
block block/mirror: inherit the source node discard flag in mirror_top 2026-10-16 09:46:54 +03:00
bsd-user bsd-user: Remove host-os.h 2026-09-22 13:07:11 -06:00
chardev baum: send device identity and cell count on protocol off/on 2026-10-24 15:15:24 +02:00
common-user
configs hw/riscv: server platform reference machine 2026-10-16 10:40:38 +10:00
contrib contrib/plugins/uftrace: add support for Hexagon 2026-10-05 21:22:37 +00:00
crypto Revert "crypto: implement workaround for GNUTLS thread safety problems" 2026-10-15 16:52:01 +01:00
disas disas/riscv: Support vabs.v pseudo-instruction 2026-10-26 11:15:05 +10:00
docs RISC-V PR for 11.2 2026-10-27 14:27:13 -05:00
dump dump: reimplement cpu_get_note_size using get_note_size sysemu op 2026-10-22 20:34:01 +00:00
ebpf
fpu
fsdev
gdbstub gdbstub/gdb-xml: Add hexagon sys regs 2026-10-11 21:09:30 -07:00
host/include util/cpuinfo-aarch64: Detect FEAT_CSSC 2026-08-18 17:31:49 -07:00
hw RISC-V PR for 11.2 2026-10-27 14:27:13 -05:00
include RISC-V PR for 11.2 2026-10-27 14:27:13 -05:00
io Revert "io: add support for activating TLS thread safety workaround" 2026-10-15 16:52:00 +01:00
libdecnumber
linux-headers linux-headers: Update to Linux v7.3-rc1 2026-09-11 15:54:47 -04:00
linux-user target/hexagon: implement control flow integrity (CFI) 2026-10-27 07:23:27 -07:00
migration NBD patches through 2026-10-08 2026-10-19 10:54:44 +02:00
monitor chardev: add CHR_EVENT_RESIZE 2026-10-13 17:22:48 +04:00
nbd nbd/server: accept NBD_CMD_CACHE above the maximum payload size 2026-09-02 11:39:46 +03:00
net chardev: add CHR_EVENT_RESIZE 2026-10-13 17:22:48 +04:00
pc-bios HPPA updates for A400 and new SeaBIOS 2026-10-03 14:17:49 +02:00
plugins plugins: fix register handle encoding to reserve NULL as invalid 2026-10-05 21:22:37 +00:00
po
python python 2026-09-03 09:42:53 +01:00
pyvenv
qapi igvm: add command line parameter support 2026-10-21 18:26:40 +02:00
qga qapi: split intros for qga/qapi-schema.json 2026-09-28 08:34:04 +02:00
qobject
qom qom/object.c: introduce object_property_set_alias() function 2026-09-22 10:52:29 +01:00
replay Guard HMP command implementations with CONFIG_HMP 2026-08-29 12:07:45 +04:00
roms target/hppa: Update SeaBIOS-hppa to version 26 2026-10-02 23:39:23 +02:00
rust qom: add tracking of security state of object types 2026-09-17 17:00:44 +01:00
scripts scripts/clean_functional_cache: tolerate missing .stamp files 2026-10-27 07:23:27 -07:00
scsi pr-manager-helper: add PR_HELPER_CLEANUP command support 2026-10-15 10:55:17 +02:00
semihosting semihosting: use new semihosting ops 2026-10-15 19:30:24 +00:00
stats build-sys: make HMP source files conditional on have_hmp 2026-08-29 12:07:45 +04:00
storage-daemon
stubs xen-hvm.c: rename xen_interrupt_controller_init() to xen_i8259_init() 2026-10-23 14:45:31 +01:00
subprojects libvhost-user: return the backend mapping address for added regions 2026-09-11 15:54:47 -04:00
system seccomp: drop redundant match for clone() flags == 0 2026-10-15 13:03:41 +01:00
target RISC-V PR for 11.2 2026-10-27 14:27:13 -05:00
tcg tcg: Generic expansion of remaining atomic operations 2026-10-24 17:14:50 +02:00
tests RISC-V PR for 11.2 2026-10-27 14:27:13 -05:00
tools monitor: move HMP-specific to monitor-hmp-internal.h 2026-08-29 12:07:45 +04:00
trace build-sys: make HMP source files conditional on have_hmp 2026-08-29 12:07:45 +04:00
ui ui/vnc-jobs: assert rect coordinates and dimensions in vnc_job_add_rect 2026-10-13 17:22:49 +04:00
util util/cutils: Add STR_ARRAY_ELEM_OR_NULL() for string table lookups 2026-10-24 11:48:29 +02:00
.b4-config
.dir-locals.el .dir-locals: include QEMU code in PYTHONPATH 2026-10-23 17:31:37 +01:00
.editorconfig
.exrc
.gdbinit
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitlab-ci.yml
.gitlab-map-auto gitlab: update the @user id mapping file 2026-09-18 14:03:32 +01:00
.gitlab-map-manual
.gitmodules
.gitpublish
.mailmap MAINTAINERS: Update PhilMD's email address 2026-09-03 12:22:32 +02:00
.patchew.yml
.readthedocs.yml
.travis.yml
AGENTS.md AGENTS.md: basic bare minimal guide 2026-09-08 15:37:48 +02:00
block.c block: report flush error during bdrv_close() 2026-10-16 09:08:52 -05:00
blockdev-nbd.c
blockdev.c
blockjob.c
Cargo.lock rust: update crates 2026-08-26 16:12:51 +02:00
Cargo.toml rust: bindings: disable more clippy warnings 2026-09-08 19:36:25 +02:00
clippy.toml
configure tests/docker: add container registry to configure and use 2026-09-18 14:02:51 +01:00
COPYING
COPYING.LIB
cpu-common.c
cpu-target.c accel/tcg: fold the dynamic cflags into CPUState::tcg_cflags 2026-09-23 15:10:08 -07:00
event-loop-base.c event-loop-base: fix property typenames 2026-09-08 19:06:36 +04:00
gitdm.config
hmp-commands-info.hx hmp: remove 'vcpu' argument from trace-event help 2026-08-29 12:07:43 +04:00
hmp-commands.hx hmp: fix snapshot_blkdev argument type 2026-08-29 12:07:43 +04:00
iothread.c iothread: fix poll properties typename 2026-09-08 19:06:36 +04:00
job-qmp.c
job.c job: keep job paused across overlapping pause requests 2026-08-17 18:32:44 +03:00
Kconfig
Kconfig.host
LICENSE
MAINTAINERS s390x fixes/features for 11.2: 2026-10-27 14:26:53 -05:00
Makefile
meson.build meson.build: list all remaining softmmu targets as comments 2026-10-24 17:36:09 +00:00
meson_options.txt target/riscv: fix RV32 fixed counter accesses 2026-10-16 10:40:39 +10:00
module-common.c
os-posix.c
os-wasm.c
os-win32.c
page-vary-common.c target-info: rename target-info-impl.h to target-info-def.h 2026-10-09 22:23:33 +00:00
page-vary-system.c target-info: rename target-info-impl.h to target-info-def.h 2026-10-09 22:23:33 +00:00
pythondeps.toml tests: install pylint for functional linters 2026-09-10 12:40:45 +02:00
qemu-bridge-helper.c
qemu-edid.c
qemu-img-cmds.hx
qemu-img.c qemu-img: convert: flush target image after copying 2026-10-16 09:08:52 -05:00
qemu-io-cmds.c qemu-io: propagate errors through Error API instead of printf 2026-08-29 12:07:44 +04:00
qemu-io.c qemu-io: propagate errors through Error API instead of printf 2026-08-29 12:07:44 +04:00
qemu-keymap.c
qemu-nbd.c qemu-nbd: Support -s and -l at the same time 2026-10-16 09:08:52 -05:00
qemu-options.hx igvm: add command line parameter support 2026-10-21 18:26:40 +02:00
qemu.nsi
qemu.sasl
README.rst
replication.c
run.in
target-info-def.c target-info: rename target-info-impl.h to target-info-def.h 2026-10-09 22:23:33 +00:00
target-info-qom.c target-info: rename target-info-impl.h to target-info-def.h 2026-10-09 22:23:33 +00:00
target-info.c target-info: add target_base_riscv 2026-10-24 17:36:09 +00:00
trace-events
VERSION
version.rc

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