From a481e11e630c2680578742f8c3c498d8a1389f27 Mon Sep 17 00:00:00 2001 From: Peter Huene Date: Fri, 26 Feb 2021 12:33:54 -0800 Subject: [PATCH] Add the `uffd` feature to the wasmtime crate docs. --- crates/wasmtime/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/wasmtime/src/lib.rs b/crates/wasmtime/src/lib.rs index 12dd72b456..8b8a74c508 100644 --- a/crates/wasmtime/src/lib.rs +++ b/crates/wasmtime/src/lib.rs @@ -172,6 +172,12 @@ //! * `vtune` - Not enabled by default, this feature compiles in support for //! supporting VTune profiling of JIT code. //! +//! * `uffd` - Not enabled by default. This feature enables `userfaultfd` support +//! when using the pooling instance allocator. As handling page faults in userspace +//! comes with a performance penalty, this feature should only be enabled when kernel +//! lock contention is hampering multithreading throughput. This feature is only +//! supported on Linux and requires a Linux kernel version 4.11 or higher. +//! //! ## Examples //! //! In addition to the examples below be sure to check out the [online embedding