On 12/13/18 12:43 PM, Anatoly Burakov wrote:
When running in no-huge mode, we anonymously allocate our memory.
While this works for regular NICs and vdev's, it's not suitable
for memory sharing scenarios such as virtio with vhost_user
backend.

To fix this, allocate no-huge memory using memfd, and register
it with memalloc just like any other memseg fd. This will enable
using rte_memseg_get_fd() API with --no-huge EAL flag.

Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com>
Acked-by: Tiwei Bie <tiwei....@intel.com>
---

Notes:
     v3:
     - Clarify release notes to state that the changes apply to
       virtio-user NICs rather than virtio in general
v2:
     - Detect memfd support at compile time
     - Change memfd-related log level to debug

  doc/guides/rel_notes/release_19_02.rst   |  5 +++
  lib/librte_eal/linuxapp/eal/eal_memory.c | 54 +++++++++++++++++++++++-
  2 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/doc/guides/rel_notes/release_19_02.rst 
b/doc/guides/rel_notes/release_19_02.rst
index 960098582..f733ad139 100644
--- a/doc/guides/rel_notes/release_19_02.rst
+++ b/doc/guides/rel_notes/release_19_02.rst
@@ -23,6 +23,11 @@ DPDK Release 19.02
  New Features
  ------------
+* **Support for using VirtIO without hugepages**
+

With the title change you suggested:
Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>

Thanks,
Maxime

Reply via email to