diff --git a/src/runtime-rs/Makefile b/src/runtime-rs/Makefile index 86f022c4d1..7cf88ac042 100644 --- a/src/runtime-rs/Makefile +++ b/src/runtime-rs/Makefile @@ -311,14 +311,15 @@ ifneq (,$(QEMUCMD)) DEFSANDBOXCGROUPONLY_QEMU := false ifeq ($(ARCH), s390x) VMROOTFSDRIVER_QEMU := virtio-blk-ccw + DEFBLOCKSTORAGEDRIVER_QEMU := virtio-blk-ccw else VMROOTFSDRIVER_QEMU := virtio-pmem + DEFBLOCKSTORAGEDRIVER_QEMU := virtio-blk-pci endif DEFVCPUS_QEMU := 1 DEFMAXVCPUS_QEMU := 0 DEFSHAREDFS_QEMU_VIRTIOFS := virtio-fs DEFSHAREDFS_QEMU_SEL_VIRTIOFS := none - DEFBLOCKSTORAGEDRIVER_QEMU := virtio-scsi DEFBLOCKDEVICEAIO_QEMU := io_uring DEFNETWORKMODEL_QEMU := tcfilter DEFDISABLEGUESTSELINUX := true diff --git a/src/runtime-rs/config/configuration-cloud-hypervisor.toml.in b/src/runtime-rs/config/configuration-cloud-hypervisor.toml.in index 775627cf32..5694fd025f 100644 --- a/src/runtime-rs/config/configuration-cloud-hypervisor.toml.in +++ b/src/runtime-rs/config/configuration-cloud-hypervisor.toml.in @@ -168,8 +168,9 @@ default_bridges = @DEFBRIDGES@ # Default false #reclaim_guest_freed_memory = true -# Block storage driver to be used for the hypervisor in case the container -# rootfs is backed by a block device. +# Block device driver to be used by the hypervisor when a container's storage +# is backed by a block device or a file. This driver facilitates attaching the +# storage directly to the guest VM. block_device_driver = "virtio-blk-pci" # Specifies cache-related options for block devices. diff --git a/src/runtime-rs/config/configuration-dragonball.toml.in b/src/runtime-rs/config/configuration-dragonball.toml.in index cd468e1836..b29ca15ece 100644 --- a/src/runtime-rs/config/configuration-dragonball.toml.in +++ b/src/runtime-rs/config/configuration-dragonball.toml.in @@ -118,9 +118,11 @@ default_memory = @DEFMEMSZ@ # > amount of physical RAM --> will be set to the actual amount of physical RAM default_maxmemory = @DEFMAXMEMSZ@ - -# Block storage driver to be used for the hypervisor in case the container -# rootfs is backed by a block device. DB only supports virtio-blk. +# Block device driver to be used by the hypervisor when a container's storage +# is backed by a block device or a file. This driver facilitates attaching the +# storage directly to the guest VM. +# +# DB only supports virtio-blk-mmio. block_device_driver = "@DEFBLOCKSTORAGEDRIVER_DB@" # This option changes the default hypervisor and kernel parameters diff --git a/src/runtime-rs/config/configuration-qemu-runtime-rs.toml.in b/src/runtime-rs/config/configuration-qemu-runtime-rs.toml.in index 4b1565eba5..0a4a28200e 100644 --- a/src/runtime-rs/config/configuration-qemu-runtime-rs.toml.in +++ b/src/runtime-rs/config/configuration-qemu-runtime-rs.toml.in @@ -235,9 +235,15 @@ virtio_fs_extra_args = @DEFVIRTIOFSEXTRAARGS@ # Metadata, data, and pathname lookup are cached in guest and never expire. virtio_fs_cache = "@DEFVIRTIOFSCACHE@" -# Block storage driver to be used for the hypervisor in case the container -# rootfs is backed by a block device. This is virtio-scsi, virtio-blk -# or nvdimm. +# Block device driver to be used by the hypervisor when a container's +# storage is backed by a block device or a file. This driver facilitates attaching +# the storage directly to the guest VM. +# +# Examples include: +# - virtio-blk-pci +# - virtio-blk-ccw +# - virtio-scsi +# - nvidmm block_device_driver = "@DEFBLOCKSTORAGEDRIVER_QEMU@" # aio is the I/O mechanism used by qemu diff --git a/src/runtime-rs/config/configuration-qemu-se-runtime-rs.toml.in b/src/runtime-rs/config/configuration-qemu-se-runtime-rs.toml.in index def94de94a..a2d6fbecb1 100644 --- a/src/runtime-rs/config/configuration-qemu-se-runtime-rs.toml.in +++ b/src/runtime-rs/config/configuration-qemu-se-runtime-rs.toml.in @@ -211,9 +211,15 @@ virtio_fs_extra_args = @DEFVIRTIOFSEXTRAARGS@ # Metadata, data, and pathname lookup are cached in guest and never expire. virtio_fs_cache = "@DEFVIRTIOFSCACHE@" -# Block storage driver to be used for the hypervisor in case the container -# rootfs is backed by a block device. This is virtio-scsi, virtio-blk -# or nvdimm. +# Block device driver to be used by the hypervisor when a container's storage +# is backed by a block device or a file. This driver facilitates attaching the +# storage directly to the guest VM. +# +# Examples include: +# - virtio-blk-pci +# - virtio-blk-ccw +# - virtio-scsi +# - nvidmm block_device_driver = "@DEFBLOCKSTORAGEDRIVER_QEMU@" # aio is the I/O mechanism used by qemu diff --git a/src/runtime-rs/config/configuration-rs-fc.toml.in b/src/runtime-rs/config/configuration-rs-fc.toml.in index 16273ae55a..0c51259f74 100644 --- a/src/runtime-rs/config/configuration-rs-fc.toml.in +++ b/src/runtime-rs/config/configuration-rs-fc.toml.in @@ -112,9 +112,11 @@ memory_slots = @DEFMEMSLOTS@ # > amount of physical RAM --> will be set to the actual amount of physical RAM default_maxmemory = @DEFMAXMEMSZ_FC@ -# Block storage driver to be used for the hypervisor in case the container -# rootfs is backed by a block device. This is virtio-scsi, virtio-blk -# or nvdimm. +# Block device driver to be used by the hypervisor when a container's storage +# is backed by a block device or a file. This driver facilitates attaching the +# storage directly to the guest VM. +# +# FC only supports virtio-blk-mmio. block_device_driver = "@DEFBLOCKSTORAGEDRIVER_FC@" # Specifies cache-related options will be set to block devices or not.