Skip to content

Commit

Permalink
Merge pull request kata-containers#5727 from zvonkok/vfio-fix
Browse files Browse the repository at this point in the history
vfio: Fix default port assignment
  • Loading branch information
zvonkok authored Jul 21, 2023
2 parents e45aea4 + 54b5c03 commit 5102a2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functional/vfio/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5102a2d

Please sign in to comment.