virtcontainers: Use virtio-blk-ccw on s390x

if virtio-blk-pci were to be used

Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
This commit is contained in:
Jakob Naucke 2021-06-14 15:17:57 +02:00
parent 8758ce26b7
commit cfd690b638
No known key found for this signature in database
GPG Key ID: 45FA1C7D310C0EBE

View File

@ -510,6 +510,8 @@ func (conf *HypervisorConfig) valid() error {
if conf.BlockDeviceDriver == "" {
conf.BlockDeviceDriver = defaultBlockDriver
} else if conf.BlockDeviceDriver == config.VirtioBlock && conf.HypervisorMachineType == "s390-ccw-virtio" {
conf.BlockDeviceDriver = config.VirtioBlockCCW
}
if conf.DefaultMaxVCPUs == 0 {