mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
parallels: Add domainCreateWithFlags() function.
domainCreateWithFlags function is used by OpenStack/Nova to boot an instance. Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
This commit is contained in:
parent
6f67d9c0cf
commit
038a5a536b
@ -908,6 +908,15 @@ static int parallelsDomainIsActive(virDomainPtr domain)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
parallelsDomainCreateWithFlags(virDomainPtr domain, unsigned int flags)
|
||||||
|
{
|
||||||
|
/* we don't support any create flags */
|
||||||
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
|
return parallelsDomainCreate(domain);
|
||||||
|
}
|
||||||
|
|
||||||
static virHypervisorDriver parallelsDriver = {
|
static virHypervisorDriver parallelsDriver = {
|
||||||
.no = VIR_DRV_PARALLELS,
|
.no = VIR_DRV_PARALLELS,
|
||||||
.name = "Parallels",
|
.name = "Parallels",
|
||||||
@ -938,6 +947,7 @@ static virHypervisorDriver parallelsDriver = {
|
|||||||
.domainDestroy = parallelsDomainDestroy, /* 0.10.0 */
|
.domainDestroy = parallelsDomainDestroy, /* 0.10.0 */
|
||||||
.domainShutdown = parallelsDomainShutdown, /* 0.10.0 */
|
.domainShutdown = parallelsDomainShutdown, /* 0.10.0 */
|
||||||
.domainCreate = parallelsDomainCreate, /* 0.10.0 */
|
.domainCreate = parallelsDomainCreate, /* 0.10.0 */
|
||||||
|
.domainCreateWithFlags = parallelsDomainCreateWithFlags, /* 1.2.10 */
|
||||||
.domainDefineXML = parallelsDomainDefineXML, /* 0.10.0 */
|
.domainDefineXML = parallelsDomainDefineXML, /* 0.10.0 */
|
||||||
.domainIsActive = parallelsDomainIsActive, /* 1.2.10 */
|
.domainIsActive = parallelsDomainIsActive, /* 1.2.10 */
|
||||||
.connectDomainEventRegisterAny = parallelsConnectDomainEventRegisterAny, /* 1.2.10 */
|
.connectDomainEventRegisterAny = parallelsConnectDomainEventRegisterAny, /* 1.2.10 */
|
||||||
|
Loading…
Reference in New Issue
Block a user