qemu/tests
Costas Argyris 6d4d9b69de tests/qtest: Add amd-iommu command buffer head wrap test
Add a qtest for AMD IOMMU command buffer head pointer wraparound.
The test programs a command buffer, fills it with COMPLETION_WAIT commands,
advances the tail to consume all but the final entry, then wraps the tail
to zero to force the final command to advance CmdHeadPtr past the end of
the buffer. The guest-visible CmdHeadPtr register must then wrap back to zero.

This covers the case fixed by an earlier CmdHeadPtr wraparound patch.

The Linux kernel AMD IOMMU driver is not affected by this bug because it
uses COMPLETION_WAIT with a memory store doorbell to detect command progress.

Signed-off-by: Costas Argyris <costas.argyris@amd.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260530183458.7778-1-costas.argyris@amd.com>
(cherry picked from commit 8a1c09cbd3)
(Mjt: context fixup in MAINTAINERS)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-06-16 17:47:15 +03:00
..
bench tests/bench: Rename test_akcipher_keys.inc -> test_akcipher_keys.c.inc 2024-09-20 10:08:24 +03:00
data tests/qtest/bios-tables-test: Update DSDT blobs after GPEX _DSM change 2025-11-21 16:01:47 +03:00
decode tests/: spelling fixes 2023-09-08 13:08:52 +03:00
docker rust: suggest passing --locked to "cargo install" 2026-03-31 20:07:01 +03:00
fp fpu: allow flushing of output denormals to be after rounding 2025-02-11 16:22:07 +00:00
functional tests/functional/qemu_test/asset.py: Don't use setxattr when it doesn't exist 2026-05-19 23:40:30 +03:00
guest-debug tests/tcg: Add late gdbstub attach test 2025-02-10 13:47:59 +00:00
image-fuzzer
include
keys
lcitool rust: suggest passing --locked to "cargo install" 2026-03-31 20:07:01 +03:00
migration-stress guestperf: Add test result data into report 2025-02-14 15:19:07 -03:00
multiboot
perf/block/qcow2
qapi-schema docs/sphinx/qmp_lexer: Generalize elision syntax 2025-04-08 09:04:34 +02:00
qemu-iotests qcow2: Fix data loss on zero write with detect-zeroes=unmap 2026-06-11 06:50:26 +03:00
qtest tests/qtest: Add amd-iommu command buffer head wrap test 2026-06-16 17:47:15 +03:00
rocker
tcg linux-user/sh4: preserve T/M/Q bits across signal delivery 2026-06-01 20:24:56 +03:00
tsan block: remove AioContext locking 2023-12-21 22:49:27 +01:00
uefi-test-tools tests/data/uefi-boot-images: Add RISC-V ISO image 2024-07-03 18:14:06 -04:00
unit tests/unit: add test-envlist covering setenv/unsetenv name matching 2026-06-04 22:57:10 +03:00
vm tests/vm: bump FreeBSD image to 14.3 2026-01-07 16:31:43 +03:00
vmstate-static-checker-data
dbus-vmstate-daemon.sh
Makefile.include Remove the remainders of the Avocado tests 2025-11-23 11:00:59 +03:00
meson.build qapi: expose all schema features to code 2025-02-10 15:45:04 +01:00
test-qht-par.c
vhost-user-bridge.c tests/vhost-user-bridge.c: Fix const qualifier build errors with recent glibc 2026-01-07 16:31:43 +03:00