]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
parallels: fix virDomainDefineXML for domain in saved state
authorDmitry Guryanov <dguryanov@parallels.com>
Tue, 7 Apr 2015 20:35:13 +0000 (23:35 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 10 Apr 2015 11:39:35 +0000 (13:39 +0200)
commit2027045f8ac7d76afb66147e60f0d2f1d426e951
treee128825ec111d928fcaf9febdecc5de2426dd28b
parentffb52467a28a3ce7e12d4bcc1c1fe7d2d193c2e9
parallels: fix virDomainDefineXML for domain in saved state

PCS doesn't store domain config in managed save state file.
It's forbidden to change config for VMs in this state.
It's possible to change config for containers, but after
restoring domain will have that new config, not a config,
which domain had at the moment of virDomainManagedSave.

So we need to handle this case differently from other states.
Let's forbid this operation, if config is changed and if it's
not changed - just do nothing.

Openstack/nova calls virDomainDefineXML on resume with
current domain config, so we can't forbid this operation
in managed save state.

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
src/parallels/parallels_driver.c