mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:03:49 +03:00
bhyve: implement virConnectIsAlive
bhyve connections are local, and a "connection will be classed as alive if it is [...] local".
This commit is contained in:
parent
e3a6859019
commit
a1efc9428b
@ -1517,6 +1517,11 @@ bhyveConnectGetType(virConnectPtr conn)
|
||||
return "BHYVE";
|
||||
}
|
||||
|
||||
static int bhyveConnectIsAlive(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
static virHypervisorDriver bhyveHypervisorDriver = {
|
||||
.name = "bhyve",
|
||||
.connectOpen = bhyveConnectOpen, /* 1.2.2 */
|
||||
@ -1567,6 +1572,7 @@ static virHypervisorDriver bhyveHypervisorDriver = {
|
||||
.connectDomainEventDeregisterAny = bhyveConnectDomainEventDeregisterAny, /* 1.2.5 */
|
||||
.domainHasManagedSaveImage = bhyveDomainHasManagedSaveImage, /* 1.2.13 */
|
||||
.connectGetType = bhyveConnectGetType, /* 1.3.5 */
|
||||
.connectIsAlive = bhyveConnectIsAlive, /* 1.3.5 */
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user