mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
parallels: add implicit input devices
Add implicit input devices in parallelsLoadDomains, when VNC is enabled. Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
This commit is contained in:
parent
6cc2cdf62f
commit
c0c3d4c8c9
@ -1312,6 +1312,21 @@ prlsdkLoadDomain(parallelsConnPtr privconn,
|
||||
if (virDomainDefAddImplicitControllers(def) < 0)
|
||||
goto error;
|
||||
|
||||
if (def->ngraphics > 0) {
|
||||
int bus = IS_CT(def) ? VIR_DOMAIN_INPUT_BUS_PARALLELS:
|
||||
VIR_DOMAIN_INPUT_BUS_PS2;
|
||||
|
||||
if (virDomainDefMaybeAddInput(def,
|
||||
VIR_DOMAIN_INPUT_TYPE_MOUSE,
|
||||
bus) < 0)
|
||||
goto error;
|
||||
|
||||
if (virDomainDefMaybeAddInput(def,
|
||||
VIR_DOMAIN_INPUT_TYPE_KBD,
|
||||
bus) < 0)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (olddom) {
|
||||
/* assign new virDomainDef without any checks */
|
||||
/* we can't use virDomainObjAssignDef, because it checks
|
||||
|
Loading…
Reference in New Issue
Block a user