vhost: fix default for vhost_iotlb
Subsystems (5)
PATCH 1/1 vhost: fix default for vhost_iotlb
During randconfig build testing, I ran into a configuration that has CONFIG_VHOST=m, CONFIG_VHOST_IOTLB=m and CONFIG_VHOST_RING=y, which makes the iotlb implementation left out from vhost_ring, and in turn leads to a link failure of the vdpa_sim module:
ERROR: modpost: "vringh_set_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_init_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_iov_push_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_iov_pull_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_complete_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_getdesc_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
Work around it by setting the default for VHOST_IOTLB to avoid this configuration.
---
I fixed this a while ago locally but never got around to sending the fix. If the problem has been addressed differently in the meantime, please ignore this one.
--- drivers/vhost/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/vhost/Kconfig +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config VHOST_IOTLB tristate + default y if VHOST=m && VHOST_RING=y help Generic IOTLB implementation for vhost and vringh. This option is selected by any driver which needs to support
Signature · 1 line
2.26.0
Michael S. Tsirkin
maintainerQuoted 15 lines · Arnd Bergmann
During randconfig build testing, I ran into a configuration that has
CONFIG_VHOST=m,CONFIG_VHOST_IOTLB=mandCONFIG_VHOST_RING=y, which makes the iotlb implementation left out fromvhost_ring, and in turn leads to a link failure of thevdpa_simmodule:ERROR: modpost: "
vringh_set_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_init_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_iov_push_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_iov_pull_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_complete_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
ERROR: modpost: "vringh_getdesc_iotlb" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!Work around it by setting the default for
VHOST_IOTLBto avoid this configuration.
Quoted 6 lines
Fixes e6faeaa12841 ("vhost: drop vring dependency on iotlb")Signed-off-by Arnd Bergmann <[email protected]>---
I fixed this a while ago locally but never got around to sending the fix. If the problem has been addressed differently in the meantime, please ignore this one.
So I ended up not sending e6faeaa12841 upstream because of this problem. But hey, that's a nice idea!
I'll queue something like this for the next release.
Quoted 18 lines
--- drivers/vhost/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/vhost/Kconfig +1
-0@@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config VHOST_IOTLB tristate + default y if VHOST=m && VHOST_RING=y help Generic IOTLB implementation for vhost and vringh. This option is selected by any driver which needs to supportSignature · 1 line
2.26.0