dpdk: add base-virtaddr config option 07/33007/4
authorRobert Shearman <robertshearman@gmail.com>
Tue, 6 Jul 2021 08:59:06 +0000 (09:59 +0100)
committerDamjan Marion <dmarion@me.com>
Tue, 13 Jul 2021 16:51:50 +0000 (16:51 +0000)
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

src/plugins/dpdk/device/dpdk_priv.h

index 46b8751..a5a8a2a 100644 (file)
@@ -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)