libvirt/src
Mark McLoughlin 30605477f2 Store the interface vlan number in the domain state
Currently, an interface's vlan number corresponds to its index in
the table of network interfaces. That is no longer true when we
allow devices to be removed.

To fix this, we store the vlan number in the domain's state XML
so that it survives libvirtd restarts.

* src/domain_conf.h: add vlan number to virDomainNetDef

* src/domain_conf.c: store it in XML as <state vlan='N'/>, defaulting
  to -1 if this is state saved by a previous version of libvirt

* src/qemu_conf.c: assign vlan numbers before starting qemu
2009-07-22 11:34:06 +01:00
..
opennebula remove all trailing blank lines 2009-07-16 15:06:42 +02:00
vbox Retain disk PCI address across libvirtd restarts 2009-07-22 11:34:05 +01:00
.gitignore Added an optional OCaml+CIL test program for mutex lock validation 2009-05-19 10:17:17 +00:00
bridge.c Support networking in UML driver 2009-06-03 11:13:33 +00:00
bridge.h Support networking in UML driver 2009-06-03 11:13:33 +00:00
buf.c * src/buf.c: avoid an XML attribute escaping bug #499791 2009-05-13 16:19:59 +00:00
buf.h Use a versioned linker script 2008-11-17 11:03:25 +00:00
capabilities.c Fix crash in QEMU driver with bad capabilities data 2009-06-29 10:41:56 +00:00
capabilities.h Fix crash in QEMU driver with bad capabilities data 2009-06-29 10:41:56 +00:00
cgroup.c Create cgroups mode 755, not 655 (Ryota Ozaki) 2009-05-08 10:24:11 +00:00
cgroup.h * src/cgroup.c src/cgroup.h src/lxc_driver.c: allows to get 2009-03-06 14:44:04 +00:00
conf.c * src/conf.[ch]: restrict VMX syntax parsing types 2009-06-22 11:54:49 +00:00
conf.h * src/conf.[ch]: restrict VMX syntax parsing types 2009-06-22 11:54:49 +00:00
console.c cleanup of some direct stderr logging 2009-05-20 13:37:30 +00:00
console.h Do conditional driver config in Makefile.am, not source files 2008-08-20 20:48:35 +00:00
datatypes.c virGetinterface matching of MAC and interface name 2009-07-21 15:37:20 +02:00
datatypes.h Fix Win32 portability problems with 'inteface' symbol clash 2009-05-29 14:29:22 +00:00
domain_conf.c Store the interface vlan number in the domain state 2009-07-22 11:34:06 +01:00
domain_conf.h Store the interface vlan number in the domain state 2009-07-22 11:34:06 +01:00
domain_event.c QEMU domain event thread safety 2008-12-04 21:09:20 +00:00
domain_event.h QEMU domain event thread safety 2008-12-04 21:09:20 +00:00
driver.c Log dlopen() errors more verbosely 2009-05-08 10:05:56 +00:00
driver.h Implement the new virinterface functions 2009-07-16 17:58:15 +02:00
event.c Add a virFreeCallback to event loop APIs 2008-11-19 16:24:01 +00:00
event.h Add a virFreeCallback to event loop APIs 2008-11-19 16:24:01 +00:00
gnutls_1_0_compat.h Enable the <config.h>-requiring test; fix violations 2008-01-29 18:15:54 +00:00
hash.c maint: update list of error function names and adapt 2009-01-23 12:29:29 +00:00
hash.h Do conditional driver config in Makefile.am, not source files 2008-08-20 20:48:35 +00:00
interface_conf.c Remove trailing blank lines 2009-07-21 15:43:11 +02:00
interface_conf.h Add interface object list manipulation functions 2009-07-21 15:40:55 +02:00
interface_driver.c Activate the interface drivers, and cleanups 2009-07-21 16:15:39 +02:00
interface_driver.h Netcf based interface driver implementation 2009-07-21 16:02:16 +02:00
internal.h Generic internal threads API 2009-01-15 19:56:05 +00:00
iptables.c Replace use of qemudLog with logging.h APIs/macros 2009-03-03 11:40:08 +00:00
iptables.h always compile iptables.c 2008-11-07 16:43:23 +00:00
libvirt_bridge.syms Support networking in UML driver 2009-06-03 11:13:33 +00:00
libvirt_driver_modules.syms Move --with-driver-modules symbols into a separate sym file 2009-01-05 14:06:41 +00:00
libvirt_internal.h Add internal XML parsing/formatting flag 2009-07-22 11:34:05 +01:00
libvirt_linux.syms migrate linux-specific symbol names into their own sym file 2009-01-05 14:08:26 +00:00
libvirt_private.syms Netcf based interface driver implementation 2009-07-21 16:02:16 +02:00
libvirt_public.syms Public API for new virInterface functions 2009-07-16 17:49:50 +02:00
libvirt_win_icon_16x16.ico * configure.in, src/Makefile.am, src/virsh_win_icon.rc: 2008-10-15 18:39:34 +00:00
libvirt_win_icon_32x32.ico * configure.in, src/Makefile.am, src/virsh_win_icon.rc: 2008-10-15 18:39:34 +00:00
libvirt_win_icon_48x48.ico * configure.in, src/Makefile.am, src/virsh_win_icon.rc: 2008-10-15 18:39:34 +00:00
libvirt_win_icon_64x64.ico * configure.in, src/Makefile.am, src/virsh_win_icon.rc: 2008-10-15 18:39:34 +00:00
libvirt.c Add internal XML parsing/formatting flag 2009-07-22 11:34:05 +01:00
logging.c remove all trailing blank lines 2009-07-16 15:06:42 +02:00
logging.h Various logging cleanups in code and doc 2009-07-01 11:21:15 +00:00
lxc_conf.c Add virCapabilities*EmulatorRequired. 2009-06-16 15:27:33 +00:00
lxc_conf.h remove all trailing blank lines 2009-07-16 15:06:42 +02:00
lxc_container.c Reduce LXC capabilities 2009-06-29 17:09:42 +00:00
lxc_container.h Use a private /dev/pts instance in containers if kernel is new enough 2009-04-22 14:26:50 +00:00
lxc_controller.c Reduce LXC capabilities 2009-06-29 17:09:42 +00:00
lxc_driver.c Set default emulator in domain_conf.*, rather than the driver. 2009-06-16 15:42:46 +00:00
lxc_driver.h Do conditional driver config in Makefile.am, not source files 2008-08-20 20:48:35 +00:00
Makefile.am Netcf based interface driver implementation 2009-07-21 16:02:16 +02:00
memory.c Use a versioned linker script 2008-11-17 11:03:25 +00:00
memory.h Use a versioned linker script 2008-11-17 11:03:25 +00:00
network_conf.c remove all trailing blank lines 2009-07-16 15:06:42 +02:00
network_conf.h remove all trailing blank lines 2009-07-16 15:06:42 +02:00
network_driver.c Report the object name on lookup error 2009-07-08 12:01:35 +02:00
network_driver.h Split network driver out into separate files 2008-10-10 13:57:13 +00:00
node_device_conf.c * src/node_device_conf.c: fix a leak, patch by Dave Allan 2009-06-25 14:51:21 +00:00
node_device_conf.h Include OS driver name (if any) in device XML for nodedev driver 2009-06-12 13:12:55 +00:00
node_device_devkit.c Remove use of getuid()==0 for privilege checks 2009-06-12 13:20:13 +00:00
node_device_hal_linux.c * src/node_device.c src/node_device_hal.h src/node_device_hal_linux.c: 2009-06-26 14:09:01 +00:00
node_device_hal.c Remove use of getuid()==0 for privilege checks 2009-06-12 13:20:13 +00:00
node_device_hal.h * src/node_device.c src/node_device_hal.h src/node_device_hal_linux.c: 2009-06-26 14:09:01 +00:00
node_device.c Report the object name on lookup error 2009-07-08 12:01:35 +02:00
node_device.h fix a module dependency problem 2009-06-17 08:38:17 +00:00
nodeinfo.c remove all trailing blank lines 2009-07-16 15:06:42 +02:00
nodeinfo.h Generic shared impls of all NUMA apis 2009-06-03 13:28:02 +00:00
openvz_conf.c Generic shared impls of all NUMA apis 2009-06-03 13:28:02 +00:00
openvz_conf.h Add support for a non-template filesystem root. (Florian Vichot) 2009-03-24 10:59:13 +00:00
openvz_driver.c Improve error reporting for virConnectOpen URIs 2009-06-12 12:06:15 +00:00
openvz_driver.h Convert openvz driver to generic domain XML APIs 2008-09-05 14:10:58 +00:00
parthelper.c storage: disk: Fix parthelper '-g' option handling. 2009-07-16 12:52:51 -04:00
pci.c Fix free of unitialized data upon PCI open fail 2009-07-16 13:57:44 +01:00
pci.h implements dettach, reattach and reset for PCI devices 2009-03-02 16:18:11 +00:00
proxy_internal.c Add pidfile argument to __virExec 2009-05-11 13:50:38 +00:00
proxy_internal.h Prefer xenstore driver for listDomains, since xen HV reports ghost ids of 2008-11-28 15:25:04 +00:00
qemu_conf.c Store the interface vlan number in the domain state 2009-07-22 11:34:06 +01:00
qemu_conf.h Add checks for some NIC hotplug related features added in qemu-0.10.0 2009-07-22 11:34:06 +01:00
qemu_driver.c Retain disk PCI address across libvirtd restarts 2009-07-22 11:34:05 +01:00
qemu_driver.h Optional dlopen support for drivers 2008-11-21 12:16:08 +00:00
qemu.conf Run QEMU guests as an unprivileged user 2009-07-16 17:06:55 +01:00
qparams.c qparams.c: Use virReportOOMError(NULL), not qparam_report_oom() 2009-01-28 16:13:46 +00:00
qparams.h convert TAB-based indentation in C sources to use only spaces 2008-04-10 16:54:54 +00:00
remote_internal.c Implement the new virinterface functions 2009-07-16 17:58:15 +02:00
remote_internal.h Allow remote://hostname/ style URIs for automatic driver probe. Fix virGetVersion impl 2008-11-28 12:03:20 +00:00
security_selinux.c Skip labelling if no src path present 2009-07-03 10:29:09 +00:00
security_selinux.h SELinux security driver for sVirt support (James Morris, Dan Walsh & Daniel Berrange) 2009-03-03 10:06:49 +00:00
security.c Fix crash in svirt verification, and incorrect cleanup in VM failure paths 2009-04-03 14:10:17 +00:00
security.h Fix re-detection of transient VMs after libvirtd restart 2009-06-12 11:38:50 +00:00
sexpr.c error-reporting calls using VIR_ERR_NO_MEMORY: use virReportOOMError instead 2009-01-29 12:10:32 +00:00
sexpr.h xend_internal.c, sexpr.c: const-correctness fixes 2008-08-01 14:43:12 +00:00
stats_linux.c error-reporting calls using VIR_ERR_NO_MEMORY: use virReportOOMError instead 2009-01-29 12:10:32 +00:00
stats_linux.h convert TAB-based indentation in C sources to use only spaces 2008-04-10 16:54:54 +00:00
storage_backend_disk.c storage: Implement CreateVolFrom for logical and disk backend. 2009-07-16 12:52:52 -04:00
storage_backend_disk.h remove Vim and Emacs variable settings from C source files 2008-04-10 16:53:29 +00:00
storage_backend_fs.c Fix typo in check for glusterfs format pools 2009-07-21 12:49:44 -04:00
storage_backend_fs.h remove Vim and Emacs variable settings from C source files 2008-04-10 16:53:29 +00:00
storage_backend_iscsi.c SCSI HBA storage pool implementation (Dave Allan) 2009-04-01 16:03:22 +00:00
storage_backend_iscsi.h remove Vim and Emacs variable settings from C source files 2008-04-10 16:53:29 +00:00
storage_backend_logical.c storage: Implement CreateVolFrom for logical and disk backend. 2009-07-16 12:52:52 -04:00
storage_backend_logical.h remove Vim and Emacs variable settings from C source files 2008-04-10 16:53:29 +00:00
storage_backend_scsi.c * src/storage_backend_scsi.[ch]: add SCSI storage rescan support, 2009-04-07 12:50:17 +00:00
storage_backend_scsi.h * src/storage_backend_scsi.[ch]: add SCSI storage rescan support, 2009-04-07 12:50:17 +00:00
storage_backend.c storage: Don't try sparse detection if writing to block device. 2009-07-16 12:52:52 -04:00
storage_backend.h storage: cleanup: do away with 'createFile' 2009-07-16 12:52:52 -04:00
storage_conf.c storage: disk: Default to 'ext2' for new volumes. 2009-07-16 12:52:52 -04:00
storage_conf.h Add new net filesystem glusterfs 2009-07-08 11:46:25 +02:00
storage_driver.c storage: Fix deadlock when cloning across pools. 2009-07-16 12:52:52 -04:00
storage_driver.h remove Vim and Emacs variable settings from C source files 2008-04-10 16:53:29 +00:00
test.c Add a test interface driver 2009-07-21 15:45:55 +02:00
test.h Do conditional driver config in Makefile.am, not source files 2008-08-20 20:48:35 +00:00
threads-pthread.c Generic internal threads API 2009-01-15 19:56:05 +00:00
threads-pthread.h Generic internal threads API 2009-01-15 19:56:05 +00:00
threads-win32.c Generic internal threads API 2009-01-15 19:56:05 +00:00
threads-win32.h Generic internal threads API 2009-01-15 19:56:05 +00:00
threads.c Generic internal threads API 2009-01-15 19:56:05 +00:00
threads.h Generic internal threads API 2009-01-15 19:56:05 +00:00
uml_conf.c Generic shared impls of all NUMA apis 2009-06-03 13:28:02 +00:00
uml_conf.h Remove use of getuid()==0 for privilege checks 2009-06-12 13:20:13 +00:00
uml_driver.c Use libcap-ng to clear capabilities for many child processes 2009-06-29 17:00:52 +00:00
uml_driver.h Add an initial User Mode Linux Driver 2008-11-19 16:58:23 +00:00
util.c Run QEMU guests as an unprivileged user 2009-07-16 17:06:55 +01:00
util.h Run QEMU guests as an unprivileged user 2009-07-16 17:06:55 +01:00
uuid.c Replace use of qemudLog with logging.h APIs/macros 2009-03-03 11:40:08 +00:00
uuid.h convert TAB-based indentation in C sources to use only spaces 2008-04-10 16:54:54 +00:00
veth.c remove all trailing blank lines 2009-07-16 15:06:42 +02:00
veth.h [LXC] Add functions to manage veth device pairs 2008-06-26 16:07:48 +00:00
virsh_win_icon.rc * configure.in, src/Makefile.am, src/virsh_win_icon.rc: 2008-10-15 18:39:34 +00:00
virsh.c Rename variable for compilation in Mingw32 2009-07-22 10:32:03 +02:00
virterror_internal.h Fix error location logging 2009-05-27 12:10:47 +00:00
virterror.c Add an error code for conflicting mac addresses 2009-07-21 15:13:32 +02:00
xen_inotify.c Convert all drivers to use old-style struct initializers; this makes a handy 2009-03-31 15:47:16 +00:00
xen_inotify.h Fix return type for Xen open subdriver method impl (John Levon) 2008-12-17 21:26:16 +00:00
xen_internal.c Add new 'availheap' sysctl variant for ABI changes in Xen 2009-06-16 09:31:19 +00:00
xen_internal.h Least privilege support for Solaris 2009-01-22 17:49:41 +00:00
xen_unified.c extend the configuration parser for VMX syntax 2009-06-19 12:34:30 +00:00
xen_unified.h Basic domain XML conversions for Xen/QEMU drivers 2009-05-21 14:14:01 +00:00
xend_internal.c * src/xend_internal.c: avoid a segfault when dumping XML with recent 2009-06-26 18:14:16 +00:00
xend_internal.h Fix XM driver VIF config creation 2009-04-24 12:17:50 +00:00
xm_internal.c extend the configuration parser for VMX syntax 2009-06-19 12:34:30 +00:00
xm_internal.h Remove use of static data in Xen XM driver 2009-01-20 17:34:56 +00:00
xml.c Core internal driver stub for sVirt support (Jams Morris & Dan Walsh) 2009-03-03 09:44:41 +00:00
xml.h Core internal driver stub for sVirt support (Jams Morris & Dan Walsh) 2009-03-03 09:44:41 +00:00
xs_internal.c Convert all drivers to use old-style struct initializers; this makes a handy 2009-03-31 15:47:16 +00:00
xs_internal.h Make xen driver threadsafe 2009-01-21 18:11:14 +00:00