[libvirt] [PATCH] bhyve: implement virConnectIsAlive

Fabian Freyer fabian.freyer at physik.tu-berlin.de
Fri May 13 19:22:57 UTC 2016


bhyve connections are local, and a "connection will be classed as alive
if it is [...] local".
---
 src/bhyve/bhyve_driver.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c
index c3c572e..8b41f7a 100644
--- a/src/bhyve/bhyve_driver.c
+++ b/src/bhyve/bhyve_driver.c
@@ -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 */
 };
 
 
-- 
2.1.4




More information about the libvir-list mailing list