mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
vz: build driver as module and don't register it on client's side
Make it possible to build vz driver as a module and don't link it with libvirt.so statically. Remove registering it on client's side as far as we start relying on daemon Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
This commit is contained in:
parent
6e76738e54
commit
30c61901c8
@ -233,6 +233,10 @@ if WITH_VBOX
|
|||||||
libvirtd_LDADD += ../src/libvirt_driver_vbox.la
|
libvirtd_LDADD += ../src/libvirt_driver_vbox.la
|
||||||
endif WITH_VBOX
|
endif WITH_VBOX
|
||||||
|
|
||||||
|
if WITH_VZ
|
||||||
|
libvirtd_LDADD += ../src/libvirt_driver_vz.la
|
||||||
|
endif WITH_VZ
|
||||||
|
|
||||||
if WITH_STORAGE
|
if WITH_STORAGE
|
||||||
libvirtd_LDADD += ../src/libvirt_driver_storage.la
|
libvirtd_LDADD += ../src/libvirt_driver_storage.la
|
||||||
endif WITH_STORAGE
|
endif WITH_STORAGE
|
||||||
|
@ -102,6 +102,9 @@
|
|||||||
# include "nwfilter/nwfilter_driver.h"
|
# include "nwfilter/nwfilter_driver.h"
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WITH_VZ
|
||||||
|
# include "vz/vz_driver.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "configmake.h"
|
#include "configmake.h"
|
||||||
|
|
||||||
@ -390,6 +393,9 @@ static void daemonInitialize(void)
|
|||||||
# ifdef WITH_BHYVE
|
# ifdef WITH_BHYVE
|
||||||
virDriverLoadModule("bhyve");
|
virDriverLoadModule("bhyve");
|
||||||
# endif
|
# endif
|
||||||
|
# ifdef WITH_VZ
|
||||||
|
virDriverLoadModule("vz");
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# ifdef WITH_NETWORK
|
# ifdef WITH_NETWORK
|
||||||
networkRegister();
|
networkRegister();
|
||||||
@ -430,6 +436,9 @@ static void daemonInitialize(void)
|
|||||||
# ifdef WITH_BHYVE
|
# ifdef WITH_BHYVE
|
||||||
bhyveRegister();
|
bhyveRegister();
|
||||||
# endif
|
# endif
|
||||||
|
# ifdef WITH_VZ
|
||||||
|
vzRegister();
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -630,6 +630,7 @@ DRIVER_SOURCE_FILES = \
|
|||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
STATEFUL_DRIVER_SOURCE_FILES = \
|
STATEFUL_DRIVER_SOURCE_FILES = \
|
||||||
|
$(VZ_DRIVER_SOURCES) \
|
||||||
$(BHYVE_DRIVER_SOURCES) \
|
$(BHYVE_DRIVER_SOURCES) \
|
||||||
$(INTERFACE_DRIVER_SOURCES) \
|
$(INTERFACE_DRIVER_SOURCES) \
|
||||||
$(LIBXL_DRIVER_SOURCES) \
|
$(LIBXL_DRIVER_SOURCES) \
|
||||||
@ -886,7 +887,7 @@ HYPERV_DRIVER_EXTRA_DIST = \
|
|||||||
hyperv/hyperv_wmi_generator.py \
|
hyperv/hyperv_wmi_generator.py \
|
||||||
$(HYPERV_DRIVER_GENERATED)
|
$(HYPERV_DRIVER_GENERATED)
|
||||||
|
|
||||||
VZ_DRIVER_SOURCES = \
|
VZ_DRIVER_SOURCES = \
|
||||||
vz/vz_driver.h \
|
vz/vz_driver.h \
|
||||||
vz/vz_driver.c \
|
vz/vz_driver.c \
|
||||||
vz/vz_utils.c \
|
vz/vz_utils.c \
|
||||||
@ -1493,13 +1494,21 @@ libvirt_driver_hyperv_la_SOURCES = $(HYPERV_DRIVER_SOURCES)
|
|||||||
endif WITH_HYPERV
|
endif WITH_HYPERV
|
||||||
|
|
||||||
if WITH_VZ
|
if WITH_VZ
|
||||||
|
noinst_LTLIBRARIES += libvirt_driver_vz_impl.la
|
||||||
|
libvirt_driver_vz_la_SOURCES =
|
||||||
|
libvirt_driver_vz_la_LIBADD = libvirt_driver_vz_impl.la
|
||||||
|
if WITH_DRIVER_MODULES
|
||||||
|
mod_LTLIBRARIES += libvirt_driver_vz.la
|
||||||
|
libvirt_driver_vz_la_LIBADD += ../gnulib/lib/libgnu.la
|
||||||
|
libvirt_driver_vz_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
||||||
|
else ! WITH_DRIVER_MODULES
|
||||||
noinst_LTLIBRARIES += libvirt_driver_vz.la
|
noinst_LTLIBRARIES += libvirt_driver_vz.la
|
||||||
libvirt_la_BUILT_LIBADD += libvirt_driver_vz.la
|
endif ! WITH_DRIVER_MODULES
|
||||||
libvirt_driver_vz_la_CFLAGS = \
|
libvirt_driver_vz_impl_la_CFLAGS = \
|
||||||
-I$(srcdir)/conf $(AM_CFLAGS) \
|
-I$(srcdir)/conf $(AM_CFLAGS) \
|
||||||
$(PARALLELS_SDK_CFLAGS) $(LIBNL_CFLAGS)
|
$(PARALLELS_SDK_CFLAGS) $(LIBNL_CFLAGS)
|
||||||
libvirt_driver_vz_la_LIBADD = $(PARALLELS_SDK_LIBS) $(LIBNL_LIBS)
|
libvirt_driver_vz_impl_la_SOURCES = $(VZ_DRIVER_SOURCES)
|
||||||
libvirt_driver_vz_la_SOURCES = $(VZ_DRIVER_SOURCES)
|
libvirt_driver_vz_impl_la_LIBADD = $(PARALLELS_SDK_LIBS) $(LIBNL_LIBS)
|
||||||
endif WITH_VZ
|
endif WITH_VZ
|
||||||
|
|
||||||
if WITH_BHYVE
|
if WITH_BHYVE
|
||||||
|
@ -92,9 +92,6 @@
|
|||||||
#ifdef WITH_XENAPI
|
#ifdef WITH_XENAPI
|
||||||
# include "xenapi/xenapi_driver.h"
|
# include "xenapi/xenapi_driver.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_VZ
|
|
||||||
# include "vz/vz_driver.h"
|
|
||||||
#endif
|
|
||||||
#ifdef WITH_BHYVE
|
#ifdef WITH_BHYVE
|
||||||
# include "bhyve/bhyve_driver.h"
|
# include "bhyve/bhyve_driver.h"
|
||||||
#endif
|
#endif
|
||||||
@ -433,10 +430,6 @@ virGlobalInit(void)
|
|||||||
if (xenapiRegister() == -1)
|
if (xenapiRegister() == -1)
|
||||||
goto error;
|
goto error;
|
||||||
# endif
|
# endif
|
||||||
# ifdef WITH_VZ
|
|
||||||
if (vzRegister() == -1)
|
|
||||||
goto error;
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_REMOTE
|
#ifdef WITH_REMOTE
|
||||||
if (remoteRegister() == -1)
|
if (remoteRegister() == -1)
|
||||||
|
@ -929,6 +929,11 @@ virGetSecret;
|
|||||||
virGetStoragePool;
|
virGetStoragePool;
|
||||||
virGetStorageVol;
|
virGetStorageVol;
|
||||||
virGetStream;
|
virGetStream;
|
||||||
|
virConnectCloseCallbackDataGetCallback;
|
||||||
|
virNewConnectCloseCallbackData;
|
||||||
|
virConnectCloseCallbackDataUnregister;
|
||||||
|
virConnectCloseCallbackDataRegister;
|
||||||
|
virConnectCloseCallbackDataCall;
|
||||||
virInterfaceClass;
|
virInterfaceClass;
|
||||||
virNetworkClass;
|
virNetworkClass;
|
||||||
virNodeDeviceClass;
|
virNodeDeviceClass;
|
||||||
@ -937,6 +942,7 @@ virSecretClass;
|
|||||||
virStoragePoolClass;
|
virStoragePoolClass;
|
||||||
virStorageVolClass;
|
virStorageVolClass;
|
||||||
virStreamClass;
|
virStreamClass;
|
||||||
|
virConnectCloseCallbackDataClass;
|
||||||
|
|
||||||
|
|
||||||
# fdstream.h
|
# fdstream.h
|
||||||
@ -1304,6 +1310,7 @@ virCommandHandshakeWait;
|
|||||||
virCommandNew;
|
virCommandNew;
|
||||||
virCommandNewArgList;
|
virCommandNewArgList;
|
||||||
virCommandNewArgs;
|
virCommandNewArgs;
|
||||||
|
virCommandNewVAList;
|
||||||
virCommandNonblockingFDs;
|
virCommandNonblockingFDs;
|
||||||
virCommandPassFD;
|
virCommandPassFD;
|
||||||
virCommandPassFDGetFDIndex;
|
virCommandPassFDGetFDIndex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user