From e6c2ff37e524e11c6bf0c65af75a990498c92d03 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Sun, 17 Mar 2019 14:20:05 +0100 Subject: [PATCH] virtio/user: fix memory hotplug with the internal rte_vhost lib This was broken in commit 2725b5191e [1], which added an extra #ifdef SPDK_CONFIG_VHOST_INTERNAL_LIB without including config.h anywhere within the same file. Currently the virtio library always behaves as if it was compiled with upstream rte_vhost. Fix this by including spdk/config.h where necessary. [1] virtio/user: don't send SET_VRING_ADDR after updating the memory table Change-Id: Idadc53e20d615ca1dcef5b58a854f6b39d14511b Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448222 Reviewed-by: Jim Harris Reviewed-by: Changpeng Liu Tested-by: SPDK CI Jenkins --- lib/virtio/virtio_user.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/virtio/virtio_user.c b/lib/virtio/virtio_user.c index 006df120d..624a8e1b6 100644 --- a/lib/virtio/virtio_user.c +++ b/lib/virtio/virtio_user.c @@ -43,6 +43,7 @@ #include "virtio_user/vhost.h" #include "spdk/string.h" +#include "spdk/config.h" #include "spdk_internal/virtio.h"