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 d6430c17d7 Second RISC-V PR for 10.0
* Reduce the overhead for simple RISC-V vector unit-stride loads and stores
 * Add V bit to GDB priv reg
 * Add 'sha' support
 * Add traces for exceptions in user mode
 * Update Pointer Masking to Zjpm v1.0
 * Add Smrnmi support
 * Fix timebase-frequency when using KVM acceleration
 * Add RISC-V Counter delegation ISA extension support
 * Add support for Smdbltrp and Ssdbltrp extensions
 * Introduce a translation tag for the IOMMU page table cache
 * Support Supm and Sspm as part of Zjpm v1.0
 * Convert htif debug prints to trace event
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEaukCtqfKh31tZZKWr3yVEwxTgBMFAmeMUUwACgkQr3yVEwxT
 gBNgDQ/+JeqcsbJRX+PZQJEV06tDIJpk+mfaBHUYSGdNkjI9fzowNaxFIEB2vaLt
 4+xAGMnJ4vMcjJyBcPOn1FKAlowM7MsUNITOF9Rstnyriqnj2UsUZ9YBtkuG6gWH
 ZHoYEKu7mAZoZw5RRx4TatHDXw7TYfUsrDPrn+x6yeCZTq9ruRTlHkzp2LC725Vq
 KTnbWAP7WlqiJaSxB5eIFYT5tYP1Blp0yD358B037C57EU9j5zm2FQdFmVK1+xRF
 dFg/urBIzfAjjkCS/t9DmH+S6NgMEut6udUhllk/KUJAzWvsggc4wZZlWjFOJFJY
 fIxx3alhY3pcm1PYjFpf15Poz6Pqva/KGjwgZafirKQtPbRSzfRkUwcHOYRTQT9j
 abeiB44XPaeIl8Jvw7GLxcWtlJ5NmBrZho+2Z9mIhB/Ix5H3PDgs18Oc/s73P2qQ
 JFLRb7cpYy1HbRc0ugvwAmOTY1t6HX8HAtT+3rNhiXpXnj4RW2C/WU1cEqrg8QkM
 cTPiy2zHoBhAWt9aDK1Kvbhb1vur3JaF7rk9jeKlriFr87Ly+yPU+8mnEDw40NMR
 Tc9nivqmOqqXS5AM9O/W1uzTWzpxIUy7XBy3cuSk0uZCoge4IE2Or7P2Rb2uyaNZ
 RkAo/PL2N1cMjP7gB3kLRtYY7FA+nal66KhfbHPRHqj+ZwUAxzs=
 =F3IG
 -----END PGP SIGNATURE-----

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

Second RISC-V PR for 10.0

* Reduce the overhead for simple RISC-V vector unit-stride loads and stores
* Add V bit to GDB priv reg
* Add 'sha' support
* Add traces for exceptions in user mode
* Update Pointer Masking to Zjpm v1.0
* Add Smrnmi support
* Fix timebase-frequency when using KVM acceleration
* Add RISC-V Counter delegation ISA extension support
* Add support for Smdbltrp and Ssdbltrp extensions
* Introduce a translation tag for the IOMMU page table cache
* Support Supm and Sspm as part of Zjpm v1.0
* Convert htif debug prints to trace event

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEEaukCtqfKh31tZZKWr3yVEwxTgBMFAmeMUUwACgkQr3yVEwxT
# gBNgDQ/+JeqcsbJRX+PZQJEV06tDIJpk+mfaBHUYSGdNkjI9fzowNaxFIEB2vaLt
# 4+xAGMnJ4vMcjJyBcPOn1FKAlowM7MsUNITOF9Rstnyriqnj2UsUZ9YBtkuG6gWH
# ZHoYEKu7mAZoZw5RRx4TatHDXw7TYfUsrDPrn+x6yeCZTq9ruRTlHkzp2LC725Vq
# KTnbWAP7WlqiJaSxB5eIFYT5tYP1Blp0yD358B037C57EU9j5zm2FQdFmVK1+xRF
# dFg/urBIzfAjjkCS/t9DmH+S6NgMEut6udUhllk/KUJAzWvsggc4wZZlWjFOJFJY
# fIxx3alhY3pcm1PYjFpf15Poz6Pqva/KGjwgZafirKQtPbRSzfRkUwcHOYRTQT9j
# abeiB44XPaeIl8Jvw7GLxcWtlJ5NmBrZho+2Z9mIhB/Ix5H3PDgs18Oc/s73P2qQ
# JFLRb7cpYy1HbRc0ugvwAmOTY1t6HX8HAtT+3rNhiXpXnj4RW2C/WU1cEqrg8QkM
# cTPiy2zHoBhAWt9aDK1Kvbhb1vur3JaF7rk9jeKlriFr87Ly+yPU+8mnEDw40NMR
# Tc9nivqmOqqXS5AM9O/W1uzTWzpxIUy7XBy3cuSk0uZCoge4IE2Or7P2Rb2uyaNZ
# RkAo/PL2N1cMjP7gB3kLRtYY7FA+nal66KhfbHPRHqj+ZwUAxzs=
# =F3IG
# -----END PGP SIGNATURE-----
# gpg: Signature made Sat 18 Jan 2025 20:11:40 EST
# 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-20250119-1' of https://github.com/alistair23/qemu: (50 commits)
  hw/char/riscv_htif: Convert HTIF_DEBUG() to trace events
  target/riscv: Support Supm and Sspm as part of Zjpm v1.0
  hw/riscv/riscv-iommu.c: Introduce a translation tag for the page table cache
  target/riscv: Add Smdbltrp ISA extension enable switch
  target/riscv: Implement Smdbltrp behavior
  target/riscv: Implement Smdbltrp sret, mret and mnret behavior
  target/riscv: Add Smdbltrp CSRs handling
  target/riscv: Add Ssdbltrp ISA extension enable switch
  target/riscv: Implement Ssdbltrp exception handling
  target/riscv: Implement Ssdbltrp sret, mret and mnret behavior
  target/riscv: Add Ssdbltrp CSRs handling
  target/riscv: Fix henvcfg potentially containing stale bits
  target/riscv: Add configuration for S[m|s]csrind, Smcdeleg/Ssccfg
  target/riscv: Add implied rule for counter delegation extensions
  target/riscv: Invoke pmu init after feature enable
  target/riscv: Add counter delegation/configuration support
  target/riscv: Add select value range check for counter delegation
  target/riscv: Add counter delegation definitions
  target/riscv: Add properties for counter delegation ISA extensions
  target/riscv: Support generic CSR indirect access
  ...

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2 days ago
.github/workflows github: fix config mistake preventing repo lockdown commenting 3 years ago
.gitlab/issue_templates .gitlab/issue_templates: Move suggestions into comments 2 years ago
.gitlab-ci.d tests/lcitool: bump to latest version of libvirt-ci 1 week ago
accel accel/tcg: also suppress asynchronous IRQs for cpu_io_recompile 4 days ago
audio include: Rename sysemu/ -> system/ 1 month ago
authz error: Drop superfluous #include "qapi/qmp/qerror.h" 2 years ago
backends backends/cryptodev-vhost-user: Fix local_error leaks 1 week ago
block Revert "vvfat: fix ubsan issue in create_long_filename" 3 weeks ago
bsd-user system: propagate Error to gdbserver_start (and other device setups) 4 days ago
chardev qom: Use object_get_container() 2 weeks ago
common-user common-user/host/ppc: Implement safe-syscall.inc.S 2 years ago
configs target/i386: Reset TSCs of parked vCPUs too on VM reset 1 month ago
contrib plugins: enable linking with clang/lld 4 days ago
crypto include: Rename sysemu/ -> system/ 1 month ago
disas disas/riscv: enable disassembly for compressed sspush/sspopchk 3 months ago
docs docs: add a glossary 4 days ago
dump include: Rename sysemu/ -> system/ 1 month ago
ebpf ebpf: improve trace event coverage to all key operations 3 months ago
fpu softfloat: Add float_muladd_suppress_add_product_zero 4 weeks ago
fsdev * pc: Add a description for the i8042 property 4 months ago
gdb-xml target/i386/gdbstub: Expose orig_ax 3 months ago
gdbstub system: propagate Error to gdbserver_start (and other device setups) 4 days ago
host/include target/i386/hvf: fix handling of XSAVE-related CPUID bits 3 months ago
hw Second RISC-V PR for 10.0 2 days ago
include target/riscv: Handle Smrnmi interrupt and exception 3 days ago
io qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix 4 months ago
libdecnumber libdecnumber/dpd/decimal64: Fix compiler warning from Clang 15 2 years ago
linux-headers linux-headers: Update to Linux 6.13-rc1 1 month ago
linux-user system: propagate Error to gdbserver_start (and other device setups) 4 days ago
migration multifd: bugfix for incorrect migration data with qatzip compression 2 weeks ago
monitor system: propagate Error to gdbserver_start (and other device setups) 4 days ago
nbd include: Rename sysemu/ -> system/ 1 month ago
net net/vmnet: Pad short Ethernet frames 3 weeks ago
pc-bios pc-bios/meson.build: Silent unuseful DTC warnings 1 week ago
plugins plugins: enable linking with clang/lld 4 days ago
po po: update Italian translation 5 months ago
python python: silence pylint raising-non-exception error 2 months ago
qapi qapi/qom: Change Since entry for AcpiGenericPortProperties to 9.2 2 months ago
qga qga: implement a 'guest-get-load' command 2 weeks ago
qobject qobject: remove return after g_assert_not_reached() 4 months ago
qom qom: remove unused field 2 weeks ago
replay include: Rename sysemu/ -> system/ 1 month ago
roms roms: re-add edk2-basetools target 1 month ago
rust rust: qdev: expose inherited methods to subclasses of SysBusDevice 2 weeks ago
scripts semihosting, plugin and doc updates: 4 days ago
scsi qom: Use object_get_container() 2 weeks ago
semihosting semihosting/meson: Build config.o and console.o once 4 days ago
stats include: Rename sysemu/ -> system/ 1 month ago
storage-daemon include: Rename sysemu/ -> system/ 1 month ago
stubs Accel & Exec patch queue 1 month ago
subprojects semihosting, plugin and doc updates: 4 days ago
system semihosting, plugin and doc updates: 4 days ago
target target/riscv: Support Supm and Sspm as part of Zjpm v1.0 3 days ago
tcg tcg/optimize: Move fold_cmp_vec, fold_cmpsel_vec into alphabetic sort 4 weeks ago
tests Second RISC-V PR for 10.0 2 days ago
tools qemu-vmsr-helper: implement --verbose/-v 6 months ago
trace trace: Don't include trace-root.h in control.c or control-target.c 2 months ago
ui qom: Use object_get_container() 2 weeks ago
util util/qemu-timer: fix indentation 1 month ago
.b4-config Add a b4 configuration file 1 week ago
.dir-locals.el
.editorconfig editorconfig: update for perl scripts 4 days ago
.exrc
.gdbinit
.git-blame-ignore-revs metadata: add .git-blame-ignore-revs 2 years ago
.gitattributes rust: patch bilge-impl to allow compilation with 1.63.0 3 months ago
.gitignore configure: rename --enable-pypi to --enable-download, control subprojects too 2 years ago
.gitlab-ci.yml docs: Document GitLab custom CI/CD variables 4 years ago
.gitmodules meson: subprojects: replace berkeley-{soft,test}float-3 with wraps 2 years ago
.gitpublish
.mailmap MAINTAINERS: update email address for Leif Lindholm 1 month ago
.patchew.yml scripts/checkpatch: roll diff tweaking into checkpatch itself 4 years ago
.readthedocs.yml readthodocs: fully specify a build environment 1 year ago
.travis.yml Revert "Remove the unused sh4eb target" 3 months ago
COPYING
COPYING.LIB
Kconfig build-sys: Add rust feature option 4 months ago
Kconfig.host hw/core: Add Enclave Image Format (EIF) related helpers 3 months ago
LICENSE tcg/LICENSE: Remove out of date claim about TCG subdirectory licensing 5 years ago
MAINTAINERS docs: add a glossary 4 days ago
Makefile contrib/plugins: remove Makefile for contrib/plugins 3 months ago
README.rst README.rst: add the missing punctuations 6 months ago
VERSION Open 10.0 development tree 1 month ago
block.c include: Rename sysemu/ -> system/ 1 month ago
blockdev-nbd.c include: Rename sysemu/ -> system/ 1 month ago
blockdev.c include: Rename sysemu/ -> system/ 1 month ago
blockjob.c include: Rename sysemu/ -> system/ 1 month ago
configure configure: reenable plugins by default for 32-bit hosts 4 days ago
cpu-common.c include: Rename sysemu/ -> system/ 1 month ago
cpu-target.c Accel & Exec patch queue 1 month ago
event-loop-base.c include: Rename sysemu/ -> system/ 1 month ago
gitdm.config contrib/gitdm: add group map for AMD 2 years ago
hmp-commands-info.hx hmp-commands-info.hx: Add missing info command for stats subcommand 7 months ago
hmp-commands.hx hmp/migration: Fix "migrate" command's documentation 9 months ago
iothread.c include: Rename sysemu/ -> system/ 1 month ago
job-qmp.c qapi job: Elide redundant has_FOO in generated C 2 years ago
job.c block: remove AioContext locking 1 year ago
meson.build plugins: enable linking with clang/lld 4 days ago
meson_options.txt * rust: cleanups 3 months ago
module-common.c
os-posix.c include: Rename sysemu/ -> system/ 1 month ago
os-win32.c include: Rename sysemu/ -> system/ 1 month ago
page-target.c exec: Expose 'target_page.h' API to user emulation 9 months ago
page-vary-common.c Remove qemu-common.h include from most units 3 years ago
page-vary-target.c exec: Rename target specific page-vary.c -> page-vary-target.c 1 year ago
pythondeps.toml Require meson version 1.5.0 4 months ago
qemu-bridge-helper.c qemu-bridge-helper: relocate path to default ACL 4 years ago
qemu-edid.c qemu-edid: Restrict input parameter -d to avoid division by zero 2 years ago
qemu-img-cmds.hx docs/devel/docs: Document .hx file syntax 1 year ago
qemu-img.c include: Rename sysemu/ -> system/ 1 month ago
qemu-io-cmds.c include: Rename sysemu/ -> system/ 1 month ago
qemu-io.c include: Rename sysemu/ -> system/ 1 month ago
qemu-keymap.c qemu-keymap: Release local allocation references 4 months ago
qemu-nbd.c include: Rename sysemu/ -> system/ 1 month ago
qemu-options.hx Remove the deprecated "-runas" command line option 2 weeks ago
qemu.nsi license: Simplify GPL-2.0-or-later license descriptions 4 months ago
qemu.sasl sasl: remove comment about obsolete kerberos versions 4 years ago
replication.c replication: move include out of root directory 4 years ago
trace-events system/dma-helpers.c: Move trace events to system/trace-events 2 months ago
version.rc configure: remove CONFIG_FILEVERSION and CONFIG_PRODUCTVERSION 4 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>`_