From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatoly Burakov Subject: [PATCH 19.02 0/2] Allow using virtio without hugepages Date: Tue, 13 Nov 2018 17:54:46 +0000 Message-ID: Cc: przemyslawx.lal@intel.com, kuralamudhan.ramakrishnan@intel.com, ivan.coughlan@intel.com, tiwei.bie@intel.com, ray.kinsella@intel.com To: dev@dpdk.org Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 35E7F4CC5 for ; Tue, 13 Nov 2018 18:54:57 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" It is already possible to use both DPDK in general and virtio specifically, without hugetlbfs mounts, but currently virtio cannot be used without hugepage memory (i.e. with a --no-huge EAL switch) due to the fact that it needs to share memory with the backend. This patchset uses memfd to create actual files backing anonymous memory. This enabled virtio to work not only without hugetlbfs, but without hugepages altogether, which could be useful in Cloud Native scenarios. Anatoly Burakov (2): memalloc: allow setting up segment list fd's mem: use memfd for no-huge mode lib/librte_eal/bsdapp/eal/eal_memalloc.c | 6 +++ lib/librte_eal/common/eal_memalloc.h | 4 ++ lib/librte_eal/linuxapp/eal/eal_memalloc.c | 16 ++++++++ lib/librte_eal/linuxapp/eal/eal_memory.c | 46 +++++++++++++++++++++- 4 files changed, 70 insertions(+), 2 deletions(-) -- 2.17.1