mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
parallels: add controllers in prlsdkLoadDomain
Call virDomainDefAddImplicitControllers to add disk controllers, so virDomainDef, filled by this function will look exactly like the one returned by virDomainDefParseString. Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
This commit is contained in:
parent
66aee37530
commit
b204afa13e
@ -1265,6 +1265,9 @@ prlsdkLoadDomain(parallelsConnPtr privconn,
|
||||
*s = '\0';
|
||||
}
|
||||
|
||||
if (virDomainDefAddImplicitControllers(def) < 0)
|
||||
goto error;
|
||||
|
||||
if (olddom) {
|
||||
/* assign new virDomainDef without any checks */
|
||||
/* we can't use virDomainObjAssignDef, because it checks
|
||||
|
Loading…
x
Reference in New Issue
Block a user