]> git.ipfire.org Git - thirdparty/libvirt.git/commit
parallels: implement virDomainDefineXML operation for existing domains
authorDmitry Guryanov <dguryanov@parallels.com>
Tue, 31 Jul 2012 18:56:11 +0000 (22:56 +0400)
committerDaniel Veillard <veillard@redhat.com>
Wed, 1 Aug 2012 03:44:50 +0000 (11:44 +0800)
commite356f6100dec0c537bf7d51957bdbf156beb4ef6
tree951203ec38ec867b3f069d9f65039cacf7bed32f
parentd71145ad07b2e16dc10b2edce376b1891ee735ee
parallels: implement virDomainDefineXML operation for existing domains

Add parallelsDomainDefineXML function, it works only for existing
domains for the present.

It's too hard to convert libvirt's XML domain configuration into
Parallel's one, so I've decided to compare virDomainDef structures:
current domain definition and the one created from XML, given to
the function. And change only different parameters.

Currently only name, description, number of cpus, memory amount
and video memory can be changed.

Video device and console added, because libvirt supposes that
VM must always have one video device, if there are some
graphics and one console.

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