summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Shearman <robertshearman@gmail.com>2021-07-06 09:59:06 +0100
committerDamjan Marion <dmarion@me.com>2021-07-13 16:51:50 +0000
commite3ef3f6aea261c4b1a8d599cc1e76cbe8a4a670f (patch)
treeab5f7fcd5253850c1ccc21b118b5a1b0360f1098 /src
parentf299dc487d36eed0dfbf6d07eb40d8bc58cd724d (diff)
dpdk: add base-virtaddr config option
Type: improvement Allow the use of the base-virtaddr config option to be passed through to DPDK. This is useful to allow use of devices with an IOMMU in nested VMs without resorting to PA IOVA mode. Signed-off-by: Robert Shearman <robertshearman@gmail.com> Change-Id: I32b6513377e6d20bf155e12c45f902d51ea982c4
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk/device/dpdk_priv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/dpdk_priv.h b/src/plugins/dpdk/device/dpdk_priv.h
index 46b87512bb8..a5a8a2ad57d 100644
--- a/src/plugins/dpdk/device/dpdk_priv.h
+++ b/src/plugins/dpdk/device/dpdk_priv.h
@@ -40,6 +40,7 @@ _(nchannels, n) \
_(mem-alloc-request, m) \
_(force-ranks, r)
+/* clang-format off */
/* These args are preceded by "--" and followed by a single string */
#define foreach_eal_double_hyphen_arg \
_(huge-dir) \
@@ -47,7 +48,9 @@ _(proc-type) \
_(file-prefix) \
_(vdev) \
_(log-level) \
-_(iova-mode)
+_(iova-mode) \
+_(base-virtaddr)
+/* clang-format on */
static inline void
dpdk_get_xstats (dpdk_device_t * xd)