2021-05-12 17:01:31 +00:00
|
|
|
ch_driver_sources = [
|
2023-10-10 21:42:57 +00:00
|
|
|
'ch_capabilities.h',
|
|
|
|
'ch_capabilities.c',
|
2021-05-12 17:01:31 +00:00
|
|
|
'ch_conf.c',
|
|
|
|
'ch_conf.h',
|
|
|
|
'ch_domain.c',
|
|
|
|
'ch_domain.h',
|
|
|
|
'ch_driver.c',
|
|
|
|
'ch_driver.h',
|
|
|
|
'ch_monitor.c',
|
|
|
|
'ch_monitor.h',
|
|
|
|
'ch_process.c',
|
|
|
|
'ch_process.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
driver_source_files += files(ch_driver_sources)
|
|
|
|
|
|
|
|
stateful_driver_source_files += files(ch_driver_sources)
|
|
|
|
|
|
|
|
if conf.has('WITH_CH')
|
|
|
|
ch_driver_impl = static_library(
|
|
|
|
'virt_driver_ch_impl',
|
|
|
|
[
|
|
|
|
ch_driver_sources,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
access_dep,
|
|
|
|
curl_dep,
|
|
|
|
log_dep,
|
|
|
|
src_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
2021-12-10 20:34:41 +00:00
|
|
|
hypervisor_inc_dir,
|
2021-05-12 17:01:31 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_driver_ch',
|
|
|
|
'link_whole': [
|
|
|
|
ch_driver_impl,
|
|
|
|
],
|
|
|
|
'link_args': [
|
|
|
|
libvirt_no_undefined,
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
virt_daemons += {
|
|
|
|
'name': 'virtchd',
|
|
|
|
'c_args': [
|
|
|
|
'-DDAEMON_NAME="virtchd"',
|
|
|
|
'-DMODULE_NAME="ch"',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
virt_daemon_confs += {
|
|
|
|
'name': 'virtchd',
|
|
|
|
}
|
|
|
|
|
|
|
|
virt_daemon_units += {
|
|
|
|
'service': 'virtchd',
|
2023-09-25 14:06:09 +00:00
|
|
|
'name': 'Cloud Hypervisor',
|
2023-09-28 09:43:31 +00:00
|
|
|
'service_extra_in': [
|
|
|
|
files('virtchd.service.extra.in'),
|
2023-09-28 09:51:16 +00:00
|
|
|
systemd_service_limitnofile_extra_in,
|
2023-09-28 10:07:15 +00:00
|
|
|
systemd_service_tasksmax_extra_in,
|
2023-09-28 10:14:45 +00:00
|
|
|
systemd_service_limitmemlock_extra_in,
|
2023-09-28 09:43:31 +00:00
|
|
|
],
|
2021-05-12 17:01:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
virt_install_dirs += [
|
|
|
|
localstatedir / 'lib' / 'libvirt' / 'ch',
|
2022-02-02 10:35:51 +00:00
|
|
|
localstatedir / 'log' / 'libvirt' / 'ch',
|
2021-05-12 17:01:31 +00:00
|
|
|
runstatedir / 'libvirt' / 'ch',
|
|
|
|
]
|
|
|
|
endif
|