From e3ef3f6aea261c4b1a8d599cc1e76cbe8a4a670f Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 6 Jul 2021 09:59:06 +0100 Subject: [PATCH] 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 Change-Id: I32b6513377e6d20bf155e12c45f902d51ea982c4 --- src/plugins/dpdk/device/dpdk_priv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.16.6