mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
bhyve: implement virConnectGetType
This implements virConnectGetType for the bhyve driver.
This commit is contained in:
parent
b90c4b5f50
commit
126e630e85
@ -1508,6 +1508,15 @@ bhyveDomainHasManagedSaveImage(virDomainPtr domain, unsigned int flags)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const char *
|
||||||
|
bhyveConnectGetType(virConnectPtr conn)
|
||||||
|
{
|
||||||
|
if (virConnectGetTypeEnsureACL(conn) < 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
return "BHYVE";
|
||||||
|
}
|
||||||
|
|
||||||
static virHypervisorDriver bhyveHypervisorDriver = {
|
static virHypervisorDriver bhyveHypervisorDriver = {
|
||||||
.name = "bhyve",
|
.name = "bhyve",
|
||||||
.connectOpen = bhyveConnectOpen, /* 1.2.2 */
|
.connectOpen = bhyveConnectOpen, /* 1.2.2 */
|
||||||
@ -1557,6 +1566,7 @@ static virHypervisorDriver bhyveHypervisorDriver = {
|
|||||||
.connectDomainEventRegisterAny = bhyveConnectDomainEventRegisterAny, /* 1.2.5 */
|
.connectDomainEventRegisterAny = bhyveConnectDomainEventRegisterAny, /* 1.2.5 */
|
||||||
.connectDomainEventDeregisterAny = bhyveConnectDomainEventDeregisterAny, /* 1.2.5 */
|
.connectDomainEventDeregisterAny = bhyveConnectDomainEventDeregisterAny, /* 1.2.5 */
|
||||||
.domainHasManagedSaveImage = bhyveDomainHasManagedSaveImage, /* 1.2.13 */
|
.domainHasManagedSaveImage = bhyveDomainHasManagedSaveImage, /* 1.2.13 */
|
||||||
|
.connectGetType = bhyveConnectGetType, /* 1.3.5 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user