From 54b5c03e46d1c98fe4b5fb1f5784fd414a28f3dc Mon Sep 17 00:00:00 2001 From: Zvonko Kaiser Date: Fri, 21 Jul 2023 08:45:18 +0000 Subject: [PATCH] vfio: Fix default port assignment Fix default port assignment with an explicit value in the TOML It was implicit before and now the runtime will bail out if we did not set it explicitly. Update the configuration and set it. This will make the intent more clear. Fixes: #5726 Signed-off-by: Zvonko Kaiser --- functional/vfio/run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functional/vfio/run.sh b/functional/vfio/run.sh index 9e60ad80e..ed4111e6c 100755 --- a/functional/vfio/run.sh +++ b/functional/vfio/run.sh @@ -188,6 +188,8 @@ setup_configuration_file() { if [ -n "$MACHINE_TYPE" ]; then if [ "$HYPERVISOR" = "qemu" ]; then sed -i 's|^machine_type.*|machine_type = "'${MACHINE_TYPE}'"|g' "${kata_config_file}" + # Make sure we have set hot_plug_vfio to a reasonable value + sudo sed -i -e 's|^#hot_plug_vfio =.*$|hot_plug_vfio = "bridge-port"|' -e 's|^hot_plug_vfio = .*$|hot_plug_vfio = "bridge-port"|' "${kata_config_file}" else warn "Variable machine_type only applies to qemu. It will be ignored" fi