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 <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448222
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Darek Stojaczyk 2019-03-17 14:20:05 +01:00 committed by Changpeng Liu
parent e208be6f1d
commit e6c2ff37e5

View File

@ -43,6 +43,7 @@
#include "virtio_user/vhost.h" #include "virtio_user/vhost.h"
#include "spdk/string.h" #include "spdk/string.h"
#include "spdk/config.h"
#include "spdk_internal/virtio.h" #include "spdk_internal/virtio.h"