libvirt/tests
Eric Blake 1859939a74 qemu: use -incoming fd:n to avoid qemu holding fd indefinitely
https://bugzilla.redhat.com/show_bug.cgi?id=620363

When using -incoming stdio or -incoming exec:, qemu keeps the
stdin fd open long after the migration is complete.  Not to
mention that exec:cat is horribly inefficient, by doubling the
I/O and going through a popen interface in qemu.

The new -incoming fd: of qemu 0.12.0 closes the fd after using
it, and allows us to bypass an intermediary cat process for
less I/O.

* src/qemu/qemu_command.h (qemuBuildCommandLine): Add parameter.
* src/qemu/qemu_command.c (qemuBuildCommandLine): Support
migration via fd: when possible.  Consolidate migration handling
into one spot, now that it is more complex.
* src/qemu/qemu_driver.c (qemudStartVMDaemon): Update caller.
* tests/qemuxml2argvtest.c (mymain): Likewise.
* tests/qemuxml2argvdata/qemuxml2argv-restore-v2-fd.args: New file.
* tests/qemuxml2argvdata/qemuxml2argv-restore-v2-fd.xml: Likewise.
2011-01-17 09:24:41 -07:00
..
capabilityschemadata
commanddata maint: improve tests distribution 2010-12-17 11:57:11 -07:00
confdata maint: improve tests distribution 2010-12-17 11:57:11 -07:00
cputestdata tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
domainschemadata schema: Move timer element inside clock 2010-11-09 15:35:43 +01:00
domainsnapshotxml2xmlin Domain snapshot RNG and tests. 2010-05-20 13:50:03 -04:00
domainsnapshotxml2xmlout Domain snapshot RNG and tests. 2010-05-20 13:50:03 -04:00
interfaceschemadata
networkxml2xmlin Change virtual network XML parsing/formatting to support IPv6 2010-12-23 15:53:55 -05:00
networkxml2xmlout Change virtual network XML parsing/formatting to support IPv6 2010-12-23 15:53:55 -05:00
nodedevschemadata
nodeinfodata
nwfilterxml2xmlin nwfilter: Add test case for testing the state attribute 2010-10-07 06:43:35 -04:00
nwfilterxml2xmlout nwfilter: Add test case for testing the state attribute 2010-10-07 06:43:35 -04:00
qemuhelpdata qemu: improve device flag parsing 2011-01-13 16:03:11 -07:00
qemuxml2argvdata qemu: use -incoming fd:n to avoid qemu holding fd indefinitely 2011-01-17 09:24:41 -07:00
qemuxml2xmloutdata qemu: virtio console support 2010-07-28 16:48:00 -04:00
sexpr2xmldata maint: improve tests distribution 2010-12-17 11:57:11 -07:00
storagepoolxml2xmlin storage: add support for Vendor and Model in XML 2010-08-19 15:58:43 -06:00
storagepoolxml2xmlout storage: add support for Vendor and Model in XML 2010-08-19 15:58:43 -06:00
storagevolxml2xmlin
storagevolxml2xmlout
vmx2xmldata vmx: Add support for video device VRAM size 2011-01-06 18:18:35 +01:00
xencapsdata maint: improve tests distribution 2010-12-17 11:57:11 -07:00
xmconfigdata maint: improve tests distribution 2010-12-17 11:57:11 -07:00
xml2sexprdata maint: improve tests distribution 2010-12-17 11:57:11 -07:00
xml2vmxdata vmx: Add support for video device VRAM size 2011-01-06 18:18:35 +01:00
.gitignore Introduce new APIs for spawning processes 2010-12-02 16:00:44 -07:00
.valgrind.supp
capabilityschematest
commandhelper.c commandtest: avoid printing loader-control variables from commandhelper 2011-01-06 14:21:17 -07:00
commandtest.c command: avoid hanging on daemon processes 2010-12-21 11:49:49 -07:00
conftest.c
cpuset tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
cputest.c tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
daemon-conf tests: fix daemon-conf testing failure 2010-11-03 11:43:11 +01:00
define-dev-segfault domain conf: Track <console> target type 2010-07-28 16:47:59 -04:00
domainschematest tests: Test qemuxml2xml when expected xml changes 2010-07-28 16:47:56 -04:00
domainsnapshotschematest Domain snapshot RNG and tests. 2010-05-20 13:50:03 -04:00
esxutilstest.c esx: Move VMX handling code out of the driver directory 2010-12-21 22:40:17 +01:00
eventtest.c
int-overflow
interfaceschematest
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
Makefile.am tests: Remove obsolete secaatest 2011-01-15 23:36:31 +01:00
networkschematest
networkxml2xmltest.c
nodedevschematest
nodedevxml2xmltest.c
nodeinfotest.c tests: avoid spurious failure of nodeinfotest 2010-12-20 10:31:40 -07:00
nwfilterschematest nwfilter: Add filter schema for nwfilter XML, extend domain XML schema 2010-04-06 11:09:46 -04:00
nwfilterxml2xmltest.c tests: Fix detection of expected errors 2010-11-29 16:35:20 +01:00
object-locking.ml build: import latest gnulib 2010-04-02 10:18:55 -06:00
oomtrace.pl
qemuargv2xmltest.c Update QEMU test cases for new file locations & API renames 2010-12-17 16:41:51 +00:00
qemuhelptest.c qemu: improve device flag parsing 2011-01-13 16:03:11 -07:00
qemuxml2argvtest.c qemu: use -incoming fd:n to avoid qemu holding fd indefinitely 2011-01-17 09:24:41 -07:00
qemuxml2xmltest.c tests: Add tests for per-device boot elements 2011-01-17 17:18:56 +01:00
qparamtest.c
read-bufsiz build: use portable sed expressions 2010-09-14 08:42:10 -06:00
read-non-seekable tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
reconnect.c
schematestutils.sh schematestutils.sh: improve shell portability: avoid "echo -e" 2010-04-14 17:34:12 +02:00
seclabeltest.c Refactor the security drivers to simplify usage 2011-01-10 18:10:52 +00:00
sexpr2xmltest.c vcpu: improve vcpu support in xen command line 2010-10-19 10:06:45 -06:00
sockettest.c Add test suite for virSocket APIs 2010-10-22 11:59:37 +01:00
start tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
statstest.c Fix statstest when driver modules are enabled 2010-10-19 17:31:30 +01:00
storagepoolschematest
storagepoolxml2xmltest.c storage: add support for Vendor and Model in XML 2010-08-19 15:58:43 -06:00
storagevolschematest
storagevolxml2xmltest.c
test_conf.sh
test-lib.sh
testutils.c tests: Fix dispatching internal error reports 2010-11-23 12:15:14 -05:00
testutils.h tests: silence qemuargv2xmltest noise 2010-09-16 10:45:33 -06:00
testutilsqemu.c Update QEMU test cases for new file locations & API renames 2010-12-17 16:41:51 +00:00
testutilsqemu.h
testutilsxen.c
testutilsxen.h
undefine tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
vcpupin tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
virbuftest.c tests: Fix preprocessor indentation 2010-09-13 13:35:04 +02:00
virsh-all tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
virsh-schedinfo tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
virsh-synopsis tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
virshtest.c virsh: add tests for recent cli improvements 2010-10-15 14:25:39 -06:00
virt-aa-helper-test virt-aa-helper-test cleanups 2010-09-30 15:01:36 -06:00
vmx2xmltest.c vmx: Add support for video device VRAM size 2011-01-06 18:18:35 +01:00
xencapstest.c deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() 2010-11-16 21:13:29 -05:00
xmconfigtest.c vcpu: improve vcpu support in xen command line 2010-10-19 10:06:45 -06:00
xml2sexprtest.c xend: Escape reserved sexpr characters 2010-11-22 16:43:29 -05:00
xml2vmxtest.c vmx: Add support for video device VRAM size 2011-01-06 18:18:35 +01:00