]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Do not check for domain liveness in virDomainObjSetDefTransient
authorJán Tomko <jtomko@redhat.com>
Fri, 27 May 2016 12:00:34 +0000 (14:00 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 6 Jun 2016 06:34:22 +0000 (08:34 +0200)
commit8c40ede4a4858889df2fa61d7f7cb23b7d41cd96
tree0991cc68e168b90722726c5223ab3158d4bc590c
parent1dcb1dc0f99ac573ec593cd0ac631705df78ed34
Do not check for domain liveness in virDomainObjSetDefTransient

Remove the live attribute and mark the definition as transient
whether the domain is runing or not.

There were only two callers left calling with live=false:
* testDomainStartState, where the domain already is active
  because we assigned vm->def->id just a few lines above the call
* virDomainObjGetPersistentDef, which now only calls
  virDomainObjSetDefTransient for an active domain
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libxl/libxl_domain.c
src/lxc/lxc_process.c
src/qemu/qemu_process.c
src/test/test_driver.c
src/uml/uml_driver.c