qemu-e2k/tests/qtest
Daniel P. Berrangé 0150e75d01 tests/qtest: add support for callback to receive QMP events
Currently code must call one of the qtest_qmp_event* functions to
fetch events. These are only usable if the immediate caller knows
the particular event they want to capture, and are only interested
in one specific event type. Adding ability to register an event
callback lets the caller capture a range of events over any period
of time.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230601161347.1803440-3-berrange@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2023-06-02 11:46:19 +02:00
..
fuzz igb: Introduce qtest for igb device 2023-03-10 17:26:47 +08:00
libqos tests/qtest/libqos/igb: Set GPIE.Multiple_MSIX 2023-05-23 15:20:15 +08:00
ac97-test.c tests/qtest/ac97-test: add up-/downsampling tests 2023-05-26 09:10:49 +02:00
acpi-utils.c
acpi-utils.h
adm1272-test.c
ahci-test.c tests/qtest: replace qmp_discard_response with qtest_qmp_assert_success 2023-05-16 09:14:18 +02:00
am53c974-test.c
arm-cpu-features.c tests/qtest: Adjust and document query-cpu-model-expansion test for arm 2023-05-02 10:21:32 +01:00
aspeed_gpio-test.c
aspeed_hace-test.c
aspeed_smc-test.c
bcm2835-dma-test.c
bios-tables-test-allowed-diff.h ACPI: bios-tables-test.c step 5 (update expected table binaries) 2023-05-19 01:36:09 -04:00
bios-tables-test.c tests/qtest: Check for virtio-blk before using -cdrom with the arm virt machine 2023-05-26 09:10:49 +02:00
boot-order-test.c tests/qtest: replace qmp_discard_response with qtest_qmp_assert_success 2023-05-16 09:14:18 +02:00
boot-sector.c tests: boot_sector_test(): make it multi-shot 2023-01-28 06:21:29 -05:00
boot-sector.h
boot-serial-test.c tests/qtest: Fix tests when no KVM or TCG are present 2023-05-02 10:54:32 +01:00
cdrom-test.c tests/qtest: Check for virtio-blk before using -cdrom with the arm virt machine 2023-05-26 09:10:49 +02:00
cmsdk-apb-dualtimer-test.c
cmsdk-apb-timer-test.c
cmsdk-apb-watchdog-test.c
cpu-plug-test.c
cxl-test.c hw/cxl: Multi-Region CXL Type-3 Devices (Volatile and Persistent) 2023-05-19 01:36:09 -04:00
dbus-display-test.c Call qemu_socketpair() instead of socketpair() when possible 2023-01-16 17:42:17 +01:00
dbus-vmstate-test.c
device-introspect-test.c
device-plug-test.c target/ppc: Add POWER9 DD2.2 model 2023-05-28 13:25:11 -03:00
display-vga-test.c tests/qtest/display-vga-test: Add proper checks if a device is available 2023-01-31 09:05:26 +01:00
drive_del-test.c tests/qtest: drive_del-test: Skip tests that require missing devices 2023-02-14 09:11:27 +01:00
ds1338-test.c
e1000-test.c
e1000e-test.c tests/qtest/e1000e-test: Fabricate ethernet header 2023-03-10 17:26:47 +08:00
eepro100-test.c
emc141x-test.c
endianness-test.c
erst-test.c tests: add G_GNUC_PRINTF for various functions 2023-01-11 10:44:34 +01:00
es1370-test.c
fdc-test.c tests/qtest: replace qmp_discard_response with qtest_qmp_assert_success 2023-05-16 09:14:18 +02:00
fuzz-e1000e-test.c
fuzz-lsi53c895a-test.c hw/scsi/lsi53c895a: Fix reentrancy issues in the LSI controller (CVE-2023-0330) 2023-05-26 09:37:04 +02:00
fuzz-megasas-test.c
fuzz-sb16-test.c
fuzz-sdcard-test.c
fuzz-virtio-scsi-test.c
fuzz-xlnx-dp-test.c
fw_cfg-test.c
hd-geo-test.c tests/qtest: hd-geo-test: Check for missing devices 2023-02-14 09:11:27 +01:00
hexloader-test.c
i440fx-test.c
i82801b11-test.c
ide-test.c tests/qtest: replace qmp_discard_response with qtest_qmp_assert_success 2023-05-16 09:14:18 +02:00
igb-test.c igb: Introduce qtest for igb device 2023-03-10 17:26:47 +08:00
intel-hda-test.c
ioh3420-test.c
ipmi-bt-test.c
ipmi-kcs-test.c
ipoctal232-test.c
isl_pmbus_vr-test.c
ivshmem-test.c tests: add G_GNUC_PRINTF for various functions 2023-01-11 10:44:34 +01:00
libqmp.c tests: add G_GNUC_PRINTF for various functions 2023-01-11 10:44:34 +01:00
libqmp.h
libqtest-single.h
libqtest.c tests/qtest: add support for callback to receive QMP events 2023-06-02 11:46:19 +02:00
libqtest.h tests/qtest: add support for callback to receive QMP events 2023-06-02 11:46:19 +02:00
lpc-ich9-test.c
lsm303dlhc-mag-test.c
m48t59-test.c
machine-none-test.c
max34451-test.c
megasas-test.c
meson.build tests/qtest: Run arm-specific tests only if the required machine is available 2023-05-30 15:50:17 +01:00
microbit-test.c win32: replace closesocket() with close() wrapper 2023-03-13 15:39:31 +04:00
migration-helpers.c
migration-helpers.h tests: add G_GNUC_PRINTF for various functions 2023-01-11 10:44:34 +01:00
migration-test.c tests/qtest: replace qmp_discard_response with qtest_qmp_assert_success 2023-05-16 09:14:18 +02:00
modules-test.c
ne2000-test.c
netdev-socket.c net: stream: test reconnect option with an unix socket 2023-05-16 09:14:18 +02:00
npcm7xx_adc-test.c
npcm7xx_emc-test.c
npcm7xx_gpio-test.c
npcm7xx_pwm-test.c tests/qtest/npcm7xx_pwm-test: Be less verbose unless V=2 2023-02-14 09:02:42 +01:00
npcm7xx_rng-test.c
npcm7xx_sdhci-test.c
npcm7xx_smbus-test.c
npcm7xx_timer-test.c
npcm7xx_watchdog_timer-test.c
numa-test.c
nvme-test.c
pca9552-test.c
pci-test.c
pcnet-test.c
pflash-cfi02-test.c
pnv-xscom-test.c
prom-env-test.c
pvpanic-pci-test.c
pvpanic-test.c
pxe-test.c tests/qtest: Fix tests when no KVM or TCG are present 2023-05-02 10:54:32 +01:00
q35-test.c
qmp-cmd-test.c i386/xen: add monitor commands to test event injection 2023-03-01 08:22:50 +00:00
qmp-test.c
qom-test.c tests/qtest/qom-test: Stop spamming the test log 2023-01-26 13:25:07 +01:00
qos-test.c
qtest_aspeed.c qtest: Add functions for accessing devices on Aspeed I2C controller 2023-04-20 11:25:32 +02:00
qtest_aspeed.h qtest: Add functions for accessing devices on Aspeed I2C controller 2023-04-20 11:25:32 +02:00
readconfig-test.c tests/qtest/readconfig-test: Check for the availability of USB controllers 2023-05-22 09:44:48 +02:00
rtas-test.c tests: add G_GNUC_PRINTF for various functions 2023-01-11 10:44:34 +01:00
rtc-test.c
rtl8139-test.c tests/qtest/rtl8139-test: Check whether the rtl8139 device is available 2023-05-26 09:10:49 +02:00
sdhci-test.c
spapr-phb-test.c
sse-timer-test.c
tco-test.c hw: Move ich9.h to southbridge/ 2023-02-27 22:29:01 +01:00
test-arm-mptimer.c
test-filter-mirror.c tests/qtest: replace qmp_discard_response with qtest_qmp_assert_success 2023-05-16 09:14:18 +02:00
test-filter-redirector.c tests/qtest: replace qmp_discard_response with qtest_qmp_assert_success 2023-05-16 09:14:18 +02:00
test-hmp.c hmp: Add 'one-insn-per-tb' command equivalent to 'singlestep' 2023-05-02 15:47:40 +01:00
test-netfilter.c
test-x86-cpuid-compat.c
tmp105-test.c
tpm-crb-swtpm-test.c qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it 2023-04-20 11:25:32 +02:00
tpm-crb-test.c qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it 2023-04-20 11:25:32 +02:00
tpm-emu.c io: Add support for MSG_PEEK for socket channel 2023-02-06 19:22:56 +01:00
tpm-emu.h
tpm-tests.c
tpm-tests.h
tpm-tis-device-swtpm-test.c qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it 2023-04-20 11:25:32 +02:00
tpm-tis-device-test.c
tpm-tis-i2c-test.c qtest: Add a test case for TPM TIS I2C connected to Aspeed I2C controller 2023-04-20 11:25:32 +02:00
tpm-tis-swtpm-test.c qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it 2023-04-20 11:25:32 +02:00
tpm-tis-test.c
tpm-tis-util.c qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it 2023-04-20 11:25:32 +02:00
tpm-tis-util.h qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it 2023-04-20 11:25:32 +02:00
tpm-util.c qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it 2023-04-20 11:25:32 +02:00
tpm-util.h qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it 2023-04-20 11:25:32 +02:00
tulip-test.c
usb-hcd-ehci-test.c tests/qtest/usb-hcd-ehci-test: Check for EHCI and UHCI HCDs before using them 2023-05-26 09:10:49 +02:00
usb-hcd-ohci-test.c
usb-hcd-uhci-test.c tests/qtest/usb-hcd-uhci-test: Check whether "usb-storage" is available 2023-05-26 09:10:49 +02:00
usb-hcd-xhci-test.c
vhost-user-blk-test.c
vhost-user-test.c tests: vhost-user-test: release mutex on protocol violation 2023-04-28 08:05:37 +02:00
virtio-9p-test.c
virtio-blk-test.c tests/qtest: replace qmp_discard_response with qtest_qmp_assert_success 2023-05-16 09:14:18 +02:00
virtio-ccw-test.c tests/qtest: Check for the availability of virtio-ccw devices before using them 2023-05-22 09:44:48 +02:00
virtio-iommu-test.c
virtio-net-failover.c
virtio-net-test.c
virtio-rng-test.c
virtio-scsi-test.c
virtio-serial-test.c
virtio-test.c
vmgenid-test.c tests/qtest: Fix tests when no KVM or TCG are present 2023-05-02 10:54:32 +01:00
vmxnet3-test.c
vnc-display-test.c qtest: enable vnc-display test on win32 2023-03-13 15:41:32 +04:00
wdt_ib700-test.c
xlnx-can-test.c