libvirt/src/qemu
Laine Stump 4bbe1029f2 qemu: fix ifindex array reported to systemd
Commit f7afeddc added code to report to systemd an array of interface
indexes for all tap devices used by a guest. Unfortunately it not only
didn't add code to report the ifindexes for macvtap interfaces
(interface type='direct') or the tap devices used by type='ethernet',
it ended up sending "-1" as the ifindex for each macvtap or hostdev
interface. This resulted in a failure to start any domain that had a
macvtap or hostdev interface (or actually any type other than
"network" or "bridge").

This patch does the following with the nicindexes array:

1) Modify qemuBuildInterfaceCommandLine() to only fill in the
nicindexes array if given a non-NULL pointer to an array (and modifies
the test jig calls to the function to send NULL). This is because
there are tests in the test suite that have type='ethernet' and still
have an ifname specified, but that device of course doesn't actually
exist on the test system, so attempts to call virNetDevGetIndex() will
fail.

2) Even then, only add an entry to the nicindexes array for
appropriate types, and to do so for all appropriate types ("network",
"bridge", and "direct"), but only if the ifname is known (since that
is required to call virNetDevGetIndex().
2015-02-25 13:11:14 -05:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug
MIGRATION.txt
qemu_agent.c
qemu_agent.h
qemu_capabilities.c qemu: caps: Add capability bit for the "pc-dimm" device 2015-02-20 19:25:09 +01:00
qemu_capabilities.h qemu: caps: Add capability bit for the "pc-dimm" device 2015-02-20 19:25:09 +01:00
qemu_cgroup.c conf: numa: Rename virDomainNumatune to virDomainNuma 2015-02-20 17:43:04 +01:00
qemu_cgroup.h qemu: report TAP device indexes to systemd 2015-01-27 13:57:02 +00:00
qemu_command.c qemu: fix ifindex array reported to systemd 2015-02-25 13:11:14 -05:00
qemu_command.h qemu: fix ifindex array reported to systemd 2015-02-25 13:11:14 -05:00
qemu_conf.c qemu: Fix AAVMF/OVMF #define names 2015-02-21 14:44:46 -05:00
qemu_conf.h
qemu_domain.c Rework s390 architecture checking 2015-02-23 14:51:02 -05:00
qemu_domain.h Always check return value of qemuDomainObjExitMonitor 2015-01-19 10:12:32 +01:00
qemu_driver.c qemu: fix ifindex array reported to systemd 2015-02-25 13:11:14 -05:00
qemu_driver.h
qemu_hostdev.c
qemu_hostdev.h
qemu_hotplug.c qemu: fix ifindex array reported to systemd 2015-02-25 13:11:14 -05:00
qemu_hotplug.h qemu: Implement random number generator hotunplug 2015-02-10 13:05:23 +01:00
qemu_hotplugpriv.h
qemu_interface.c
qemu_interface.h
qemu_migration.c virQEMUCapsCacheLookupCopy: Pass machine type 2015-02-20 13:27:59 +01:00
qemu_migration.h
qemu_monitor_json.c Fix typos in messages 2015-02-25 14:12:51 +01:00
qemu_monitor_json.h qemu_process: detect updated video ram size values from QEMU 2015-01-14 11:55:51 +01:00
qemu_monitor_text.c
qemu_monitor_text.h
qemu_monitor.c qemu: fix memory leak while starting a guest 2015-02-24 16:38:50 +01:00
qemu_monitor.h qemu_process: detect updated video ram size values from QEMU 2015-01-14 11:55:51 +01:00
qemu_process.c conf: numa: Rename virDomainNumatune to virDomainNuma 2015-02-20 17:43:04 +01:00
qemu_process.h qemu: Add support for setting vCPU and I/O thread scheduler setting 2015-02-11 17:30:07 +01:00
qemu_processpriv.h
qemu.conf qemu: Add AAVMF to the list of known UEFIs 2015-01-29 15:20:47 +01:00
test_libvirtd_qemu.aug.in qemu: Add AAVMF to the list of known UEFIs 2015-01-29 15:20:47 +01:00
THREADS.txt Check for domain liveness in qemuDomainObjExitMonitor 2015-01-14 19:30:32 +01:00