]> git.ipfire.org Git - thirdparty/libvirt.git/commit
link-state: qemu: Add net intf modification to virUpdateDeviceFlags
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Sep 2011 08:23:47 +0000 (16:23 +0800)
committerDaniel Veillard <veillard@redhat.com>
Tue, 6 Sep 2011 08:23:47 +0000 (16:23 +0800)
commite0a07bb1f214fccafee3940f18273bf4ba8946f7
tree3a8739ba084d23786a15d618e7bbbefb9a1f3932
parent8277c15151e7407e07e2286cadb1d1a0c9b16984
link-state: qemu: Add net intf modification to virUpdateDeviceFlags

This patch enables modifying network device configuration using the
virUpdateDeviceFlags API method. Matching of devices is accomplished
using MAC addresses.

While updating live configuration of a running domain, the user is
allowed only to change link state of the interface. Additional
modifications may be added later. For now the code checks for
unsupported changes and thereafter changes the link state, if
applicable.

When updating persistent configuration of guest's network interface the
whole configuration (except for the MAC address) may be modified and
is stored for the next startup.

* src/qemu/qemu_driver.c   - Add dispatching of virUpdateDevice for
                             network devices update (live/config)
* src/qemu/qemu_hotplug.c  - add setting of initial link state on live
                             device addition
                           - add function to change network device
                             configuration. By now it supports only
                             changing of link state
* src/qemu/qemu_hotplug.h  - Headers to above functions
* src/qemu/qemu_process.c  - set link states before virtual machine
                             start. Qemu does not support setting of
                             this on the command line.
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_hotplug.h
src/qemu/qemu_process.c