]> xenbits.xensource.com Git - libvirt.git/commit
Make state driver device hotplug/update actually transient
authorCole Robinson <crobinso@redhat.com>
Fri, 19 Nov 2010 18:36:29 +0000 (13:36 -0500)
committerCole Robinson <crobinso@redhat.com>
Tue, 23 Nov 2010 13:42:45 +0000 (08:42 -0500)
commit45ec297d6fb63c65e9a876ebc7c013036be5868b
tree307ac12dc4de7afdde5cf308a3252fab2773ae40
parent08a72a7d89d14cae94e676f42b58a107bd5a59ec
Make state driver device hotplug/update actually transient

The current semantics of non-persistent hotplug/update are confusing: the
changes will persist as long as the in memory domain definition isn't
overwritten. This means hotplug changes stay around until the domain is
redefined or libvirtd is restarted.

Call virDomainObjSetDefTransient at VM startup, so that we properly discard
hotplug changes when the VM is shutdown.
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/uml/uml_driver.c