Commit Graph
3953 Commits
Author SHA1 Message Date
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
Davidlohr Bueso cb52f088f2 hw/cxl: Add configurable CXL Fixed Memory Window restriction flags
Expose the CFMWS "Window Restrictions" (CXL r4.0 9.18.1.3) as named
per-window machine properties -- device-coherent, host-only, volatile,
persistent, fixed-config and back-invalidate -- so the advertised
restrictions can be configured per window rather than left at the
default.

No changes in default options.  HDM-D and HDM-H are advertised by default;
disabling one (device-coherent=off or host-only=off) narrows the window to
the other.  back-invalidate implies device-coherent (HDM-DB) and suppresses
the host-only default.  host-only coherent combined with back-invalidate is
rejected as undefined behavior per the spec.

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260720233242.901544-5-dave@stgolabs.net>
2026-09-11 15:54:46 -04:00
Brian Cain 8acc03787b docs: Correct semihost spec URL
The previous URL worked at the time of submission but it appears that it
was not a portable, durable reference.

This one should work better.

Reviewed-by: Marco Liebel <marco.liebel@oss.qualcomm.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
2026-09-11 07:29:10 -07:00
Vladimir Sementsov-Ogievskiy 3e4c54739a net/tap: deprecate "no" as special value for script/downscript
The interface is ambiguous, as "no" is valid file name. So,
using "no" as a special value to disable script is deprecated.
Use an empty string ("script=" / "downscript=") instead.

In a future version, "no" will be treated as a plain file name, just
like any other non-empty value.

Document the deprecation in docs/about/deprecated.rst, qapi/net.json,
and qemu-options.hx. Update other docs to use empty string instead of
"no". Add a warning.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Ben Chaney <bchaney@akamai.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260819180201.1970193-4-vsementsov@yandex-team.ru>
2026-09-11 04:07:17 -04:00
Richard Henderson 09614ebee1 Merge tag 'pull-request-2026-09-10' of https://gitlab.com/huth/qemu into staging
- Fix minor issues in next-cube machine and mark it as deprecated
- Add a configure option to disable tests
- Remove stamp files when deleting assets from the functional cache
- Make sure that pyling version is not too old
- Keep USB autoscan enabled for bus+addr selector

# -----BEGIN PGP SIGNATURE-----
#
# iQJGBAABCAAwFiEEJ7iIR+7gJQEY8+q5LtnXdP5wLbUFAmqilnUSHHRoLmh1dGhA
# cG9zdGVvLmV1AAoJEC7Z13T+cC21GtYP/2JRtwlyJdiyl5TVRtiWE38Ezu0pzXDi
# Snz+/KK3nIDIs6EJvg2rSHyfpE+0+iHT9brzAks4g/jEbsywOeTtn/HPP1PzCB58
# Sjy68IyVFh7TaEg9R5dEuHQYE1D4sJnQlCinMMMXWfxw/rArsdkMWxl1onwQKOOt
# Te1NsvCb16dC7ItT/VcpQB71TChIEYoJXHC/FZ2jhzDc+Th8l4rkWKAR1x8QljtR
# h8Z+7xuE00cRxTUALEnmxqP7oYk/2tE2ZOe/wSByvm2umBUR4/DQD6iKKmX4Qew+
# rHQbAaWBqVDK2L69f/1B9v43XPhRykZRe3E58LNfCvM39xG6VaRd1UHdg1X1IiiL
# aHV20Y27oaOVub3zPsiJKiOAghQsq6Dg3dgWQQRStJv5XZEyeMiFjjk+oOoQ3UBd
# +0pyzrOhobNQcYOvz6RJMehby/Oc8qzQinShrQnh6CjPtAObxx5Mq48PZicbAEGj
# xrgH4vSfchm4p7YhVJ1zj4aIEx4r23XChhhszzDnchjuWcl/1r7Khw0ZTlITupXL
# yj/v9sJKRghoG3Ie7WlYXocbdmOn8WE53Cb13XHwwFPryB6gMlG4IR5Jf5eMM8w4
# Tdp1hMw4WXLZ4AEE+XM44932lkrfgcssG0Odt5ECQjhlBWuSwe9mXIia5++X6H8w
# +b0Ed+6xrP8q
# =jcK+
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 10 Sep 2026 01:37:25 AM HST
# gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
# gpg:                issuer "th.huth@posteo.eu"
# gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [unknown]
# gpg:                 aka "Thomas Huth <thuth@redhat.com>" [unknown]
# gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
# gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [unknown]
# gpg:                 aka "Thomas Huth <th.huth@posteo.eu>" [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: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5

* tag 'pull-request-2026-09-10' of https://gitlab.com/huth/qemu:
  hw/usb/host-libusb: keep autoscan enabled for bus+addr selector
  Add option to disable building tests
  tests: install pylint for functional linters
  scripts/clean_functional_cache: Remove also .stamp files
  MAINTAINERS: Mark the next-cube machine as "Orphan"
  docs/about: Deprecate the 'next-cube' m68k machine
  hw/m68k/next-cube: Replace assert()s and abort()s with logging functions

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-09-10 20:58:42 -10:00
Thomas Huth 5d3333e12a docs/about: Deprecate the 'next-cube' m68k machine
The machine is incomplete since years and we never managed to fully boot
a kernel with it. So it's maybe best if we mark this machine as deprecated
and finally remove it again in case it gets into the way of a code
refactoring or other reasons.

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-ID: <20260828095241.118458-3-th.huth@posteo.eu>
Signed-off-by: Thomas Huth <th.huth@posteo.eu>
2026-09-10 12:40:45 +02:00
Peter Maydell 257bf4f160 Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging
* AGENTS.md: basic bare minimal guide
* target/i386: TCG fixes
* scripts/checkpatch: warn on duplicate trailers, self-review, crediting AI
* docs: link to website for IRC and mailing list
* rust: qemu-macros: remove redundant clone()
* rust: qemu-macros: silence more warnings for bindgen crates

# -----BEGIN PGP SIGNATURE-----
#
# iQFIBAABCgAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmqhgPcUHHBib256aW5p
# QHJlZGhhdC5jb20ACgkQv/vSX3jHroMHGgf9HhS9YkSidGB00Xg843Duhms1GwCy
# hXP1G+wZisFk63ypd7k9ZSMh6jCJrHA+A4LoRiVP2W+mfWgWRMh1c3oUf9u7fjzO
# CsBV/JejM6GruSPjcCtFIBvKZbdZxlGoPWLpedvLDFQdoWZk2TLqIHFw+XJjK8uI
# ESYQuiWUqEaj+Vk0NerGL8nvMwOkYL8X7L89GJirXfZio2U+VmtSRrIhQ5W0SpK8
# jV7Oi5PJiKCm7gss4z0psaIXW/4ep6QGmWtx3lA6+uh1G2DCTkNoeo2JU10BQEZU
# fZsNy6B/mqG66jPwHHXziaC/omXf1XZ/p+0zER3m2VtWi7Zg4W0fDrQGVA==
# =04kq
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Sep  9 16:53:27 2026 BST
# gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
# gpg:                issuer "pbonzini@redhat.com"
# gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
# gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
# 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:
  rust: bindings: disable more clippy warnings
  rust: qemu-macros: remove redundant clone()
  AGENTS.md: basic bare minimal guide
  scripts/checkpatch: warn on duplicate trailers and self-review
  checkpatch: reject trailers that credit an AI agent
  docs: link to website for IRC and mailing list
  target/i386: Mark MOVNTI as not valid with prefixes 0x66, 0xF2, 0xF3
  target/i386: Update FPU tag word for FXCH
  target/i386: Update FPU tag word for FSTP
  target/i386: Update FPU tag word for FXTRACT's old ST(0)
  target/i386: clear C1 for all x87 compare instructions
  target/i386: Fix FXCH to unconditionally clear C1

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-10 11:08:04 +01:00
Brian Cain 5d6443755f docs: bump sphinx_rtd_theme pin to fix --enable-docs build
pythondeps.toml and docs/requirements.txt pin sphinx==7.2.6 alongside
sphinx_rtd_theme==1.2.2, but 1.2.2 requires sphinx<7 on PyPI.

A fresh install of the docs group silently downgrades Sphinx to 6.2.1 to
satisfy that cap, which then fails Sphinx's own >=7.2.6 runtime check
in docs/meson.build.

sphinx_rtd_theme==2.0.0 is the first release that drops the sphinx<7 cap
and resolves cleanly against sphinx==7.2.6.

Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20260906222926.3714852-1-brian.cain@oss.qualcomm.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-08 18:34:58 +01:00
Paolo Bonzini fe6683d631 docs: link to website for IRC and mailing list
Provide an easy and always up-to-date way to get more information on
how to contact maintainers and other developers.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2026-09-07 19:26:35 +02:00
Daniel P. Berrangé 0766e83d2f docs/system/security: exclude uninitialized stack variables as bugs
The -ftrivial-auto-var-init=zero usage guarantees implicit zero
initializers for all stack variables. Thus most bug reports relying
on undefined behaviour from lack of variable initialization will
not be security issues, or even bugs.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2026-09-07 11:31:03 +01:00
Daniel P. Berrangé 00e70abb85 crypto: deprecate the AF_ALG crypto backend
Linux 7.2 has deprecated the AF_ALG crypto backend:

  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a67afb1884ba815079bd43d5c998e155e03b08b6

And has documented it to be always slower than userspace crypto:

  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5624ea54f3ba5c83d2e5503411a31a8be0278c1e

as a result of dropping support for zero-copy and hardware
accelerators:

  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7524070f26d8d347c26787dc297fb844baa26abf
  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ffdd2bc378953b525aca61902534e753f1f8e734

The main use case for the AF_ALG impl was to improve the performance
of virtio-crypto with the cryptodev-backend-builtin driver. In
practice this did not matter since 'cryptodev-backend-lkcf' can do
offload to the kernel via the keyctl syscall, and 'cryptodev-vhost-user'
can offload to an external process which can optionally integrate with
hardware accelerators without kernel assistance.

The AF_ALG backend has no user visible configuration options at runtime,
it is unconditionally tried with any use of the cipher APIs. So it does
not strictly have to go through the deprecation process, however, it is
left available initially in case there was an unexpected use case that
relies on it which may be faster with old kernels before the above Linux
commits.

Suggested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2026-09-07 11:31:03 +01:00
Pierrick Bouvier 8fa3c848f8 docs/devel/testing/: update documentation
We document how to build and run tcg tests with new framework.

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Tested-by: Aniket Sahu <asahu1x@linux.ibm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Message-ID: <20260827221506.91574-105-pierrick.bouvier@oss.qualcomm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2026-09-04 16:06:22 +01:00
Daniel Henrique Barboza 331e1b2cc2 docs/specs: add RISC-V CPU Debug support info
Add documentation regarding how QEMU handles Debug versions 0.13 and
1.0.

Signed-off-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20260805182506.2943757-6-daniel.barboza@oss.qualcomm.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2026-09-04 09:34:21 +10:00
Peter Maydell 1a8f18541e Merge tag 'python-pull-request' of https://gitlab.com/jsnow/qemu into staging
python

upgrade to py312

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCgAdFiEE+ber27ys35W+dsvQfe+BBqr8OQ4FAmqYepEACgkQfe+BBqr8
# OQ6Nyg//SFe2COs76DIzWWTN21N/wo4pHAf6Q0nGGj2NKiPozN0aIAcKA9mw8ZXo
# 6HQTjMJKOq4jnL9pYLNS2MzrhiJrvrR0gBymi0aD93EOAMtqXcLxgaCnpI4wFu8v
# wosIehLduYMytrb80aY8oCbUOl+uTPOYHuDtUc7msBV5iqhFg56emjvOh7B+5SuE
# iKc6ivljUVxoVat3pzKSZsxbVd+iYz3UI8cBPa8ISNkfxgCjUw/+t6cm3fBj+v8u
# q0U2qVBfvMH6wPQ7qA+VZvwnf7UgTymbprGko17EkPZwgtKzM+k2Lr75GjfwLHx5
# i7sjKu7doWfRa7/+bNyYj+lZtCAcGJGZu6yuIE6vBj6eBB8LxGbw/zLU+p5Q+QJe
# +np4dFLkK2rlBRNrg4o/66rCWO/b97F6GBtVOoNx44fWmXZfuKJxh0F6FCpvPvlf
# fiAEHiSNmfmUXIeFGgq3OcP4ZB6BIGlHWA+F4U7gn1ZxGrtvZDImRdy0Qj2IjsL0
# lwBXSdS9FgX/lOe2oOGScZIepJsVhMVZ7y+u4g+//GLjLPO2JGLh3oZZdDXa6af8
# N//steftVLII0JWTB5z+6Hv3A5ek9AxiVSPPYLpTGcvp1Cgni+5BdiGqPs5554qC
# Yh5/F0aafIJsMDSs9sO6U4X46DYp8/DSfJwr3Vn+Y9SSVgdSGlU=
# =QZ+f
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Sep  2 20:35:45 2026 BST
# gpg:                using RSA key F9B7ABDBBCACDF95BE76CBD07DEF8106AAFC390E
# gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>" [full]
# Primary key fingerprint: FAEB 9711 A12C F475 812F  18F2 88A9 064D 1835 61EB
#      Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76  CBD0 7DEF 8106 AAFC 390E

* tag 'python-pull-request' of https://gitlab.com/jsnow/qemu:
  sphinx: drop qapidoc back-compat overboiled spaghetti dinner
  sphinx: drop fakedbusdoc
  sphinx: require sphinx 7.2.6
  python: remove stale setup.cfg options
  python: remove distutils workarounds
  python: allow mypy to run as the current python version
  python: fix license configuration
  python: upgrade to Python3.12+
  qapi: update type hint for objects_seen
  tests: update emsdk-wasm64-cross
  tests: add Python3.12 to centos9.docker
  tests: re-add opencv2 and numpy dependencies
  tests: drop python3-devel mapping
  tests: update netbsd dependencies
  tests: update libvirt-ci, lcitool
  tests: update vm tests to prefer locally-built QEMU

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-03 09:42:53 +01:00
John Snow 4061c0e95c sphinx: drop qapidoc back-compat overboiled spaghetti dinner
Drop the disgusting amount of hacks required to keep qapidoc working
on older Sphinx versions, enjoying the cutting edge technology of
2023.

This felt like an achievement to have written, and equally feels an
achievement to have deleted.

A note on the content_node parameter: Sphinx has been gradually
implementing typing support and renaming parameters to be
consistent. As a result of losing our intermediate compatibility shim,
mypy and pylint now check directly against the Sphinx version. So,
alongside removing compat gunk, we need to fix up some parameter
naming for the Sphinx upgrade, too.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20260825215851.1780608-17-jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
2026-09-02 15:02:58 -04:00
John Snow 01657b6932 sphinx: drop fakedbusdoc
Now that we rely on a sufficiently modern Sphinx, we no longer need a
stub doc for dbus.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260825215851.1780608-16-jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
2026-09-02 15:02:58 -04:00
John Snow f6ebad194c sphinx: require sphinx 7.2.6
Make the extraordinary leap from Sphinx 3.4.3 to Sphinx
7.2.6. Simplifications and cleanup will follow in subsequent patches.

Note that CentOS Stream 9 only ships a version of Sphinx that runs on
Python 3.9, so regardless of the version of Sphinx we require, if we
require Python 3.10+, CentOS Stream 9 will be unable to build QEMU
documentation in an isolated offline build environment.

CentOS Stream 9 continues to be able to build documentation so long as
PyPI access is permitted during configure, or if the requisite PyPI
packages are installed prior to configure time.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260825215851.1780608-15-jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
2026-09-02 15:02:58 -04:00
Peter Maydell c513597761 Merge tag 'pull-hex-20260901' of https://github.com/qualcomm/qemu into staging
semihosting, fix exc/int, icinva, TLB, htid

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCgAdFiEEPWaq5HRZSCTIjOD4GlSvuOVkbDIFAmqXqBoACgkQGlSvuOVk
# bDL0Tw/9EL4g0nvPQKWbFAbs29GId6RVVS3fNRiHPFgSJSULqYDEkvbTip44gsJ5
# Km4rwJy7nRI6d0tdVZYATLGcP/d+OTWxHxQM4/D7WemK3QEYfSMLLnX0d2aGhuH/
# Okncy0j7b5ogUi+ALbCf5MPeUzrK8x7YFqw7utzeE9QYkyeSorhcpLfLSiHm4ECy
# PoWH2kkFZwrEWdXfTTdHeRLIE1FXVGLL0SYh3vatE5kvh9kBnuyKpHR7Cq7zT+A9
# Fh84i9U7afDsRKrpvPArICqvcybdYFw+wBFgIMMea5jkx1+aHTwJ7NdvIZzjTDx+
# RjVdcm3DlucW+y7qEM+d3kGbLcBSG0Q+yJ02LYqLIp9nBELP4rdKVRC0csegZM03
# zj8EFH4QilrVLSsq4KqhLIBiOMqlz6THWVDxEq8xGCvb9vpAUP5c70BsCY5IF9TZ
# XL2ZhgQ+gkQJ4aPV+XOlkC8hn4dbovNu/0cME76v8MNX1iwQrMwC4GJ/N1qfC4jY
# 3EEkmaW3HGXvFvlAFO5T9eLfXUGmVK+tNLc8pZLV/rDLWiQjs6HYD8XZeq9Goo8N
# gIoa//9ZhgjXKNF+e06BCcqvfaaXXLkaX7n5a5NXQVvebB4FsF53myM3mTwGVmgx
# N5I32V15sAJGMgd0/rrgwKhWoDZcOLZGVLCtqI7i2vT178e+pqA=
# =zqar
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Sep  2 05:37:46 2026 BST
# gpg:                using RSA key 3D66AAE474594824C88CE0F81A54AFB8E5646C32
# gpg: Good signature from "Brian Cain (OSS Qualcomm) <brian.cain@oss.qualcomm.com>" [unknown]
# gpg:                 aka "Brian Cain <bcain@kernel.org>" [full]
# gpg:                 aka "Brian Cain (QuIC) <bcain@quicinc.com>" [full]
# gpg:                 aka "Brian Cain (CAF) <bcain@codeaurora.org>" [full]
# gpg:                 aka "bcain" [full]
# gpg:                 aka "Brian Cain (QUIC) <quic_bcain@quicinc.com>" [unknown]
# Primary key fingerprint: 6350 20F9 67A7 7164 79EF  49E0 175C 464E 541B 6D47
#      Subkey fingerprint: 3D66 AAE4 7459 4824 C88C  E0F8 1A54 AFB8 E564 6C32

* tag 'pull-hex-20260901' of https://github.com/qualcomm/qemu: (28 commits)
  hw/hexagon: decode an empty TLB size field as 4KB
  hw/hexagon: assign a distinct htid to each DSP machine CPU
  tests/tcg/hexagon: add icinva test
  target/hexagon: invalidate translated code for user icinva
  tests/functional/hexagon: update to v0.2.12, +test_{interrupts, sys_regs}
  target/hexagon: fix iassign{r, w} to cover all threads
  target/hexagon: implement direct-to-guest interrupt delivery
  target/hexagon: raise imprecise exception on multi-TLB match
  target/hexagon: read UTIMERLO/UTIMERHI from the global timer
  target/hexagon: gate GPCYCLE guest register reads on SSR:CE
  target/hexagon: take BQL when reading the system pcycle count
  target/hexagon: guard writes to unimplemented guest registers
  hw/intc: clear pending bit on l2vic de-assertion
  tests/tcg/hexagon: check priv instructions raise SIGILL
  target/hexagon: align exceptions for user/sysemu
  tests/functional: Add hexagon semihosting systests
  python/machine: support routing semihosting output to the test console
  target/hexagon: Add an errno mapping
  target/hexagon: add COREDUMP semihosting operation
  target/hexagon: add main arch-specific semihosting operations
  ...

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

# Conflicts:
#	hw/hexagon/hexagon_tlb.c
2026-09-02 17:59:30 +01:00
Peter Maydell ef1e8668b9 Merge tag 'pull-target-arm-20260901' of https://gitlab.com/pm215/qemu into staging
target-arm queue:
 * target/arm: fix TTA instruction S bit for IDAU-exempt addresses
 * target/arm: Correct reset value of SCTLR for arm926, arm1026
 * target/arm: Don't provide TLBTR for pre-v6 CPUs
 * target/arm: Don't enforce alignment faults on Device memory for SCTLR.U == 0
 * target/arm: Correctly UNDEF Thumb T1 hints, CBZ, IT on older CPUs
 * target/arm: add cortex-m85 model
 * target/arm: Separate cpu types max-v8 and max-v9
 * target/arm: Implement FEAT_FGWTE3, FEAT_SVE2p2, FEAT_SME2p2,
   FEAT_SVE_BFSCALE, FEAT_SSVE_BitPerm, FEAT_SVE_AES2
 * hw/char/pl011: support backend hotswap
 * hw/arm: Add Arm mps3-an555 board
 * hw/arm: Remove the 'musicpal' machine

# -----BEGIN PGP SIGNATURE-----
#
# iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmqW0CAZHHBldGVyLm1h
# eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3upND/4oA0l9D6xr/F19oaSC0Zy7
# qodQl1zeDTfcvNmh/e72KKXJKG1+FBYDBSjqlekrj0/TV+pEzQZANItVZE21m9SR
# +GZ5WBzBmR5V0UuZQSZZiVqBGbXwt8qZz0wMez5W7JncofIiU0GxuTYAdN0NHxub
# sYSYYHOrQQCTW7BJlfImN9nD4qXzshrEuVWlszNIjc7Qh5vgja6juDkOF4En3g7w
# zWUtvzbGMWcPmYZmtbCCY9u8YnUOPdohB1blYOjLvMHn4+GqBlkjN93ytWw0J5CM
# eS3qs2pZWs/zEUGXEhymUqI3qXQflo0tCES9OsY40kExBu5YjYXBT93tBEdkwX8+
# CFK8eC26DRqcbFHv6CPnYYxy0dzUvAR4s4cpYXFrKQlJI6I8cwKNWYeLaISHak7i
# Emg2Hzo7+M3UV5oKiYJY+HG3EA3DZYfWq4lIAmTVOhSs6/na9Hr41FBWFy93VLnE
# 7/Db1BnOrdBrMvEIUvEnM2o6XaH6cICID7W/OHvhTMEW/1X7gq8pJsFJ/NcP+d2f
# 4Fuj1y0RCuFY3SVB2TI/PpVflfJmBD7i+gezoygE2h9MVF2fIxTd0AXFxwEfQiQW
# jVqiyCAel32c4Bey1GFrIUzCsRPfg6eCvOyLXqULgyA6ksTreV5P9D31ydaUvIMY
# ohAhu+1LpVjIoCTeq72Abw==
# =/OvS
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Sep  1 14:16:16 2026 BST
# gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
# gpg:                issuer "peter.maydell@linaro.org"
# gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [ultimate]
# gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [ultimate]
# gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [ultimate]
# gpg:                 aka "Peter Maydell <peter@archaic.org.uk>" [ultimate]
# Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE

* tag 'pull-target-arm-20260901' of https://gitlab.com/pm215/qemu: (58 commits)
  target/arm: Enable FEAT_SVE_AES2 for -cpu max
  target/arm: Implement PMULL, PMLAL
  target/arm: Implement AESDIMC
  target/arm: Implement AESEMC
  target/arm: Implement AESD (indexed)
  target/arm: Implement AESE (indexed)
  target/arm: Implement and enable FEAT_SSVE_BitPerm for -cpu max
  target/arm: Rename isar_feature_aa64_sve_sm4
  target/arm: Rename isar_feature_aa64_sve_sha3
  target/arm: Rename isar_feature_aa64_sve_bitperm
  target/arm: Rename isar_feature_aa64_sve_pmull128
  target/arm: Enable FEAT_SVE_BFSCALE for -cpu max
  target/arm: Implement SME BFMUL
  target/arm: Implement SME BFSCALE
  target/arm: Implement SVE BFSCALE
  target/arm: Split decode of BFloat SVE FADD, FSUB, FMUL, FMIN*, FMAX*
  target/arm: Remove DO_ZPZZ_AH_FP_B16 from translate-sme.c
  target/arm: Remove DO_ZPZZ_AH_FP from translate-sme.c
  target/arm: Remove DO_ZPZZ_FP_B16 from translate-sme.c
  target/arm: Remove DO_ZPZZ_FP from translate-sme.c
  ...

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-02 11:11:14 +01:00
Matheus Tavares Bernardino d3cf03b93e target/hexagon: add semihosting support
Baremetal Hexagon programs use trap0 #0 to invoke
semihosting calls for I/O and process control.  Wire up the
arm-compatible semihosting framework for softmmu by enabling
CONFIG_ARM_COMPATIBLE_SEMIHOSTING and routing trap0 to the
semihosting handler.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com>
Signed-off-by: Matheus Tavares Bernardino <matheus.bernardino@oss.qualcomm.com>
checkpatch: style fixes.
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
2026-09-01 18:20:10 -07:00
Richard Henderson 90789a83fb target/arm: Enable FEAT_SVE_AES2 for -cpu max
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260826174213.614571-26-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-01 13:44:13 +01:00
Richard Henderson cbdbd91771 target/arm: Implement and enable FEAT_SSVE_BitPerm for -cpu max
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260826174213.614571-20-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-01 13:44:13 +01:00
Richard Henderson 44230b9fc5 target/arm: Enable FEAT_SVE_BFSCALE for -cpu max
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260826174213.614571-15-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-01 13:44:13 +01:00
Richard Henderson 85d508c1fc target/arm: Enable FEAT_SVE2p2 and FEAT_SME2p2 for -cpu max
These features are tied together if both SVE and SME are enabled.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260826174213.614571-6-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-01 13:44:12 +01:00
Richard Henderson 9b3e7f881b target/arm: Enable FEAT_FGWTE3 for -cpu max
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260806172709.333300-7-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-01 13:44:12 +01:00
Richard Henderson 29a92d9861 target/arm: Separate cpu types max-v8 and max-v9
Do not include v9-only features in "max-v8".
Do not include the prohibited v8 features in "max-v9".
In aarch64 tcg mode, define "max" as "max-v9".

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20260827041557.775080-7-richard.henderson@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-01 11:15:20 +01:00
Simon Xu 48ed36e055 hw/arm/mps2-tz.c add Arm mps3-an555 board
Add mps3-an555 board modeled after the existing mps3-an547 board.
Add UnimplementedDeivceState for timing adapters and qspi controllers
in MPS2TZMachineState.

Changes in AN555:
Timing adapters in APB PPC EX0 instead of MPC.
Additional QSPI controllers in AHB PPC EX0.
Additional AHB PPC EX1 with DMA.
Create standalone unimplemented devices for MPC instead of timing adapters.
Set fpgaio_has_gpioalt2 to true.

Include documentation for SSE-310 and mps3-an555.

Arm mps3-an555 TRM: https://developer.arm.com/documentation/107642/latest/

As our M85 model doesn't yet have PACBTI, note this omission
in the documentation of where we deviate from the real AN555.

Reviewed-by: Owen Giles <owen.giles@hpe.com>
Reviewed-by: Robert Elliott <elliott@hpe.com>
Signed-off-by: Simon Xu <simonxhy0404@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20260805153005.9989-9-simonxhy0404@gmail.com>
[PMM: added doc note about PACBTI]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2026-09-01 11:15:20 +01:00
Peter Maydell ad64baf49d hw/arm: Remove the 'musicpal' machine
The 'musicpal' machine emulates the Freecom MusicPal, which was an
"internet radio" released in the mid-2000s.  The stock system used a
2.6.16 Linux kernel, but as far as I'm aware, support for the
hardware was never upstreamed to the mainline kernel.

There are a number of reasons for deprecating this board:
 * The hardware is now solidly obsolete
 * It was never supported in mainline Linux
 * The SoC is a Marvell one with no public datasheet
 * The only QEMU changes to it have been the usual tree wide
   updates and refactoring work
 * The only bug report we've ever had about it has been one of
   the usual "bug found by static analysis" kind

But in fact we can just drop it immediately, because in commit
59754f85ed ("target/arm: Do memory type alignment check when
translation disabled") in 2024 we broke the boot of the standard
firmware image for this board.  (The image's u-boot does a LDRH to an
unaligned address, which is UNPREDICTABLE; we used to let it through,
but that commit makes it take a Data Abort, so the image crashes
before it boots the kernel.) Since nobody complained, we can deduce
that nobody's actually using this machine.

Remove the machine proper, and note this in the docs.  Devices used
only by this board will be removed in subsequent commits.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Jan Kiszka <jan.kiszka@web.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-id: 20260819185430.3467629-4-peter.maydell@linaro.org
2026-09-01 11:15:20 +01:00
Marc-André Lureau f3900cfb0c monitor: tighten monitor_printf*()
Rename monitor_printf->monitor_hmp_printf, monitor_vprintf->
monitor_hmp_vprintf, and monitor_printc->monitor_hmp_printc, changing
the first parameter from Monitor * to MonitorHMP * to enforce type
safety. The implementation is also simplified: monitor_hmp_vprintf now
directly calls g_strdup_vprintf + monitor_puts, removing the virtual
dispatch via moncls->vprintf.

The dev_print() callbacks are temporarily using the MONITOR_HMP(mon)
cast, they are fixed in the following commits.

Early return in qemu_vprintf() if "hmp" is NULL, relying on
monitor_hmp_vprintf() handling NULL case is a bit uncommon.

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260828-qemu-no-hmp-v5-37-9227de146347@redhat.com>
2026-08-29 12:07:45 +04:00
Richard Henderson 1e9f5a75f3 Merge tag 'pull-11.1-random-updates-280826-1' of https://gitlab.com/stsquad/qemu into staging
some random fixes (gitlab, tests, char-fe, mailmap, deprecations):

 - use .base_meson_job_template for macOS jobs
 - use explicit cflags for arm system tests
 - add arm-softmmu tests to MacOS
 - implement qemu_chr_fe_backend_name
 - deprecate virtio-crypto
 - mailmap updates

# -----BEGIN PGP SIGNATURE-----
#
# iQEzBAABCgAdFiEEZoWumedRZ7yvyN81+9DbCVqeKkQFAmqRZ6QACgkQ+9DbCVqe
# KkSMuQf9EWuVAiVLZwWGmFSqlV+KJgkoh71znr5jyv+MLoBWQispILUi7PZsZgi3
# tYk99OLRKot9SRgn0JyrLJ9J2lgCqWxwdFOah2RihEzuQqoL9cKpIjMhxI0ZZTNq
# JHN94zqgRRJ7NydNqdRwYGF8hwj0w9uI74eCrKabAvHEtU9xIAM8bUmHoo1xkYoA
# stYHBgBMImNXmRskGs7yNkmzRnFhlXsf38DJOWQTzP8L9f08KpjdQySxxq0INQht
# jbiVzWuruZkr7Sejtu/PldWstoT4sS2XGTCtRoxr1I3SCc2+UNQetN4kQh56lO5/
# q2n6/4nQAQDa+cveWOOPR3nBezAy9g==
# =V7dM
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri 28 Aug 2026 03:49:08 AM PDT
# gpg:                using RSA key 6685AE99E75167BCAFC8DF35FBD0DB095A9E2A44
# gpg: Good signature from "Alex Bennée (Master Work Key) <alex.bennee@linaro.org>" [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: 6685 AE99 E751 67BC AFC8  DF35 FBD0 DB09 5A9E 2A44

* tag 'pull-11.1-random-updates-280826-1' of https://gitlab.com/stsquad/qemu:
  mailmap: map the last From-munged author back to a real identity
  docs: deprecate virtio-crypto
  char-fe: implement qemu_chr_fe_backend_name
  gitlab: add arm-softmmu tests to the macOS build
  tests/arm: add explicit CFLAGS for system build
  gitlab: use .base_meson_job_template for macOS jobs

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2026-08-28 15:16:04 -07:00
Aadeshveer Singh d75125d1fb docs/migration: Add documentation for fast snapshot load feature
Add documenatation for fast snapshot load covering an overview, the
architecture, usage and limitations.

Signed-off-by: Aadeshveer Singh <aadeshveer07@gmail.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
2026-08-28 09:09:27 -03:00
Alex Bennée aaf25b4ccc docs: deprecate virtio-crypto
We have outstanding guest exploitable bugs in the code which is fairly
complex and needs some serious love to clean it up. As off-CPU
cryptography acceleration seems to be waning in popularity lets just
the deprecate the sub-system with a view to removing it in a couple of
cycles.

We can also remove the backend code at that point as well.

Link: https://gitlab.com/qemu-project/qemu/-/work_items/3625
Reviewed-by: Mohamed Mediouni <mohamed@unpredictable.fr>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260824-fixes-for-11-2-v2-7-352c6b890402@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2026-08-28 11:40:08 +01:00