From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <aburakov@ecsmtp.ir.intel.com>
Received: from mga05.intel.com (mga05.intel.com [192.55.52.43])
 by dpdk.org (Postfix) with ESMTP id 8F20A2BC7
 for <dev@dpdk.org>; Thu, 13 Dec 2018 12:43:23 +0100 (CET)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga004.jf.intel.com ([10.7.209.38])
 by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 13 Dec 2018 03:43:22 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.56,348,1539673200"; d="scan'208";a="259162195"
Received: from irvmail001.ir.intel.com ([163.33.26.43])
 by orsmga004.jf.intel.com with ESMTP; 13 Dec 2018 03:43:20 -0800
Received: from sivswdev05.ir.intel.com (sivswdev05.ir.intel.com [10.243.17.64])
 by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id
 wBDBhJV3032148; Thu, 13 Dec 2018 11:43:19 GMT
Received: from sivswdev05.ir.intel.com (localhost [127.0.0.1])
 by sivswdev05.ir.intel.com with ESMTP id wBDBhJTH012530;
 Thu, 13 Dec 2018 11:43:19 GMT
Received: (from aburakov@localhost)
 by sivswdev05.ir.intel.com with LOCAL id wBDBhJZ8012526;
 Thu, 13 Dec 2018 11:43:19 GMT
From: Anatoly Burakov <anatoly.burakov@intel.com>
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,
 maxime.coquelin@redhat.com
Date: Thu, 13 Dec 2018 11:43:14 +0000
Message-Id: <cover.1544701282.git.anatoly.burakov@intel.com>
X-Mailer: git-send-email 1.7.0.7
In-Reply-To: <cover.1544546363.git.anatoly.burakov@intel.com>
References: <cover.1544546363.git.anatoly.burakov@intel.com>
Subject: [dpdk-dev] [PATCH v3 0/5] Allow using virtio-user without hugepages
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Dec 2018 11:43:24 -0000

It is already possible to use both DPDK in general and
virtio-user specifically, without hugetlbfs mounts, but
currently virtio-user 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-user to work not
only without hugetlbfs (which was already possible), but
without hugepages altogether, which could be useful in
Cloud Native scenarios.

v3:
- Clarify doc changes

v2:
- Fixed segment fd list not being initialized
- Added some segment fd API fixes
- Added unit test for segment fd API

Anatoly Burakov (5):
  mem: fix error code for segment fd API for external segs
  memalloc: check for memfd support in segment fd API
  memalloc: allow setting up segment list fd's
  mem: use memfd for no-huge mode
  test: add segment fd API test

 doc/guides/rel_notes/release_19_02.rst     | 13 +++++
 lib/librte_eal/bsdapp/eal/eal_memalloc.c   |  6 ++
 lib/librte_eal/common/eal_common_memory.c  | 12 ++++
 lib/librte_eal/common/eal_memalloc.h       |  4 ++
 lib/librte_eal/linuxapp/eal/eal_memalloc.c | 66 +++++++++++++++++++---
 lib/librte_eal/linuxapp/eal/eal_memory.c   | 54 +++++++++++++++++-
 test/test/test_memory.c                    | 43 ++++++++++++++
 7 files changed, 188 insertions(+), 10 deletions(-)

-- 
2.17.1