libvirt/tests
Laine Stump acd8333f76 qemu: add reconnect=5 to passt qemu commandline options when available
QEMU's "reconnect" option of "-netdev stream" tells QEMU to
periodically (period is given in seconds as an argument to the option)
attempt to reconnect to the same passt socket to which it had
originally connected to. This is useful in cases where the passt
process terminates, and libvirtd starts a new passt process in its
place (which doesn't happen yet, but will happen automatically after
an upcoming patch in this series).

Since there is no real hueristic for determining the "best" value of
the reconnect interval, rather than clutter up config with a knob that
nobody knows how to properly twiddle, we just set the reconnect timer
to 5 seconds.

"-netdev stream" first appeared in QEMU 7.2.0, but the reconnect
option won't be available until QEMU 8.0.0, so we need to check QEMU
capabilities just in case someone is using QEMU 7.2.0 (and thus can
support passt backend, but not reconnect)

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2023-02-22 08:26:01 -05:00
..
bhyveargv2xmldata
bhyvefirmwaredata
bhyvexml2argvdata bhyvexml2argvtest: use virCommandToStringFull to strip command path 2021-04-21 14:20:03 +02:00
bhyvexml2xmloutdata
capabilityschemadata
chxml2xmlin test: Introduce chxml2xmltest 2023-02-14 13:59:45 +01:00
chxml2xmlout test: Introduce chxml2xmltest 2023-02-14 13:59:45 +01:00
commanddata
cputestdata
domainbackupxml2xmlin
domainbackupxml2xmlout
domaincapsdata cpu_s390: Implement getVendorForModel for IBM Z 2023-02-10 09:15:03 +01:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin
networkxml2xmlout
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevmdevctldata
nodedevschemadata
nodedevxml2xmlout
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata
qemucapabilitiesdata qemu: capabilities: Introduce QEMU_CAPS_NETDEV_STREAM_RECONNECT 2023-02-22 08:25:36 -05:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout
qemufirmwaredata
qemuhotplugtestcpus
qemuhotplugtestdevices
qemuhotplugtestdomains
qemumemlockdata
qemumigparamsdata
qemumigrationcookiexmldata
qemumonitorjsondata
qemusecuritydata
qemustatusxml2xmldata qemustatusxml2xmltest: Add test data for testing '<origstates>' of PCI hostdev 2023-02-06 09:14:00 +01:00
qemuvhostuserdata
qemuxml2argvdata qemu: add reconnect=5 to passt qemu commandline options when available 2023-02-22 08:26:01 -05:00
qemuxml2xmloutdata qemu: add check for QEMU_CAPS_NETDEV_STREAM during validation 2023-02-22 07:36:45 -05:00
schemas
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata
virconfdata
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata
virprocessstatdata
virresctrldata
virscsidata
virstoragetestdata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata
xlconfigdata
xmconfigdata
xml2vmxdata
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c
bhyvexml2argvmock.c
bhyvexml2argvtest.c
bhyvexml2xmltest.c
chxml2xmltest.c test: Introduce chxml2xmltest 2023-02-14 13:59:45 +01:00
commandhelper.c
commandtest.c
cputest.c
domaincapsmock.c
domaincapstest.c tests: add QEMU RISC-V "virt" machine in domaincapstest 2023-01-24 13:24:41 -03:00
domainconftest.c
esxutilstest.c
eventtest.c
fchosttest.c
fdstreamtest.c
genericxml2xmltest.c
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlmock.c
libxlxml2domconfigtest.c
lxcconf2xmltest.c
lxcxml2xmltest.c
meson.build test: Introduce chxml2xmltest 2023-02-14 13:59:45 +01:00
metadatatest.c
networkxml2conftest.c
networkxml2firewalltest.c
networkxml2xmltest.c
networkxml2xmlupdatetest.c
nodedevmdevctltest.c
nodedevxml2xmltest.c
nsslinktest.c
nssmock.c
nsstest.c
nwfilterebiptablestest.c
nwfilterxml2firewalltest.c
nwfilterxml2xmltest.c src/tests: use g_autoptr for virNWFilterDef and virNWFilterRuleDef 2023-01-20 22:09:34 +01:00
objecteventtest.c
openvzutilstest.c
openvzutilstest.conf
permitted_file_access.txt
pkix_asn1_tab.c
qemuagenttest.c
qemublocktest.c
qemucapabilitiesnumbering.c
qemucapabilitiestest.c
qemucaps2xmlmock.c
qemucaps2xmltest.c
qemucapsprobe.c
qemucapsprobemock.c
qemucommandutiltest.c
qemucpumock.c
qemudomaincheckpointxml2xmltest.c
qemudomainsnapshotxml2xmltest.c
qemufirmwaretest.c
qemuhotplugmock.c
qemuhotplugtest.c conf: Use proper type for 'type' field of struct _virDomainDeviceDef 2023-02-06 13:34:29 +01:00
qemumemlocktest.c
qemumigparamstest.c
qemumigrationcookiexmltest.c
qemumonitorjsontest.c
qemumonitortestutils.c
qemumonitortestutils.h
qemusecuritymock.c
qemusecuritytest.c
qemusecuritytest.h
qemustatusxml2xmltest.c
qemuvhostusertest.c
qemuxml2argvmock.c
qemuxml2argvtest.c qemu: add reconnect=5 to passt qemu commandline options when available 2023-02-22 08:26:01 -05:00
qemuxml2xmltest.c qemu: add check for QEMU_CAPS_NETDEV_STREAM during validation 2023-02-22 07:36:45 -05:00
scsihosttest.c
seclabeltest.c
secretxml2xmltest.c
securityselinuxhelper.c
securityselinuxlabeltest.c
securityselinuxtest.c
shunloadhelper.c
shunloadtest.c
sockettest.c
ssh.c
storagepoolcapstest.c
storagepoolxml2argvtest.c
storagepoolxml2xmltest.c
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c
test-lib.sh
testutils.c
testutils.h
testutilshostcpus.h tests: add QEMU RISC-V "virt" machine in domaincapstest 2023-01-24 13:24:41 -03:00
testutilslxc.c
testutilslxc.h
testutilsqemu.c qemuxml2argvtest: Add support for populating 'fds' in private data 2023-01-09 14:59:42 +01:00
testutilsqemu.h qemuxml2argvtest: Add support for populating 'fds' in private data 2023-01-09 14:59:42 +01:00
testutilsqemuschema.c
testutilsqemuschema.h
testutilsxen.c
testutilsxen.h
utiltest.c
vboxsnapshotxmltest.c
viralloctest.c
virauthconfigtest.c
virbitmaptest.c
virbuftest.c
vircaps2xmltest.c
vircapstest.c
vircgroupmock.c
vircgrouptest.c
virconftest.c
vircryptotest.c
virdnsmasqmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c
virerrortest.c
virfilecachemock.c
virfilecachetest.c
virfilemock.c
virfiletest.c
virfilewrapper.c
virfilewrapper.h
virfirewallmock.c
virfirewalltest.c
virgdbusmock.c
virhostcpumock.c
virhostcputest.c
virhostdevmock.c
virhostdevtest.c virhostdevtest: Decrease possibility of uninitialized @subsys 2023-02-06 16:33:26 +01:00
virhostidmock.c
viridentitytest.c
viriscsitest.c
virjsontest.c
virkeycodetest.c
virkmodtest.c
virlockspacetest.c
virlogtest.c
virmacmaptest.c
virmigtest.c
virmock.h
virmockstathelpers.c
virnetdaemonmock.c
virnetdaemontest.c
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c
virnetdevmock.c
virnetdevopenvswitchtest.c
virnetdevtest.c
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c
virnettlscontexttest.c
virnettlshelpers.c
virnettlshelpers.h
virnettlssessiontest.c
virnetworkportxml2xmltest.c
virnumamock.c
virnwfilterbindingxml2xmltest.c
virpcimock.c
virpcitest.c
virpcivpdtest.c
virpolkittest.c
virportallocatormock.c
virportallocatortest.c
virprocessmock.c
virprocessstattest.c
virrandommock.c
virresctrltest.c
virrotatingfiletest.c
virschematest.c
virscsitest.c
virsh-auth
virsh-auth.xml
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-output
virsh-output-commands
virsh-output.out
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-snapshot
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c
virstoragetest.c
virstorageutiltest.c
virstringtest.c
virsystemdtest.c
virt-aa-helper-test
virt-admin-self-test
virtestmock.c
virtimetest.c
virtypedparamtest.c
viruritest.c Drop checks for virURIFormat() retval 2023-02-08 16:50:45 +01:00
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c
vshtabletest.c
xlconfigtest.c
xmconfigtest.c
xml2vmxtest.c