summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@redhat.com>2018-10-12 14:40:38 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-18 10:24:39 +0200
commit06e787bd945690af9c1f949ff49bb4fcd92d8c80 (patch)
treea60f02812228bf012811969729b522073f58195f /config
parent9bd3979306b597069b359b239beac09bfbe3cbce (diff)
downloaddpdk-06e787bd945690af9c1f949ff49bb4fcd92d8c80.zip
dpdk-06e787bd945690af9c1f949ff49bb4fcd92d8c80.tar.gz
dpdk-06e787bd945690af9c1f949ff49bb4fcd92d8c80.tar.xz
vhost: add config flag for postcopy
Postcopy live-migration features relies on userfaultfd, which was only introduced in kernel v4.3. This patch introduces a new define to allow building vhost library on kernels not supporting userfaultfd. With legacy build system, user has to explicitly set CONFIG_RTE_LIBRTE_VHOST_POSTCOPY to 'y'. With Meson build system, RTE_LIBRTE_VHOST_POSTCOPY gets automatically defined if userfaultfd kernel header is present. Suggested-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Ilya Maximets <i.maximets@samsung.com>
Diffstat (limited to 'config')
-rw-r--r--config/common_linuxapp1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/common_linuxapp b/config/common_linuxapp
index 3565ec8..6c1c8d0 100644
--- a/config/common_linuxapp
+++ b/config/common_linuxapp
@@ -14,6 +14,7 @@ CONFIG_RTE_LIBRTE_KNI=y
CONFIG_RTE_LIBRTE_PMD_KNI=y
CONFIG_RTE_LIBRTE_VHOST=y
CONFIG_RTE_LIBRTE_VHOST_NUMA=y
+CONFIG_RTE_LIBRTE_VHOST_POSTCOPY=n
CONFIG_RTE_LIBRTE_PMD_VHOST=y
CONFIG_RTE_LIBRTE_IFC_PMD=y
CONFIG_RTE_LIBRTE_PMD_AF_PACKET=y