1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
4 allow_experimental_apis = true
5 sources += files('virtio_ethdev.c',
8 'virtio_rxtx_simple.c',
10 deps += ['kvargs', 'bus_pci']
12 if arch_subdir == 'x86'
13 sources += files('virtio_rxtx_simple_sse.c')
14 elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64')
15 sources += files('virtio_rxtx_simple_neon.c')
18 if host_machine.system() == 'linux'
19 dpdk_conf.set('RTE_VIRTIO_USER', 1)
21 sources += files('virtio_user_ethdev.c',
22 'virtio_user/vhost_kernel.c',
23 'virtio_user/vhost_kernel_tap.c',
24 'virtio_user/vhost_user.c',
25 'virtio_user/virtio_user_dev.c')