From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 09:54:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,229,1539673200"; d="scan'208";a="273695255" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga005.jf.intel.com with ESMTP; 13 Nov 2018 09:54:48 -0800 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id wADHsmHL032024; Tue, 13 Nov 2018 17:54:48 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id wADHsm1R001113; Tue, 13 Nov 2018 17:54:48 GMT Received: (from aburakov@localhost) by sivswdev01.ir.intel.com with LOCAL id wADHsmWo001105; Tue, 13 Nov 2018 17:54:48 GMT From: Anatoly Burakov To: dev@dpdk.org Cc: przemyslawx.lal@intel.com, kuralamudhan.ramakrishnan@intel.com, ivan.coughlan@intel.com, tiwei.bie@intel.com, ray.kinsella@intel.com Date: Tue, 13 Nov 2018 17:54:46 +0000 Message-Id: X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH 19.02 0/2] Allow using virtio without hugepages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 17:54:57 -0000 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