2017-12-18 15:56:25 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2018-04-05 17:01:34 +01:00
|
|
|
# Copyright(c) 2017-2018 Intel Corporation
|
2017-10-17 13:43:57 +01:00
|
|
|
|
2019-04-09 11:55:36 +01:00
|
|
|
if not is_linux
|
2017-10-17 13:43:57 +01:00
|
|
|
build = false
|
2019-06-05 21:22:40 +01:00
|
|
|
reason = 'only supported on linux'
|
2017-10-17 13:43:57 +01:00
|
|
|
endif
|
2017-10-12 15:02:27 +01:00
|
|
|
if has_libnuma == 1
|
|
|
|
dpdk_conf.set10('RTE_LIBRTE_VHOST_NUMA', true)
|
|
|
|
endif
|
2018-10-12 14:40:38 +02:00
|
|
|
dpdk_conf.set('RTE_LIBRTE_VHOST_POSTCOPY',
|
|
|
|
cc.has_header('linux/userfaultfd.h'))
|
2017-10-17 13:43:57 +01:00
|
|
|
version = 4
|
|
|
|
allow_experimental_apis = true
|
2018-09-05 07:55:55 +08:00
|
|
|
cflags += '-fno-strict-aliasing'
|
2018-04-02 19:46:53 +08:00
|
|
|
sources = files('fd_man.c', 'iotlb.c', 'socket.c', 'vdpa.c',
|
|
|
|
'vhost.c', 'vhost_user.c',
|
2018-04-05 17:01:34 +01:00
|
|
|
'virtio_net.c', 'vhost_crypto.c')
|
|
|
|
headers = files('rte_vhost.h', 'rte_vdpa.h', 'rte_vhost_crypto.h')
|
|
|
|
deps += ['ethdev', 'cryptodev', 'hash', 'pci']
|