]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: fix virDomainDefParseXML for parallels
authorDmitry Guryanov <dguryanov@parallels.com>
Tue, 7 Apr 2015 20:35:11 +0000 (23:35 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 10 Apr 2015 11:31:49 +0000 (13:31 +0200)
commit79847f73c35946847d5ae41a661be128c62de2f2
tree45b7d81e3de2c4e5061207635dc55ecdba797b25
parentc0c3d4c8c9d2139284c7b351c22a03f628c20edc
conf: fix virDomainDefParseXML for parallels

Handle input devices in virDomainDefParseXML properly
in case of parallels containers and VMs.

Parallels containers support only
VIR_DOMAIN_INPUT_BUS_PARALLELS. And if VNC is enabled
we should add implicit mouse and keyboard.

For VMs we should add implicit PS/2 mouse and
keyboard.

BTW, is it worth to refactor code and move
all this code to drivers, to *DomainDefPostParse
functions?

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c