[libvirt] [PATCH 21/29] bhyve: introduce virtbhyved daemon

Daniel P. Berrangé berrange at redhat.com
Thu Jul 11 16:05:08 UTC 2019


The virtbhyved daemon will be responsible for providing the bhyve API
driver functionality. The bhyve driver is still loaded by the main
libvirtd daemon at this stage, so virtbhyved must not be running at
the same time.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 .gitignore                |  1 +
 src/bhyve/Makefile.inc.am | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/.gitignore b/.gitignore
index d697e9f750..74d88015c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -162,6 +162,7 @@
 /src/util/virkeycodetable*.h
 /src/util/virkeynametable*.h
 /src/virt-aa-helper
+/src/virtbhyved
 /src/virtinterfaced
 /src/virtlibxld
 /src/virtlockd
diff --git a/src/bhyve/Makefile.inc.am b/src/bhyve/Makefile.inc.am
index 36af5d7504..8f51bd017e 100644
--- a/src/bhyve/Makefile.inc.am
+++ b/src/bhyve/Makefile.inc.am
@@ -47,6 +47,20 @@ libvirt_driver_bhyve_impl_la_CFLAGS = \
 libvirt_driver_bhyve_impl_la_LDFLAGS = $(AM_LDFLAGS)
 libvirt_driver_bhyve_impl_la_SOURCES = $(BHYVE_DRIVER_SOURCES)
 
+sbin_PROGRAMS += virtbhyved
+
+virtbhyved_SOURCES = $(REMOTE_DAEMON_SOURCES)
+virtbhyved_CFLAGS = \
+       $(REMOTE_DAEMON_CFLAGS) \
+       -DSOCK_NAME="\"virtbhyved-sock\"" \
+       -DSOCK_NAME_RO="\"virtbhyved-sock-ro\"" \
+       -DSOCK_NAME_ADMIN="\"virtbhyved-admin-sock\"" \
+       -DDAEMON_NAME="\"virtbhyved\"" \
+       -DMODULE_NAME="\"bhyve\"" \
+       $(NULL)
+virtbhyved_LDFLAGS = $(REMOTE_DAEMON_LDFLAGS)
+virtbhyved_LDADD = $(REMOTE_DAEMON_LDADD)
+
 conf_DATA += bhyve/bhyve.conf
 augeas_DATA += bhyve/libvirtd_bhyve.aug
 augeastest_DATA += test_libvirtd_bhyve.aug
-- 
2.21.0




More information about the libvir-list mailing list