qemu-cr16/tests/qtest/libqos
Stefan Hajnoczi e06d96d5a9 tests/libqos: extract qvirtqueue_set_avail_idx()
Setting the vring's avail.idx can be useful for low-level VIRTIO tests,
especially for testing error scenarios with invalid vrings. Extract it
into a new function so that the next commit can add a test that uses
this new test API.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20250922220149.498967-5-stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2025-10-05 09:01:08 -04:00
..
aarch64-xlnx-zcu102-machine.c
ahci.c tests/qtest : Use g_assert_cmphex instead of g_assert_cmpuint 2024-04-25 07:03:04 +02:00
ahci.h qtest/libqos: Reduce size_to_prdtl() declaration scope 2024-04-02 14:55:32 +02:00
arm-imx25-pdk-machine.c tests/qtest/libqos: Reuse TYPE_IMX_I2C define 2025-01-13 17:16:04 +01:00
arm-raspi2-machine.c
arm-sabrelite-machine.c
arm-smdkc210-machine.c
arm-virt-machine.c
arm-xilinx-zynq-a9-machine.c
e1000e.c tests/qtest/libqos/e1000e: Export macreg functions 2023-03-10 17:26:47 +08:00
e1000e.h tests/qtest/libqos/e1000e: Export macreg functions 2023-03-10 17:26:47 +08:00
fw_cfg.c tests/qtest/libqos: add DMA support for writing and reading fw_cfg files 2025-02-03 12:15:50 -03:00
fw_cfg.h tests/qtest/libqos: add DMA support for writing and reading fw_cfg files 2025-02-03 12:15:50 -03:00
generic-pcihost.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
generic-pcihost.h
i2c-imx.c tests/qtest/libqos: Reuse TYPE_IMX_I2C define 2025-01-13 17:16:04 +01:00
i2c-omap.c
i2c.c
i2c.h
igb.c tests/qtest: Avoid unaligned access in IGB test 2025-06-07 16:40:39 +01:00
libqos-malloc.c cleanup: Drop pointless return at end of function 2025-04-24 09:33:42 +02:00
libqos-malloc.h
libqos-pc.c
libqos-pc.h tests: add G_GNUC_PRINTF for various functions 2023-01-11 10:44:34 +01:00
libqos-spapr.c
libqos-spapr.h tests/qtest: Move common define from libqos-spapr.h to new ppc-util.h 2024-06-14 14:00:46 -03:00
libqos.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
libqos.h tests/qtest: Move mkimg() and have_qemu_img() from libqos to libqtest 2023-07-10 15:34:57 +02:00
loongarch-virt-machine.c tests/libqos: Add loongarch virt machine node 2024-06-06 11:56:36 +08:00
malloc-pc.c
malloc-pc.h
malloc-spapr.c
malloc-spapr.h
meson.build hw/ipack: Clarify KConfig symbols 2025-01-31 19:36:44 +01:00
pci-pc.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
pci-pc.h
pci-spapr.c
pci-spapr.h
pci.c qtest/libqos/pci: Do not write to PBA memory 2025-02-20 18:23:19 -05:00
pci.h
ppc64_pseries-machine.c
qgraph.c tests/: spelling fixes 2023-09-08 13:08:52 +03:00
qgraph.h tests/qtest: fix some copy and paste errors in kdoc 2025-01-17 10:45:38 +00:00
qgraph_internal.h tests/: spelling fixes 2023-09-08 13:08:52 +03:00
qos_external.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
qos_external.h
riscv-iommu.c test/qtest: add riscv-iommu-pci tests 2024-10-31 13:51:24 +10:00
riscv-iommu.h qtest/riscv-iommu-test: add init queues test 2024-10-31 13:51:24 +10:00
riscv-virt-machine.c tests/libqos: add riscv/virt machine nodes 2024-03-08 16:48:40 +10:00
rtas.c
rtas.h
sdhci-cmd.c
sdhci-cmd.h tests/qtest/npcm7xx_sdhci: Access the card using its published address 2024-07-05 23:50:12 +02:00
sdhci.c
sdhci.h
tpci200.c
usb.c
usb.h
vhost-user-blk.c
vhost-user-blk.h
virtio-9p-client.c tests/9p: add 'Tsetattr' request to test client 2025-05-05 11:28:29 +02:00
virtio-9p-client.h tests/9p: add 'Tsetattr' request to test client 2025-05-05 11:28:29 +02:00
virtio-9p.c tests: add G_GNUC_PRINTF for various functions 2023-01-11 10:44:34 +01:00
virtio-9p.h
virtio-balloon.c
virtio-balloon.h
virtio-blk.c
virtio-blk.h
virtio-gpio.c tests/: spelling fixes 2023-09-08 13:08:52 +03:00
virtio-gpio.h
virtio-iommu.c
virtio-iommu.h
virtio-mmio.c
virtio-mmio.h
virtio-net.c
virtio-net.h
virtio-pci-modern.c tests/qtest: don't attempt to clock_step while waiting for virtio ISR 2025-02-10 13:47:58 +00:00
virtio-pci-modern.h
virtio-pci.c tests/qtest: don't attempt to clock_step while waiting for virtio ISR 2025-02-10 13:47:58 +00:00
virtio-pci.h
virtio-rng.c
virtio-rng.h
virtio-scmi.c licenses: Remove SPDX tags not being license identifier for Linaro 2025-01-30 13:01:22 +03:00
virtio-scmi.h tests/qtest: enable tests for virtio-scmi 2023-07-10 16:17:08 -04:00
virtio-scsi.c
virtio-scsi.h
virtio-serial.c
virtio-serial.h
virtio.c tests/libqos: extract qvirtqueue_set_avail_idx() 2025-10-05 09:01:08 -04:00
virtio.h tests/libqos: extract qvirtqueue_set_avail_idx() 2025-10-05 09:01:08 -04:00
x86_64_pc-machine.c