Skip to content

Commit

Permalink
Merge pull request kata-containers#3030 from likebreath/1104/dbg_vfio…
Browse files Browse the repository at this point in the history
…_qemu_virtiofs

ci: vfio: Enable vfio test with qemu-virtiofs
  • Loading branch information
jcvenegas authored Nov 6, 2020
2 parents e10d723 + 5f411ed commit de38d8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ vcpus:
bash -f integration/vcpus/default_vcpus_test.sh

vfio:
bash -f functional/vfio/run.sh -s false -p qemu-virtiofs -i image
bash -f functional/vfio/run.sh -s true -p qemu-virtiofs -i image
bash -f functional/vfio/run.sh -s false -p clh -i image
bash -f functional/vfio/run.sh -s true -p clh -i image
# bash -f functional/vfio/run.sh -s false -p clh -i initrd
Expand Down
3 changes: 3 additions & 0 deletions functional/vfio/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ EOF

setup_configuration_file() {
local qemu_config_file="configuration-qemu.toml"
local qemu_virtiofs_config_file="configuration-qemu-virtiofs.toml"
local clh_config_file="configuration-clh.toml"
local image_file="/usr/share/kata-containers/kata-containers.img"
local initrd_file="/usr/share/kata-containers/kata-containers-initrd.img"
Expand All @@ -119,6 +120,8 @@ setup_configuration_file() {

if [ "$HYPERVISOR" = "qemu" ]; then
config_filename="${qemu_config_file}"
elif [ "$HYPERVISOR" = "qemu-virtiofs" ]; then
config_filename="${qemu_virtiofs_config_file}"
elif [ "$HYPERVISOR" = "clh" ]; then
config_filename="${clh_config_file}"
fi
Expand Down

0 comments on commit de38d8d

Please sign in to comment.