diff options
author | Fabian Freyer <fabian.freyer@physik.tu-berlin.de> | 2016-05-13 21:22:57 +0200 |
---|---|---|
committer | Roman Bogorodskiy <bogorodskiy@gmail.com> | 2016-05-16 19:19:49 +0300 |
commit | a1efc9428bcdf6075fac0dac4d73ff2858216d7f (patch) | |
tree | a3a3e6b85e1593a26be657f4a7143b34d49cdcd5 /src | |
parent | e3a685901965d21aae4def9399474dde1c7b7a89 (diff) | |
download | libvirt-a1efc9428bcdf6075fac0dac4d73ff2858216d7f.tar.gz |
bhyve: implement virConnectIsAlive
bhyve connections are local, and a "connection will be classed as alive
if it is [...] local".
Diffstat (limited to 'src')
-rw-r--r-- | src/bhyve/bhyve_driver.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index c3c572e522..8b41f7a142 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 */ }; |