Commit Graph
3984 Commits
Author SHA1 Message Date
Emmanuel Blot e41e23f7a7 docs/system/arm/aspeed: add the sanmiguel-bmc machine
The Facebook SanMiguel BMC machine is supported by hw/arm but has never
been listed in the Aspeed documentation. Add it to the AST2600 machine
table.

Reviewed-by: Jamin Lin <jaminlin1207@gmail.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Emmanuel Blot <emmanuel.blot@free.fr>
Link: https://lore.kernel.org/qemu-devel/20261015-bmc-minerva-v3-2-7d50c8a108e5@free.fr
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2026-10-31 06:52:19 +01:00
Emmanuel Blot 191128528c docs/system/arm/aspeed: add the catalina-bmc machine
The Facebook Catalina BMC machine is supported by hw/arm but has never
been listed in the Aspeed documentation. Add it to the AST2600 machine
table.

While at it, shorten the document title. Listing every machine name in
the title duplicates the tables right below it, and made the title (and
its underline) grow past 350 columns. The machine list stays available
where it is readable, in the per-SoC tables.

Reviewed-by: Jamin Lin <jaminlin1207@gmail.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Emmanuel Blot <emmanuel.blot@free.fr>
Link: https://lore.kernel.org/qemu-devel/20261015-bmc-minerva-v3-1-7d50c8a108e5@free.fr
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2026-10-31 06:52:19 +01:00
Jamin Lin 1fe4175dd7 docs/system/arm/aspeed: Add AST1080 Platform Root of Trust evaluation board
Update the Aspeed AST10x0 documentation to include the AST1080
evaluation board.

The documentation now describes:
- AST1080 as a Platform Root of Trust processor
- AST1080 Cortex-M4F CPU frequency running at 400 MHz

Also add the ast1080-evb machine entry to the supported AST10x0 SoC
based machine list.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20261015063625.186708-10-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2026-10-31 06:52:19 +01:00
Kevin Wolf 6ea787b258 virtio-blk: Deprecate silent truncation of serial
Commit a8686a9b, which made serial a qdev property instead of relying on
-drive options, accidentally allowed specifying serial strings of
arbitraty length while the virtio-blk protocol can only communicate 20
characters to the guest. This means that a longer serial number on the
command line is silently truncated to 20 characters from the guest
perspective.

This is obviously bad behaviour. People are specifying longer serials in
practice and guests will see something different than what was
configured. Instead of silent truncation, this should be an error.

Deprecate the silent truncation for now as a first step towards making
it an error later.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20261029231001.194240-4-kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2026-10-30 15:31:33 -04:00
Richard Henderson 7f36b1fbeb Merge tag 'pull-tcg-20261030' of https://gitlab.com/rth7680/qemu into staging
accel/tcg: Fix false awakening of gdb
accel/tcg: Do not flush and retry in place in tb_gen_code
tcg: Adjust NONNULL annotation on *_diff functions
tcg: Add tcg_gen_lea_{i32,i64,tl}
target/alpha: Use tcg_gen_lea_i64 for S{4,8}ADD{L,Q}
target/loongarch: Use tcg_gen_lea_tl for ALSL
target/riscv: Use tcg_gen_lea_tl for SH*ADD
target/s390x: Use tcg_gen_lea_i64 in get_address
target/i386: Use tcg_gen_lea_tl in gen_lea_modrm_1
target/mips: Use tcg_gen_lea() for [D]LSA and MXU S32LD*V opcodes

# -----BEGIN PGP SIGNATURE-----
#
# iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmrkmGIdHHJpY2hhcmQu
# aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV/5Xgf9HJVBSOjBsW69SkQD
# 353u0YoAsfNCly6zSEqevaGqKZxRVwqyI1C6NzlP8e7FraxKphJGdizH6W3LeNia
# M6laDKkcnoPNkHDfHajZAkK8l7Uu7jW7CMf6jN21ZHSjUXf6RV9Oqbx1ZL5HtyF8
# CoGfuQPtruHu8ajPQKyWiCLf+8noDRVLug70lIjF65y7SET/YrbbcySFKZvUzdaV
# hwofOFe785bhKyvWeOGJldo/zP5UsqEn4qYIoeHWyBUIttP9p2E25Dzym4mC0lG/
# n5p5a4x54m4kCi3ORa3kb/zhrAEv7RO3j1lSmnDQdw3mE3nHIPiIqnf163Jg2akg
# AyEBiQ==
# =szoO
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri 30 Oct 2026 08:15:14 AM CDT
# gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg:                issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [ultimate]

* tag 'pull-tcg-20261030' of https://gitlab.com/rth7680/qemu:
  tcg/s390x: Implement INDEX_op_lea
  tcg/riscv64: Implement INDEX_op_lea
  tcg/aarch64: Implement INDEX_op_lea
  tcg/loongarch64: Implement INDEX_op_lea
  tcg/loongarch64: Import SLADD insns
  tcg/x86_64: Implement INDEX_op_lea
  tcg/x86_64: Introduce TCG_REG_NONE
  target/i386: Use tcg_gen_lea_tl in gen_lea_modrm_1
  target/s390x: Use tcg_gen_lea_i64 in get_address
  target/riscv: Use tcg_gen_lea_tl for SH*ADD
  target/mips: Use tcg_gen_lea() for [D]LSA and MXU S32LD*V opcodes
  target/loongarch: Use tcg_gen_lea_tl for ALSL
  target/alpha: Use tcg_gen_lea_i64 for S{4,8}ADD{L,Q}
  tcg/optimize: Handle INDEX_op_lea
  tcg: Add tcg_gen_lea_{i32,i64,tl}
  tcg: Add INDEX_op_lea
  accel/tcg: Do not flush and retry in place in tb_gen_code
  accel/tcg: Fix false awakening of gdb
  tcg: Adjust NONNULL annotation on *_diff functions

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-30 08:16:19 -05:00
Richard Henderson a075f67f45 tcg: Add INDEX_op_lea
Add an opcode for compound address formation.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-30 07:06:15 -05:00
Stanley Jhu 86d74cbea5 docs/system/ufs: Update task management request support status
The task management request (TMR) handling implemented for UFS supports
QUERY TASK and ABORT TASK, while other task management functions return
TASK MANAGEMENT FUNCTION NOT SUPPORTED. Update the documentation in
ufs.rst to reflect the current implementation by removing the outdated
note under nutmrs and updating the Limitations section accordingly.

Signed-off-by: Stanley Jhu <stanleyjhu@google.com>
Reviewed-by: Jeuk Kim <jeuk20.kim@samsung.com>
Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
2026-10-30 17:00:58 +09:00
Richard Henderson b574eaf640 Merge tag 'for_upstream' of https://git.kernel.org/pub/scm/virt/kvm/mst/qemu into staging
pci, vhost, virtio, iommu, acpi: features, fixes

multiboot can again load 64 bit images
vdpa-dev now implements guest_notifier_mask/pending
pci bridge can now configure the negotiated bandwidth
tap can now auto-detect host mtu and expose to guest
amd iommu can now attach on non system bus
vhost-user spec now has its own mailing list

Fixes, cleanups all over the place.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

# -----BEGIN PGP SIGNATURE-----
#
# iQFDBAABCgAtFiEEXQn9CHHI+FuUyooNKB8NuNKNVGkFAmrjkJ0PHG1zdEByZWRo
# YXQuY29tAAoJECgfDbjSjVRpY1YH/0r+PhxgcRVVrroGkIxaTaPfOpTj1UkGPmND
# OcjcVCKPXBJF+rve1ZOE4HF8VvbEU1fD1tJ6w+Hto78tjmaVEDvE7gVbhX3YRHv9
# LubC75aTJBYixn/wcS/LUyLAf50+3DD3T+yy83obaJmxHwFyO3CJh2CIMSQxTbSe
# zGPA0noriSSMKEnfbTtikj6NHvFIhdnYipkUaWjGefEbdzXumBhcAF2C7eee9H5m
# 1Nz1Zvjx7BMoArviiZ6EWpGwWPBp0fKwTa7Idcv9K5v6YfWhgVp/gPploCCvulEA
# SMYRqQbbQ41801jR8kY9mV5w5ZFUeNENqplbOR3y6dYtr2w+H2k=
# =JvkM
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 29 Oct 2026 01:29:49 PM CDT
# gpg:                using RSA key 5D09FD0871C8F85B94CA8A0D281F0DB8D28D5469
# gpg:                issuer "mst@redhat.com"
# gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" [unknown]
# gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>" [unknown]
# gpg: WARNING: The key's User ID is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
#      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469

* tag 'for_upstream' of https://git.kernel.org/pub/scm/virt/kvm/mst/qemu: (77 commits)
  virtio-net: add mtu-from-tap property for automatic MTU detection
  net: add generic get_mtu NetClientInfo callback
  net/tap: add tap_fd_get_mtu() to query host tap MTU
  hw/virtio/virtio-mem: Fix error message on invalid NUMA node
  intel_iommu_accel: Teardown FAULTQ resources in bottom half
  intel_iommu_accel: Accept PRQ response for passthrough device
  intel_iommu_accel: Add PRQ injection for passthrough device
  backends/iommufd: Extend iommufd_backend_alloc_hwpt() with fault_id
  backends/iommufd: Introduce iommufd_backend_alloc_faultq
  intel_iommu_accel: Guard VTDAccelPASIDCacheEntry definition
  amd_iommu: Allow IOMMU to attachment on non-system (pcie.0) bus
  acpi-build: Create PCI topology using amd iommu root bus
  amd_iommu: Introduce root bus
  i386/kvm: Use x86_iommu_device_get() for per-device IOMMU lookup
  intel_iommu: Add support for get_x86_iommu callback
  amd_iommu: Add support for get_x86_iommu callback
  x86-iommu: Introduce x86_iommu_device_get() for x86-iommu retrieval
  amd_iommu: Assign ioapic_as only when interrupt remapping is supported.
  vhost-user: add dedicated mailing list
  virtio-snd: don't use virtio_snd_pcm_get_stream() in virtio_snd_post_load()
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-29 13:47:40 -05:00
Stefano Garzarella 7bb83375c7 vhost-user: add dedicated mailing list
During the "Virtio and Vhost-User Ecosystem for Production and
Automotive Systems" BoF at LPC 2026 [1] we discussed and agreed on
creating a new vhost-user mailing list, mainly for changes to the
specification and discussions around the protocol.

The main reason is that the vhost-user specification is also used
by other VMMs and implemented by several back-ends outside the QEMU
repository, whose developers often do not follow qemu-devel.

Add a paragraph in the specification about the new mailing list and
a dedicated MAINTAINERS entry for the vhost-user protocol, covering
the specification, the QEMU front-end and libvhost-user (back-end
library).

[1] https://lpc.events/event/20/contributions/2365/

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20261023162441.89450-1-sgarzare@redhat.com>
2026-10-29 14:27:25 -04:00
David Vrabel 73962cc5f0 hw/pci-bridge: Add generic PCIe switch upstream and downstream ports
The TI XIO3130 PCIe switch is a vintage Gen1 device, so we add generic
PCIe upstream and downstream port devices that are Gen6.

In guests with pairs of passthrough PCIe devices (e.g, a GPU+NIC pair)
often need to place the devices behind a common (emulated) PCIe switch
so in-guest software (such as NCCL) can correctly determine that P2P
transactions between the devices is possible.

NCCL also needs to be able to determine the available PCIe
bandwidth. If such a guest sees the TI XIO3130 PCIe switch, then it
incorrectly calculates only 2.5 GT/s and x1 is available, but the real
hardware might be 32 GT/s and x16.

Instead of enhancing the existing switch and claiming it is more
capable than the real hardware we add additional generic PCIe upstream
and downstream port devices, which matches the existing generic PCIe
root port device.

The speed and width of the ports are configurable.

Signed-off-by: David Vrabel <david.vrabel@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260928152431.310363-2-david.vrabel@nutanix.com>
2026-10-29 14:27:25 -04:00
Michael S. Tsirkin 82b5c5d4b7 vhost-user: fix SET_MEM_TABLE number of regions
vhost-user.rst says the legacy SET_MEM_TABLE contains 8 regions, but
this does not make sense - we have a num_regions field for this.
And it is not true in practice: if QEMU has less, it sends less.

The incorrect wording was introduced, without explanation, as
part of an editorial cleanup. Probably an oversight.

It's really "up to 8".

Fixes: b87ea798eb ("docs: fix vhost-user protocol doc")
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Cc: luzhixing12345 <luzhixing12345@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <712e301bf7f815412fb264de8159cb3475bd237a.1789469028.git.mst@redhat.com>
2026-10-28 12:26:09 -04:00
Bernhard Beschow 6dfdff00b0 hw/arm/sabrelite: Have 4 CPUs and 1 GiB of RAM by default
Having four CPUs and 1 GiB of RAM matches real hardware. Fix the machine
defaults to make its use more ergonomic and less error-prone. Also
reflect this in the board documentation.

To reproduce the old default behavior for e.g. migration purposes,
`-smp 1 -m 128M` needs to be passed on the command line.

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Bin Meng <bin.meng@processmission.com>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <20261006083445.30362-8-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
2026-10-28 09:25:38 +01:00
Bernhard Beschow 0d3753b511 docs, tests/functional: Drop redundant CLI arguments in imx8m*-evk invocations
Both boards provide defaults matching real hardware. No need to ask
users to repeat these. Also, remove these redundant arguments from the
functional tests such that the defaults get tested.

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Bin Meng <bin.meng@processmission.com>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <20261006083445.30362-7-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
2026-10-28 09:25:37 +01:00
Richard Henderson d29412cca5 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
Brian Cain ef328b0c21 Hexagon: add v85 CPU model
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Reviewed-by: Marco Liebel <marco.liebel@oss.qualcomm.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
2026-10-27 07:23:27 -07:00
Philippe Mathieu-Daudé 11409db6c3 docs: Move RISC-V 'Z' CPU properties section to removed features
RISC-V 'Z' CPU properties were removed in commit 455c0fa9ee,
for the release v10.1.0. Move the corresponding section from
deprecated.rst to removed-features.rst, adjusting the wording
accordingly.

Fixes: 455c0fa9ee ("target/riscv: remove capital 'Z' CPU properties")
Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20261020075927.56983-1-philmd@oss.qualcomm.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2026-10-26 11:15:06 +10:00
Portia Stephens fd559e1273 docs/atlantis: Update Atlantis UART documentation
Update Atlantis documentation to describe the DesignWare UART used.

Signed-off-by: Portia Stephens <portias@oss.tenstorrent.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20261015002849.1640109-4-portias@oss.tenstorrent.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2026-10-26 11:15:06 +10:00
Peter Maydell 05c14358d5 target/arm: Deprecate using named CPU models with KVM
Currently when using KVM on Arm, the normal thing is to use either
the 'host' or 'max' CPU types, both of which give the guest the same
CPU as the host.  We also for legacy reasons allow 'cortex-a53' and
'cortex-a57' CPU types, which will only work when the host CPU is
exactly that matching CPU.  This is because the original idea of the
KVM ABI was that userspace would request a particular CPU type by
setting the target field in the KVM_ARM_VCPU_INIT ioctl to an
appropriate KVM_ARM_TARGET_* constant.  However, it quickly became
clear that this was a bad idea, and now everything uses
KVM_ARM_TARGET_GENERIC_V8; the tiny number of existing CPU-specific
target values behave identically to GENERIC_V8 except that they will
only work if the host CPU matches them.

Future support for "show the KVM guest a CPU type that's not
identical to the host" is going to work by telling it different ID
register values.  Real Cortex-A53 and A57 CPUs are now all over a
decade old and not in widespread use.  Deprecate the ability to use
'-cpu cortex-a53' and '-cpu cortex-a57' with KVM, to get rid of this
odd legacy corner and open up the opportunity in future to support
named CPU types via ID register settings if we want that.

For any situation where the cortex-a53 and cortex-a57 CPU types
currently work with KVM, '-cpu host' or '-cpu max' will have
identical behaviour.  (Though note that if you are using "KVM, but
fall back to TCG" then the fallback under TCG will be different.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Khushit Shah <khushit.shah@nutanix.com>
Message-id: 20261013105147.1070641-1-peter.maydell@linaro.org
2026-10-23 10:00:08 +01:00
Luigi Leonardi edd5339a08 docs/system/igvm: document MADT, COMMAND_LINE and DEVICE_TREE directives
The MADT and DEVICE_TREE directives were added without updating the
list of supported directives. Document them, together with the
COMMAND_LINE directive added in the previous patch.

Suggested-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-ID: <20261019-igvm_command_line-v3-2-29aeacbd6cd7@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2026-10-21 18:26:46 +02:00
Richard Henderson 288b6c9e78 Merge tag 'pull-nbd-2026-10-08-v4' of https://gitlab.com/ebblake/qemu into staging
NBD patches through 2026-10-08

Several fixes, including:
- Eric Blake: Update MAINTAINERS, support qemu-nbd -s -l
- Fiona Ebner: Report flush error on qemu-img convert
- Denis V. Lunev: Fix postcopy dirty bitmap migration
- Eric Farman: Several iotest improvements

# -----BEGIN PGP SIGNATURE-----
#
# iQEzBAABCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAmrSQYoACgkQp6FrSiUn
# Q2qilAf/eEx7WDxnMW9/xNQ0xwFCJFfcwF7alPfORNS/tTQk+a1CpvvXVXqWNGc1
# JIBQQtCbBteGh6QOlHE1uedZpeURgWluaOa3ZOmjWoB8xCo9iIz66lvMmV4+OaJM
# iTn1ExR/rFGFoNu73S5+Zbusc3znWrClZmYIw1XPfM3pgol8HIz68q284oqkkMQ+
# ddo1GnWbsZKd1e+90A0mZTFrqFEcUZiVaUbY+NCxo/OYFUwNGSxg/+QMIASJbv6H
# zDUrs1+oC1d0qiaM8Rg6/V4dgfSsgxd4t0k+h5r1mJIQT9spevz6/2R44bAinPso
# Mirbenl/KVOk30lvNAiQRRta8KsTVQ==
# =iDnD
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri 16 Oct 2026 05:23:54 PM CEST
# gpg:                using RSA key 71C2CC22B1C4602927D2F3AAA7A16B4A2527436A
# gpg: Good signature from "Eric Blake <eblake@redhat.com>" [unknown]
# gpg:                 aka "Eric Blake (Free Software Programmer) <ebb9@byu.net>" [unknown]
# gpg:                 aka "[jpeg image of size 6874]" [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: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A

* tag 'pull-nbd-2026-10-08-v4' of https://gitlab.com/ebblake/qemu:
  iotests/iothreads-nbd-export: Skip on s390
  iotests/fuse-truncate: skip if FUSE is not usable
  iotests/nbd-tls-iothread: skip on non-x86 hardware
  iotests/nbd-in-qcow2-chain: use default machine
  iotests/migrate-bitmaps-postcopy-test: add a bitmap on a second node
  migration/block-dirty-bitmap: fix postcopy abort with bitmaps on several nodes
  migration: add QEMU_COUNTED_STRING_SIZE for counted string buffers
  qemu-img: convert: flush target image after copying
  block: report flush error during bdrv_close()
  iotests.py: add filter_qemu()
  iotests: add test cases for failing flush after qemu-img convert
  qemu-nbd: Support -s and -l at the same time
  maint: Update eblake's staging repo

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-19 10:54:44 +02:00
Paolo Bonzini e77a38d894 tcg/tests: add an alias for all TCG tests of a target
Allow building (without running) all the TCG tests that are available
for a target, so that they can be run manually.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Link: https://lore.kernel.org/qemu-devel/20261017073952.1346449-1-pbonzini@redhat.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
2026-10-17 17:40:25 +00:00
Eric Blake 67a2606004 qemu-nbd: Support -s and -l at the same time
qemu-nbd already has the ability to wrap a read-write layer on top of
the export of a read-only image (-s) and the ability to export an
internal snapshot rather than the main image in a qcow2 file (-l
SNAPID).  But it gave a confusing error message when trying to mix the
two, because the snapshot overlay created first no longer has access
to the internal snapshots of the image being wrapped.

WIth a bit of finesse, this useful scenario is now supported.

https://gitlab.com/qemu-project/qemu/-/work_items/159

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-ID: <20260408021636.794794-2-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[eblake: improve test with Vladimir's suggestions, add lock to satisfy TSAN]
Signed-off-by: Eric Blake <eblake@redhat.com>
2026-10-16 09:08:52 -05:00
Richard Henderson 62c31d1b6a Merge tag 'pull-riscv-to-apply-20261016' of https://github.com/alistair23/qemu into staging
RISC-V PR for 11.2

* Check G-stage write permission for VS-stage A/D updates
* Restore LCOFI handling in interrupt CSRs
* Fix csrrs disasembly decoding
* Stop translating after WFI
* Raise virtual instruction exception on svinval instructions
* Fix some KVM migration issues
* Add support for Milk-V Duo board
* Make MIP accesses atomic and BQL-safe
* Add initial sdext support
* Add SiFive Xsfvqmaccdod/Xsfvqmaccqoq int8 matmul extensions
* Add the Server Platform Reference Board
* Revert invalidate reservations after stores for linux user
* Fix the UART register width in SPCR
* Check Svnapot PTE before updating A/D bits
* Add Tenstorrent Atlantis PRCM model
* Fix RV32 fixed counter accesses
* Write back fsgnjn.h and fsgnjx.h results
* Ensure Zcmt jvt.mode is WARL

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCgAdFiEEaukCtqfKh31tZZKWr3yVEwxTgBMFAmrRd48ACgkQr3yVEwxT
# gBP2IA/+K3g3iCj5SdIb76OGghikQSYtGOby8fDmDgY9bVWtx9kPKgTJHan8RWpV
# MmVUAx63K4E47lKr1rEOr2ADQRlPXtvXrUjEcatcX7bOvmfNB2rjSEZkUjRf6oWK
# dBRbkCjB1iSAC0e9ftShTkIeAd+n+D0xh8XgjCMylaqWyqgLBDDlIApR9Q0mLOWN
# /KF+d5CSMS71KJROMTdVfNJBgcbAOoSsRpEnnZiXFr2QhBwx8MHpnPrbgqvmaidG
# b4PKr7AW7qZzD6ir4OecNm2b1jAW5/4lnEbsjvJEfHKakPJo7er1gPG99k29WQT9
# mLXLeXIsKW2ZvAYDHyDUQiY4onJhdu3EV1KHhZuzN3iBz66lk9B+co7OH9g99q1n
# la6U0RYTLyTY3fqlwBE0GgfY0acMb+sYCDOUmJ5Pn934g2IaASopLRdznuaAT2h+
# gPX9q/avi/6WeUAzqo8eauL1+gVe9j/H6+OCvkfD/D3GKoU7s8RD/RfsEKjeHp79
# YQBhLnxr4u/nFGCQGg79hJjZdaeocqEhmV+9V9kgYFWj2G7eQ/dl6fBQbAVetjPk
# ANx6NMoSO/2sFhmSRiKCoSaSMhTHcAaBI05O93b/XDXjh5xyGmGwpF7Nf4S5pq0p
# sVFJ/RLfhk20XJ/ljaCLc3+7A8bcoPBq+CfgRfn/onm1uBhFEq4=
# =bjFp
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri 16 Oct 2026 03:02:07 AM CEST
# 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-20261016' of https://github.com/alistair23/qemu: (50 commits)
  target/riscv: normalize Zcmt jvt.mode on writes
  target/riscv: write back fsgnjn.h and fsgnjx.h results
  target/riscv: fix RV32 fixed counter accesses
  hw/riscv/tt-atlantis: Update UART and I2C to use clk from PRCM
  hw/riscv/tt-atlantis: Add PRCMs to tt-atlantis model
  hw/misc: Add Tenstorrent Atlantis PRCM model
  target/riscv: Check Svnapot PTE before updating A/D bits
  tests/qtest/bios-tables-test: Update riscv64 virt SPCR golden reference
  hw/riscv/virt-acpi-build: Fix the UART register width in SPCR
  tests/qtest/bios-tables-test: Allow changes to riscv64 virt SPCR
  Revert "linux-user/riscv: invalidate reservations after stores"
  docs: add riscv-server-ref.rst
  tests/functional/riscv64: add riscv-server-ref tests
  hw/riscv: server platform reference machine
  target/riscv: add riscv-server-ref CPU
  target/riscv/cpu.c: remove 'bare' condition for .profile
  tests/tcg/riscv64: Add tests for SiFive int8 matmul extensions
  disas/riscv: Add disassembler support for Xsfvqmaccdod/Xsfvqmaccqoq
  target/riscv: rvv: Add SiFive custom int8 matmul instructions
  target/riscv/cpu: Add SiFive custom int8 matmul extension implied rules
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-16 06:09:05 +02:00
Anirudh Srinivasan 5fa42544d8 hw/riscv/tt-atlantis: Add PRCMs to tt-atlantis model
Atlantis has 4 PRCMs that are visible from S mode by the Ascalon Core
(RCPU, HSIO, PCIe and MM). The remaining 2 are only accessed by the
boot cpu which isn't modelled yet.

This commit adds these 4 PRCM blocks to the tt-atlantis model, along
with necessary device tree nodes for them.

Reviewed-by: Chao Liu <chao.liu@processmission.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20261001-atlantis_prcm-v4-2-95d33c470eeb@oss.tenstorrent.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2026-10-16 10:40:39 +10:00
Daniel Henrique Barboza bde97423bb docs: add riscv-server-ref.rst
Add documentation for the new riscv-server-ref board.

Signed-off-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Chao Liu <chao.liu@processmission.com>
Reviewed-by: Sunil V L <sunilvl@oss.qualcomm.com>
Reviewed-by: Andrew Jones <andrew.jones@oss.qualcomm.com>
Message-ID: <20260928201107.2049458-6-daniel.barboza@oss.qualcomm.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2026-10-16 10:40:38 +10:00
Kuan-Wei Chiu 14812062ac docs/system/riscv: Add Milk-V Duo board documentation
Add documentation for the Milk-V Duo board. This includes a brief
overview of the hardware, a list of supported devices, and practical
instructions on how to boot the machine using OpenSBI and a Linux
kernel with an emulated SD card.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20260927201326.650943-8-visitorckw@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2026-10-16 10:40:38 +10:00
Richard Henderson 44a4915203 target/arm: Enable FEAT_IDTE3 for -cpu max
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20261010070952.323466-7-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-10-15 17:38:38 +01:00
Richard Henderson 5bf33fac16 Merge tag 'pull-vfio-20261015' of https://github.com/legoater/qemu into staging
vfio queue:

* Fix UBSAN shift error in MTRR mask computation on AMD EPYC with 52
  physical address bits
* Add Fixes: tag validation to checkpatch
* Reject virtio-net failover during vfio-user init
* Sanitize DBUF_CTL POWER_STATE for iGPU passthrough, fixing display
  corruption on first boot
* Thread vf-token through iommufd bind
* Make MTL/ARL guests fall back to BAR-based framebuffer access in
  passthrough
* Update igd-assign.txt for Intel MTL and newer platforms
* Don't reset a VFIO device on a declined stop transition

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEEoPZlSPBIlev+awtgUaNDx8/77KEFAmrQxQgACgkQUaNDx8/7
# 7KGBoRAAkw8H1c8M96KCKdNlLVMqZ9BSD2l7TarXEHcJe0duRcmjmE6EnFUd7VS6
# vNETGOWU1UbHHoEBi76cxySMzAbiQqHlarqY5DdFkGhSKhlX9p76qmMJJ93+QeaI
# Qgq7vA6MmQmNY0JCg2u27aauh9Zp9Y0oPhjEPJOn3Uq5YNH/yrNkcAGjcLzyK2XW
# +YZ9rP9f4OvNAPaWXclf1W+nY/UrI/p3W9YjOP9eG3356kVAOFMps4jeqsDNN2Q2
# ie6LWrqtB2SX/QxBNU/I8stQ38nwz6XI6RmI6jDggGao3DqVDi5y6jSZpxufb+lQ
# RTDQiHCheVoM8haD7CLtpVMZ5Vsx6awvbsdzknIR+b+XYQcTdlVtHmQIuE5KJe40
# 1OfJaB3eL/Dxxe//LyEVoTIrrZFUN45uHlKSyUM5WeKWeoloHLVZyJ0VK5QNO50+
# u6OutN4oepG8s+Kt3G8wU+Rq8r0q6UpRVhDaEe0xbQkxekVE++9ZvF1syt+7qLys
# qpOC3jNGiBI1d9UhK193EKnLJ7UBO7iI13o/1UpbSe2o4bDWKIJ7dpLoQkmrqGYr
# FNf5r69H3s4xZfiSsYqU/xt3zKDt/jZm5aW1vsJxAtN18ZQq01+B6luzX51PzCYO
# gN884FnikvzTdBypywJYkvwqQMvJzvUiIpy1Qti6WckRBQ/sj78=
# =lQMR
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 15 Oct 2026 02:20:24 PM CEST
# gpg:                using RSA key A0F66548F04895EBFE6B0B6051A343C7CFFBECA1
# gpg: Good signature from "Cédric Le Goater <clg@redhat.com>" [full]
# gpg:                 aka "Cédric Le Goater <clg@kaod.org>" [full]

* tag 'pull-vfio-20261015' of https://github.com/legoater/qemu:
  vfio/migration: Don't reset a device on a declined stop transition
  vfio/igd: Update igd-assign.txt for Intel MTL and newer platforms
  vfio/igd: Make MTL/ARL guests fall back to BAR-based framebuffer access
  hw/vfio: thread vf-token through iommufd bind
  vfio/igd: sanitize DBUF_CTL POWER_STATE for iGPU passthrough
  vfio-user: reject failover during init
  scripts/checkpatch: validate Fixes: tag format and commit ancestry
  target/i386/kvm: Fix UBSAN shift error in MTRR mask computation

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-15 14:58:09 +02:00
Yuan Wang 326cd9e54e vfio/igd: Update igd-assign.txt for Intel MTL and newer platforms
Update the igd-assign.txt documentation to reflect the addition of
the 0006 patch in the ECI repository. This patch is required to
enable support for Meteor Lake (MTL) and subsequent Intel platforms.

Starting from MTL, the hardware-accessible BDSM (Base of Data Stolen
Memory) register in the PCI configuration space has been removed.
Instead, IGD devices now access stolen memory via MMIO BAR2 (LMEMBAR).
Consequently, guest firmware no longer needs to program the legacy
BDSM register.

Reviewed-by: Bosheng Xue <bosheng.xue@intel.com>
Signed-off-by: Yuan Wang <yuan1.wang@intel.com>
Link: https://lore.kernel.org/qemu-devel/20260928084226.3537126-1-yuan1.wang@intel.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2026-10-15 13:15:24 +02:00
Richard Henderson 5acdfee7f0 Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging
* target/i386/tcg: zero FXSAVE FOP and reserved slot bytes
* target/i386: fix immediate stack adjustment for RET and RETF
* target/i386/tcg: remove unused operand types
* pr-manager-helper: fix sense buffer overflow
* scsi, pr-helper: clean up multipathd PR state after migration

# -----BEGIN PGP SIGNATURE-----
#
# iQFIBAABCgAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmrQpX4UHHBib256aW5p
# QHJlZGhhdC5jb20ACgkQv/vSX3jHroMKHgf/cSvNqED1GVOMHMCnaERq1xwJ8Q7X
# fCvfUYylKiuy1UC/j4X3OX7QmzHQ9hNPLD/MI3t/0wK4VuwvZFjUK9RynEr8QvvY
# PHfRC0vwvz0RNZVQsz0Mun58QqFs8R1iIju5wyj92CdTcF0Bw+dopCBptDzxH3gR
# 2d9AdOlg5StxpFqtkyDNLCrmc7UiNq5sMCR40L2U5RalqoFfy2p2d1+qm+hUi7xa
# h3JnoCNxe92OvJ6RFECxlJAWkF/0fhkak2zmQ7puKzhLdcJmFEZsK+PGp8UgpcMO
# saAEELOfBY5WFBjug+3OMJEvnTcuA7Z06t7HH4GcfwTILIXa57RvsCpBJg==
# =BVJD
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 15 Oct 2026 12:05:50 PM CEST
# gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
# gpg:                issuer "pbonzini@redhat.com"
# gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [unknown]
# gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [unknown]
# gpg: WARNING: The key's User ID is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
#      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83

* tag 'for-upstream' of https://gitlab.com/bonzini/qemu:
  scsi: document PR_HELPER_CLEANUP command
  scsi: use REGISTER AND IGNORE EXISTING KEY for robustness
  scsi: clean up persistent reservation state after migration
  file-posix: forward PR_HELPER_CLEANUP commands to pr-manager
  pr-manager-helper: add PR_HELPER_CLEANUP command support
  qemu-pr-helper: add PR_HELPER_CLEANUP for live migration
  hw/scsi-disk: move MIG_EVENT_FAILED into a new function
  scsi: increase sense buffer size in scsi_SG_IO()
  pr-manager-helper: fix sense buffer overflow
  target/i386/tcg: drop X86_TYPE_A
  target/i386/tcg: remove unused X86_TYPE_L
  target/i386: fix immediate stack adjustment for RET and RETF
  target/i386/tcg: zero FXSAVE FOP and reserved slot bytes

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-15 13:13:40 +02:00
Stefan Hajnoczi eec2d0c16d scsi: document PR_HELPER_CLEANUP command
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Link: https://lore.kernel.org/r/20261014142847.1354701-1-stefanha@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2026-10-15 12:05:44 +02:00
Richard Henderson 8ee6c77176 Merge tag 'pull-ufs-20261012' of https://gitlab.com/jeuk20.kim/qemu into staging
ufs queue

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCgAdFiEEUBfYMVl8eKPZB+73EuIgTA5dtgIFAmrMu8EACgkQEuIgTA5d
# tgKOBQ//d+h6MCmIzskKmxaHSRi5pvwuwNpgdvK9hbpGn2xtXTCDah0I5w8pdOyP
# Tx8agGP77yRdxwdpeNhpHiJ5vyGB3W0/NoRazYRl9+cR6X4PI2IS9g0FPP+DN2Ns
# 1B5kWNvxPgTQ2RXfcX1AIepXWdCY54CAq7MS9+uAns4D2Jl6mmqcI84zx2I221mD
# s/2g/axFmGV9oV2v6g3fC8poVwq+D5jmQyDYB3AvrAkLoJwKybd7C1PBbFO1FcKa
# VYGMqnL2T4/UPq8HRm2WOjx2Oh4SgdhsPgpInQLYF3RLIpL7f94wGpTym1M3bS2Y
# 8HT7zzyMlZiZo2xyP7InvD4ngc1PXYvBAJGh+/r1o3KmCvggUCBPg3RmcP7MDNjT
# 4doykr0BVvfWyszQnuQSAiWLB4yBCgzgrT5fegQ5kV/bI3Umgq3jQFEIdFVC1NHI
# KGkZ26Wf2QO0X4iKKWMxxmW0iE4Ktyne//hEliLtS8Lk83qIa7mDEvtUs9M3ndTQ
# JumseFqN2BVYjRO082AyBrIfnPHk3W5VnPC9GCaD7Glhmn7MBvt8MrPfwSkKACuB
# uQaP9LdrhGcseTS4078FSJnb7hm+y2adN1M+/bJmbQdVTbTWtYNV+gt2HfBPTThK
# r9Ev/3dnw4SJeaNE0J1yaJ+tbtah/xyuXiwJNJf/JBGWk2bjb3A=
# =B+S6
# -----END PGP SIGNATURE-----
# gpg: Signature made Mon 12 Oct 2026 12:51:45 PM CEST
# gpg:                using RSA key 5017D831597C78A3D907EEF712E2204C0E5DB602
# gpg: Good signature from "Jeuk Kim <jeuk20.kim@samsung.com>" [unknown]
# gpg:                 aka "Jeuk Kim <jeuk20.kim@gmail.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: 5017 D831 597C 78A3 D907  EEF7 12E2 204C 0E5D B602

* tag 'pull-ufs-20261012' of https://gitlab.com/jeuk20.kim/qemu:
  docs/system: Add UFS emulation page
  hw/ufs: Skip nullified MCQ submission queue entries with OCS_ABORTED
  hw/ufs: Implement Task Management Request (TMR) handling
  hw/ufs: Support MCQ runtime interrupt and queue status registers
  hw/ufs: Track SCSIRequest and cancel pending requests in ufs_clear_req

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-13 22:01:07 +02:00
Stanley Jhu c44c626e28 docs/system: Add UFS emulation page
The UFS host controller and logical unit devices have no user
documentation. Their properties and the way the two devices fit
together can only be found by reading hw/ufs/.

Add docs/system/devices/ufs.rst with an example command line, the
device properties, and current limitations, and list it under the UFS
entry in MAINTAINERS.

Signed-off-by: Stanley Jhu <stanleyjhu@google.com>
Reviewed-by: Jeuk Kim <jeuk20.kim@samsung.com>
Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
2026-10-12 19:50:56 +09:00
Brian Cain 2633da1e12 target/hexagon: add the QFloat logic
Add routines to handle QFloat/HVX floating point values.

Also: add documentation to describe the feature.

Reviewed-by: Marco Liebel <marco.liebel@oss.qualcomm.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
2026-10-11 21:09:30 -07:00
Matheus Tavares Bernardino be2573eb08 contrib/plugins/uftrace: add support for Hexagon
Signed-off-by: Matheus Tavares Bernardino <matheus.bernardino@oss.qualcomm.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Link: https://lore.kernel.org/qemu-devel/20260930175519.3601312-1-brian.cain@oss.qualcomm.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
2026-10-05 21:22:37 +00:00
Richard Henderson 9ded45a67f Merge tag 'pull-qapi-2026-09-30' of https://repo.or.cz/qemu/armbru into staging
QAPI patches for 2026-09-30

# -----BEGIN PGP SIGNATURE-----
#
# iQJGBAABCgAwFiEENUvIs9frKmtoZ05fOHC0AOuRhlMFAmq84y8SHGFybWJydUBy
# ZWRoYXQuY29tAAoJEDhwtADrkYZToboP/jbremwY6ummE2zy9o8ElA9qv0NIqPqf
# bhrlozEsxF+SH7hSQdF5dv/l7gOXfSNwIPvmve2MGR1fLvo9Qtg9avJ5BgWTnrjN
# eOLPpDPzWb67bY7bI/irYr0uL5dB6Mkty2TfAKAk5OmaAy8SJt0buSsPnzygWeIu
# OwotR65uZ8W8J/1Uuo4VgE+HdFYgkADhA8gVs0GoFbXnq2kF2BhjjZrsk1LQ8bGo
# zsndMnmnZn2z9nZfawUF1VFyYs4vGJys2BV8YqecDTnN8G9zYpNtDAp6ybt/z0R6
# n0kXLKBQVeR6CZ+XVOi4ISQvf/dCEaqsIPdxtEwsZMI6K1LDD2cvM5ksPv6A2BL+
# kqbMnZhDbgijzwYcdj5kdBY0SMO50u7rrIKvI/rmEWpEPR2CAu5cD+QX8JU92sVe
# 8pFYe2SSjlVjLC9i177HyRaZVyPK8nvpGDkwa7tmjg8Tlaq8JJQbxkez9VkmI23y
# A5ijOenz1+Ctdat2pp5Qak7nEohbsS9qWWlUd8XSpTdBvQOAQNT1ZxuR2vQKR+ij
# BLR5UZ1nvgj0ARLvJ4iRvph1ZG+f8/CtwbjS08f8tDR7Gqzs0Jqt5WUsJTmd2nbg
# 6rj1V9jKikF6hTWGMv4h++4LFvxbMPNqBIZKaOsDqhgLIMFC6sGDVqADUi08PrHA
# 7agwvA3yvbTZ
# =pZsc
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 30 Sep 2026 11:23:43 AM BST
# gpg:                using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653
# gpg:                issuer "armbru@redhat.com"
# gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [unknown]
# gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>" [unknown]
# gpg: WARNING: The key's User ID is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653

* tag 'pull-qapi-2026-09-30' of https://repo.or.cz/qemu/armbru: (105 commits)
  qapi: split intro sections for inlinable structs
  qapi: split intro sections for data structs
  qapi: split intro sections for events
  qapi: convert/split intros for enums
  qapi: convert/split intros for commands
  qapi: convert/split intros for misc-i386.json commands
  qapi: convert/split intros for job.json commands
  qapi: convert/split intros for block commands
  qapi: convert/split intros for block-core.json commands
  qapi: split intro for HV_BALLOON_STATUS_REPORT
  qapi: convert intro sections for docs/interop/vhost-user.json
  qapi: convert intro sections for docs/interop/firmware.json
  qapi: split intros for qga/qapi-schema.json
  qapi: split intros at natural cutoff points for qga/qapi-schema.json
  qapi: convert simple intros for qga/qapi-schema.json
  qapi: convert trivial intros for qga/qapi-schema.json
  qapi: convert intro sections for unit tests
  qapi: convert/split remaining qapi/qmp intro sections
  qapi: convert intro sections followed by notes/examples
  qapi: convert intro sections with "TODO" markers
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-10-01 18:10:22 +01:00
Richard Henderson f7ada39eda Merge tag 's390x-20260930' of https://gitlab.com/efarman/qemu into staging
New s390x features for 11.2
 - enable boot via virtio-net-pci
 - PCI and SCLP fixes
 - hardening fixes throughout
 - regenerate s390-ccw.img

# -----BEGIN PGP SIGNATURE-----
#
# iIsEABYKADMWIQQB3Dhbwk4ZE3uUN6KmTx4R4Fx3tAUCar0oEBUcZmFybWFuQGxp
# bnV4LmlibS5jb20ACgkQpk8eEeBcd7QO4gEA/LckW2Ay4OVtFtBbj6lOZjfCexJ8
# FVcvnE51+Ynt2mEBAI7iLfw/uJ9HtB7EzGLRapUbWLYLHaP5NIRiPlj0uaUO
# =oO3l
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 30 Sep 2026 04:17:36 PM BST
# gpg:                using EDDSA key 01DC385BC24E19137B9437A2A64F1E11E05C77B4
# gpg:                issuer "farman@linux.ibm.com"
# gpg: Good signature from "Eric Farman <farman@linux.ibm.com>" [unknown]
# gpg: WARNING: The key's User ID is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: D2C6 0504 C9E8 F568 CFE5  87B5 3827 B212 71BF 9562
#      Subkey fingerprint: 01DC 385B C24E 1913 7B94  37A2 A64F 1E11 E05C 77B4

* tag 's390x-20260930' of https://gitlab.com/efarman/qemu: (23 commits)
  pc-bios/s390-ccw.img: update s390x bios
  s390x/pci: Reject apertures beyond IOAT capacity in translation mode
  s390x/pci: Use qemu_log_mask() for guest-triggered errors in reg_ioat()
  s390x/pci: Fix frame stepping in rpcit_service_call()
  s390x/sclpconsole: fix indentation for console_reset
  tests/functional/s390x: Add tests for virtio net PCI in test_pxelinux.py
  tests/qtest: Add s390x virtio net PCI test to pxe-test.c
  tests/qtest: Check s390x boot device support in pxe-test.c
  hw/virtio: Add "loadparm" property to virtio net PCI devices booting on s390x
  pc-bios/s390-ccw: Add support for virtio-net-pci IPL
  pc-bios/s390-ccw: Introduce virtio_tswap helpers
  pc-bios/s390-ccw: Add dynamic net header size handling
  pc-bios/s390-ccw: Move CCW net setup to virtio-ccw
  s390x: Expose pv attribute in QOM
  s390x/sclp: Reject short headers in PV case
  s390x/css: Use datastream pointer for checking no-data CCWs
  hw/intc/s390x: Fix check after g_try_realloc
  hw/intc/s390x: Fix payload to KVM_HAS_DEVICE_ATTR ioctl
  vfio/ccw: Clear error object pointer after non-fatal errors
  vfio/ap: Clear error object pointer after non-fatal errors
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-09-30 16:44:59 +01:00
Peter Xu 7ca43d7ad0 hostmem: Support fully shared guest memfd to back a VM
Host backends supports guest-memfd now by detecting whether it's a
confidential VM.  There's no way to choose it yet from the memory level to
use it fully shared.  If we use guest-memfd, it so far always implies we
need two layers of memory backends, while the guest-memfd only provides the
private set of pages.

This patch introduces a way so that QEMU can consume guest memfd as the
only source of memory to back the object (aka, fully shared).

To use the fully shared guest-memfd, one can add a memfd object with:

  -object memory-backend-memfd,x-guest-memfd=on,share=on

Note that share=on is required with fully shared guest_memfd.

Since guest-memfd is not yet a drop-in replacement for memfd (e.g. lack
of hugepage support), the option is tagged as experimental for now so
that it can be made available for early enablement/testing without
causing any surprises for other users.

PS: there's a trivial touch-up on fd<0 check, because the stub to create
guest-memfd may return negative but not -1.

Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: David Hildenbrand <david@kernel.org>
Co-developed-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Link: https://lore.kernel.org/r/20260929235109.1398509-11-michael.roth@amd.com
Signed-off-by: Peter Xu <peterx@redhat.com>
2026-09-30 08:51:04 -04:00
Richard Henderson 041db76ebb target/arm: Enable FEAT_UINJ for -cpu max-v9
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-id: 20260925215004.456336-15-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-29 10:58:40 +01:00
Strahinja Jankovic cc69b73a70 hw/arm: Add GPIO to Allwinner A10 model
The Allwinner A10 GPIO is added to the Allwinner A10
description, so it is available when Cubieboard is emulated.

Update the documentation for Cubieboard to indicate GPIO availability.

Signed-off-by: Strahinja Jankovic <strahinja.p.jankovic@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20260915-allwinner-gpio-v4-2-b1ee1d09c9fd@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-28 13:39:51 +01:00
John Snow eaef607d89 qapi: convert intro sections for docs/interop/vhost-user.json
All conversions in this patch do not add a new insertion point, except
for the very last conversion.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20260922205605.501602-9-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2026-09-28 08:34:04 +02:00
John Snow 203c05e5f4 qapi: convert intro sections for docs/interop/firmware.json
All conversions in this patch do not create a new documentation
insertion point, except for one at the very end.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20260922205605.501602-8-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2026-09-28 08:34:04 +02:00
Bin Guo bf8156b03d docs/migration: document that postcopy can be used with multifd
Since commit e274188612 ("migration: enable multifd and postcopy
together") in the 10.1 release, the multifd and postcopy-ram capabilities
are no longer mutually exclusive, but the postcopy documentation does not
mention multifd at all, leaving users unaware that the two features can be
combined.

Add a short section describing how they interact: multifd carries the
pages of the precopy phase, the channels are flushed and synced before the
switchover (because loading a page in a multifd receive thread is not
atomic with regard to a running vCPU), and the postcopy phase itself does
not use the multifd channels.

Signed-off-by: Bin Guo <guobin@linux.alibaba.com>
Acked-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
2026-09-25 11:29:14 -03:00
Janosch Frank 964a49b6b7 s390x: Expose pv attribute in QOM
People doing VM management requested a way to query if a VM is in PV
or not. So this patch exposes the runtime PV attribute which is true
once the VM successfully made the switch into PV mode (according to
KVM) and did not yet reboot to drop out of it.

This of course does never replace attestation, it's merely QEMU's view
of the situation.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
CC: Hendrik Brueckner <brueckner@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20260924142846.157848-1-frankja@linux.ibm.com
Signed-off-by: Eric Farman <farman@linux.ibm.com>
2026-09-25 08:28:56 -04:00
Harald Freudenberger 33581dc492 docs/s390: Document CPACF instructions support
Add a first document covering the Qemu s390 CPACF instructions
and functions supported.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Finn Callies <fcallies@linux.ibm.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20260824083204.40877-20-freude@linux.ibm.com
[farman@linux.ibm.com: Resolve merge conflict in target-s390x.rst]
Signed-off-by: Eric Farman <farman@linux.ibm.com>
2026-09-21 05:58:38 -04:00
Daniel P. Berrangé 769ccabcd3 docs: expand security docs with info about security status
The description of virtualization vs non-virtualization use
cases is a crude approximation of the security characteristics
of QEMU devices.

Document how QEMU can be probed to obtain information on the
security status of type classes, and how policies can be set
to inform or control their usage.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2026-09-17 17:00:44 +01:00
Marc-André Lureau 90cfbb4a89 docs/sphinx/dbus: register build dependency
Touching dbus xml file wasn't enough to trigger a new build because
the file wasn't registered to the dependency system.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2026-09-13 14:41:11 +04:00
Richard Henderson d43c2d5f89 Merge tag 'for_upstream' of https://git.kernel.org/pub/scm/virt/kvm/mst/qemu into staging
pci, vhost, virtio, iommu, apci: features, fixes

new vhost-user-media device
virtio-net now supports live-TAP local migration
cxl now supports CFMW restrictions and per-window options
intel_iommu now supports concurrent page fault handling with PRI
pci now batches memory transactions around mapping updates
vhost-user-blk now allows toggling inflight-migration at runtime
virtio-rtc now supports smeared UTC clock type
intel_iommu now exposes SMPWC when SVM is enabled
new reviewer for CXL patches

Fixes, cleanups all over the place

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

# -----BEGIN PGP SIGNATURE-----
#
# iQFDBAABCgAtFiEEXQn9CHHI+FuUyooNKB8NuNKNVGkFAmqkXRUPHG1zdEByZWRo
# YXQuY29tAAoJECgfDbjSjVRpoWsH/jeMRFjgYu5Es05ha87JW6NJW6j/Ggw3F8e5
# kup/SsoeqX+pK1VqXkKimWRf0iXsnweTqviVR88KMmMBP9UNdwgRBM7XflplYiOv
# UOsjZGZAKjOKnyjbQyNihYY4CfaJn2VYkxJBRxweS3/OEK4JV2wmFcWEjFuZEdJT
# SXpYXAPu0e8XTPVk/+bhi6kIYHhsuu1sWhcsoRDGdw5ZrGvwTwF8cS4SWaYHrWc1
# wjvC39P3Hg+Zvw6vDkPP2Amos2s6iheEgsPI0628YYvER+YV641YD48xEXqTG44e
# FGwCihJ97rYYGQEwL+1FL4ZLKcp7HwacqxkJYg+GHbKj1Iog9OQ=
# =9H6A
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri 11 Sep 2026 09:57:09 AM HST
# gpg:                using RSA key 5D09FD0871C8F85B94CA8A0D281F0DB8D28D5469
# gpg:                issuer "mst@redhat.com"
# gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" [unknown]
# gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>" [unknown]
# gpg: WARNING: The key's User ID is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
#      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469

* tag 'for_upstream' of https://git.kernel.org/pub/scm/virt/kvm/mst/qemu: (74 commits)
  MAINTAINERS: add Junjie Cao as CXL reviewer
  vhost-user-blk: use GET_VRING_BASE_SKIP_DRAIN when inflight-migration is on
  vhost-user-blk: move inflight_needed higher
  vhost-user-blk: make inflight-migration prop mutable on running vm
  vhost-user: use skip_drain with GET_VRING_BASE_SKIP_DRAIN message
  vhost-user: add GET_VRING_BASE_SKIP_DRAIN message
  vhost-user: add skip_drain param to do_vhost_virtqueue_stop
  intel_iommu: Expose SMPWC when SVM is enabled
  virtio-net: validate IHL in virtio_net_rsc_extract_unit4 before use
  net/tap-solaris: Fix resource leaks on error paths
  hw/hotplug: Constify HotplugHandler
  hw/hotplug: Reduce some HotplugHandler variables scope
  hw/hotplug: Mark various HotplugHandlerClass variables as const
  hw/acpi: Make AcpiGedState const in build_ged_aml()
  pci: load a device's config inside one memory transaction
  pci: batch BAR remapping into one memory transaction
  intel_iommu: Always write all the flags passed to vtd_set_flag_in_pte
  intel_iommu: Only set dirty bit when PTE exposes write permission
  intel_iommu: Support concurrent page fault handling with PRI
  virtio-rtc: Report smeared UTC clock type
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-09-11 12:04:42 -10:00
Alexandr Moshkov 1276e6c85d vhost-user: add GET_VRING_BASE_SKIP_DRAIN message
VHOST_USER_PROTOCOL_F_GET_VRING_BASE_INFLIGHT was introduced to allow
the back-end to suspend in-flight I/O during GET_VRING_BASE instead of
draining it, enabling live migration of in-flight requests. However,
this behaviour is tied to the protocol feature itself - once negotiated,
there is no way for the front-end to tell the back-end to fall back to
the normal drain behaviour on a per-stop basis.

Introduce a separate message VHOST_USER_GET_VRING_BASE_SKIP_DRAIN
(id=45) guarded by a new protocol feature
VHOST_USER_PROTOCOL_F_GET_VRING_BASE_SKIP_DRAIN. The message is
identical to GET_VRING_BASE except that the back-end must immediately suspend all
in-flight I/O and record it in the inflight region. This way the
front-end has explicit per-call control: send GET_VRING_BASE for normal drain,
send GET_VRING_BASE_SKIP_DRAIN when immediate suspend is needed.

The new feature requires both
VHOST_USER_PROTOCOL_F_GET_VRING_BASE_INFLIGHT
and VHOST_USER_PROTOCOL_F_INFLIGHT_SHMFD to be negotiated.

Signed-off-by: Alexandr Moshkov <dtalexundeer@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260803072853.2920007-3-dtalexundeer@yandex-team.ru>
2026-09-11 15:54:47 -04:00
Alyssa Ross 6d31fef92a vhost-user.rst: fix typo
The protocol feature is named SHMEM.  SHMEM_MAP is one of the
requests.

Fixes: 588acb45c2 ("vhost_user.rst: Add SHMEM_MAP/_UNMAP to spec")
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260804121000.444745-3-hi@alyssa.is>
2026-09-11 15:54:46 -04:00