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
  • C 82.9%
  • C++ 6.2%
  • Python 3.4%
  • Dylan 2.8%
  • Shell 1.5%
  • Other 3%
Find a file
Stefan Hajnoczi 405c32d2b1 Merge tpm 2026/06/01 v1
-----BEGIN PGP SIGNATURE-----
 
 iQEzBAABCgAdFiEEuBi5yt+QicLVzsZrda1lgCoLQhEFAmod/1EACgkQda1lgCoL
 QhGFmwf/SDA8DQGekVksB+TiDV11a+2I8FzBHJmQ2RhKbSGxY77ZbWei+Z45fU9/
 2e0aDizw7GDRPGthKChjOYA5SAVf7gwUaSkhv21xDNgsddcdCr05y1RljOfShtbw
 S55XOk6Tx2zX/00nTqskyw9bqz2YwnAh5vPjfDWy6TV5k7Q3BlMyooFeJu/19pU7
 RnMLfHdJHlYSQ2Bn4ZT6agXsoQIvnJK51Poq0TJQo0PW8kWFwcp13Ic+uyvRfkF3
 U6JdTGBXJxCHMgIkO4EG4o5PT7Dy8miKFepJCUgyjHesi7iFYQlIAnsJth9anMjL
 zoqnMVNN1jVrcuzVLG9oNHB7+hZ/Eg==
 =Wlez
 -----END PGP SIGNATURE-----

Merge tag 'pull-tpm-2026-06-01-1' of https://github.com/stefanberger/qemu-tpm into staging

Merge tpm 2026/06/01 v1

# -----BEGIN PGP SIGNATURE-----
#
# iQEzBAABCgAdFiEEuBi5yt+QicLVzsZrda1lgCoLQhEFAmod/1EACgkQda1lgCoL
# QhGFmwf/SDA8DQGekVksB+TiDV11a+2I8FzBHJmQ2RhKbSGxY77ZbWei+Z45fU9/
# 2e0aDizw7GDRPGthKChjOYA5SAVf7gwUaSkhv21xDNgsddcdCr05y1RljOfShtbw
# S55XOk6Tx2zX/00nTqskyw9bqz2YwnAh5vPjfDWy6TV5k7Q3BlMyooFeJu/19pU7
# RnMLfHdJHlYSQ2Bn4ZT6agXsoQIvnJK51Poq0TJQo0PW8kWFwcp13Ic+uyvRfkF3
# U6JdTGBXJxCHMgIkO4EG4o5PT7Dy8miKFepJCUgyjHesi7iFYQlIAnsJth9anMjL
# zoqnMVNN1jVrcuzVLG9oNHB7+hZ/Eg==
# =Wlez
# -----END PGP SIGNATURE-----
# gpg: Signature made Mon 01 Jun 2026 17:53:21 EDT
# gpg:                using RSA key B818B9CADF9089C2D5CEC66B75AD65802A0B4211
# gpg: Good signature from "Stefan Berger <stefanb@linux.vnet.ibm.com>" [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: B818 B9CA DF90 89C2 D5CE  C66B 75AD 6580 2A0B 4211

* tag 'pull-tpm-2026-06-01-1' of https://github.com/stefanberger/qemu-tpm:
  tpm_emulator: Disconnect if response exceeds negotiated buffer size
  tpm_emulator: Reject a buffer size different than what was requested
  hw/tpm: Add support for VM migration with TPM CRB chunking
  test/qtest: Add test for tpm crb chunking
  hw/tpm: Implement TPM CRB chunking logic
  hw/tpm: Add internal buffer state for chunking
  hw/tpm: Refactor CRB_CTRL_START register access
  hw/tpm: Add TPM CRB chunking fields
  ui/vdagent: Use VMSTATE_GBYTEARRAY to safely migrate outbuf
  migration/vmstate: Add VMState support for GByteArray
  tests: Add a TPM TIS I2C swtpm test
  tests: Check whether the I2C master flag is set
  tests: Rename id of tpmdev to tpm0
  tests: Convert string arrays to byte arrays
  tests: Have TPM I2C read/write functions take QTestState as first parameter
  tests: Move TPM I2C bus read/write functions to common files

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2026-06-02 11:34:56 -04:00
.github/workflows
.gitlab/issue_templates gitlab: update issue template for binary test cases 2026-05-28 21:32:08 +01:00
.gitlab-ci.d gitlab: work around the inability to build targets for MacOS 2026-06-01 17:16:10 +01:00
accel testing updates (gitlab, MacOS, MAINTAINERS) 2026-05-29 12:58:13 -04:00
audio audio: Use unsigned PCM bias 2026-04-28 18:53:58 +04:00
authz qom: drop user_creatable_add_type method 2026-05-21 12:39:54 +01:00
backends tpm_emulator: Disconnect if response exceeds negotiated buffer size 2026-06-01 19:44:39 +00:00
block block/linux-aio: bound ioq_submit() recursion depth 2026-05-25 11:17:23 -04:00
bsd-user bsd-user: Add call to do_bsd_ioctl and add bsd-ioctl.c to the build 2026-05-06 20:20:37 -06:00
chardev ui/input: Remove QAPI wrappers from QemuInputEvent 2026-05-25 01:00:54 +04:00
common-user buildsys: Remove MIPS TCG backend 2026-05-21 08:20:58 +02:00
configs configs/target: Implement per-binary TargetInfo structure for riscv 2026-05-27 08:50:37 +02:00
contrib MAINTAINERS: Update PhilMD's email address 2026-05-27 12:27:22 +02:00
crypto crypto: fix client side anonymous TLS credentials 2026-05-21 12:39:54 +01:00
disas disas: diassemble RISC-V xlrbr (crc32) instructions 2026-04-29 11:41:00 +10:00
docs docs/devel/tcg-ops: Fix reStructuredText format 2026-05-29 13:03:39 -07:00
dump dump: enhance dump_state_prepare fd initialization 2026-03-17 21:15:10 +04:00
ebpf cocci: Do not initialize variable used by QSLIST_FOREACH macro 2026-05-06 16:10:46 +02:00
fpu fpu: Export floatN_minmax 2026-05-22 11:21:37 -07:00
fsdev hw/9pfs: change V9fsPath.size to size_t and v9fs_path_sprintf() return type 2026-06-01 11:11:39 +02:00
gdbstub gdbstub: Generate a single gdbstub-xml.c / gdb_static_features[] 2026-03-10 17:12:18 -07:00
host/include meson: Drop host_arch rename for riscv64 2026-01-17 10:46:07 +11:00
hw hw/tpm: Add support for VM migration with TPM CRB chunking 2026-06-01 19:42:38 +00:00
include hw/tpm: Add TPM CRB chunking fields 2026-06-01 19:42:38 +00:00
io io: invert the return semantics of qio_channel_flush 2026-05-21 12:39:54 +01:00
libdecnumber
linux-headers linux-headers: Update to Linux v7.1-rc4 2026-05-27 10:41:47 +02:00
linux-user linux user patches 2026-06-01 08:43:13 -04:00
migration migration/vmstate: Add VMState support for GByteArray 2026-06-01 19:32:49 +00:00
monitor monitor/hmp-cmds: Use cpu_translate_for_debug() 2026-05-12 22:35:54 +02:00
nbd block: Add flags parameter to blk_*_pdiscard() 2026-05-19 17:25:48 +02:00
net -----BEGIN PGP SIGNATURE----- 2026-05-29 12:58:04 -04:00
pc-bios roms/opensbi: Update to v1.8.1 2026-05-22 09:45:46 +10:00
plugins plugins/api.c: Use cpu_translate_for_debug() 2026-05-12 22:35:54 +02:00
po
python python: bump qemu.qmp to v0.0.6 2026-05-21 12:39:54 +01:00
pyvenv meson, mkvenv: add functests custom target 2026-02-23 13:24:42 -05:00
qapi qapi/net: Drop unused type String 2026-05-21 13:11:05 +02:00
qga qga: Fix VSS provider GetSnapshotProperties return value 2026-02-18 11:27:57 +02:00
qobject json-parser: constify JSONToken 2026-05-25 16:52:31 +02:00
qom qom: drop user_creatable_add_type method 2026-05-21 12:39:54 +01:00
replay replay: Use Linux key codes 2026-05-25 02:01:14 +04:00
roms roms/opensbi: Update to v1.8.1 2026-05-22 09:45:46 +10:00
rust migration: Remove VMS_MULTIPLY_ELEMENTS and VMSTATE_VARRAY_MULTIPLY() 2026-05-19 16:23:13 -04:00
scripts replay: Use Linux key codes 2026-05-25 02:01:14 +04:00
scsi scsi/pr-manager-helper: free path on finalization 2026-05-11 23:59:33 +04:00
semihosting semihosting: Build stubs once 2026-03-08 23:08:41 +01:00
stats
storage-daemon storage-daemon: use same link arguments as other tools 2026-04-23 12:27:27 +02:00
stubs monitor: Remove target_monitor_defs() 2026-05-06 12:58:08 +02:00
subprojects hw/remote: update libvfio-user subproject 2026-05-20 15:05:20 +02:00
system system/qtest: Fix length parameter in the b64write code 2026-05-28 17:53:49 +02:00
target pull-loongarch-20260601 2026-06-01 08:43:39 -04:00
tcg tcg: Optimize INDEX_op_mul[us]2 for 0 and 1 2026-05-29 13:03:58 -07:00
tests test/qtest: Add test for tpm crb chunking 2026-06-01 19:42:38 +00:00
tools ui/input: Remove unused QKeyCode helpers and keymaps 2026-05-25 02:01:35 +04:00
trace monitor: Extract completion declarations to 'monitor/hmp-completion.h' 2026-05-06 12:58:07 +02:00
ui ui/vdagent: Use VMSTATE_GBYTEARRAY to safely migrate outbuf 2026-06-01 19:32:49 +00:00
util buildsys: Remove support for MIPS hosts 2026-05-21 08:20:58 +02:00
.b4-config
.dir-locals.el
.editorconfig
.exrc
.gdbinit
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitlab-ci.yml
.gitmodules
.gitpublish
.mailmap mailmap: Update email addresses for Andrew Jones 2026-05-28 18:44:08 +02:00
.patchew.yml
.readthedocs.yml
.travis.yml
block.c block: Fix references in bdrv_bsc_*() function comments 2026-03-31 14:52:06 +02:00
blockdev-nbd.c
blockdev.c block: Fix BDS use after free during shutdown 2025-12-15 17:31:08 +01:00
blockjob.c block: rename block/aio-wait.h to qemu/aio-wait.h 2025-12-27 10:11:12 +01:00
clippy.toml
configure configure: use debian-all-test-cross for mipsel tcg tests 2026-06-01 17:16:28 +01:00
COPYING
COPYING.LIB
cpu-common.c
cpu-target.c
event-loop-base.c
gitdm.config
hmp-commands-info.hx monitor: Do not check multiple TARGET_* to build 'info tlb' command 2026-05-06 12:58:08 +02:00
hmp-commands.hx monitor: fix missing spaces in screendump help text 2026-05-28 17:53:49 +02:00
iothread.c qapi/iothread: introduce poll-weight parameter for aio-poll 2026-04-29 11:31:44 -04:00
job-qmp.c
job.c block: rename block/aio-wait.h to qemu/aio-wait.h 2025-12-27 10:11:12 +01:00
Kconfig dump: Build stubs once for non-x86 targets 2026-01-22 10:48:46 +01:00
Kconfig.host
LICENSE
MAINTAINERS target-arm queue: 2026-05-29 12:58:25 -04:00
Makefile Revert "Makefile: include tests/Makefile.include before ninja calculation" 2026-06-01 17:16:10 +01:00
meson.build meson.build: move some subdir before system lib creation 2026-05-28 18:43:46 +02:00
meson_options.txt Remove the deprecated glusterfs block driver 2026-05-19 17:25:48 +02:00
module-common.c
os-posix.c
os-wasm.c
os-win32.c
page-vary-common.c page-vary: Build finalize_target_page_bits as common code 2026-02-26 00:12:07 +01:00
page-vary-system.c page-vary: Build migration_legacy_page_bits as common code 2026-02-26 00:12:12 +01:00
pythondeps.toml python: bump qemu.qmp to v0.0.6 2026-05-21 12:39:54 +01:00
qemu-bridge-helper.c
qemu-edid.c
qemu-img-cmds.hx
qemu-img.c
qemu-io-cmds.c qemu-io: Add 'aio_discard' command 2026-05-19 17:25:48 +02:00
qemu-io.c
qemu-keymap.c qemu-keymap: Use Linux key codes 2026-05-25 02:01:35 +04:00
qemu-nbd.c
qemu-options.hx qemu-options: document -chardev dbus 2026-05-09 18:54:16 +04:00
qemu.nsi
qemu.sasl
README.rst
replication.c
run.in run: introduce a script for running devel commands 2025-12-27 10:11:12 +01:00
target-info-qom.c hw/riscv: Register generic riscv[32|64] QOM interfaces 2026-05-27 08:03:27 +02:00
target-info-stub.c target-info: introduce TargetInfo in QOM 2026-05-14 10:41:17 -07:00
target-info.c target-info: Add target_riscv64() 2026-05-27 08:50:37 +02:00
trace-events
VERSION Open 11.1 development tree 2026-04-22 14:19:37 -04:00
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>`_