mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 22:43:05 +00:00
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:
parent
8758ce26b7
commit
cfd690b638
@ -510,6 +510,8 @@ func (conf *HypervisorConfig) valid() error {
|
|||||||
|
|
||||||
if conf.BlockDeviceDriver == "" {
|
if conf.BlockDeviceDriver == "" {
|
||||||
conf.BlockDeviceDriver = defaultBlockDriver
|
conf.BlockDeviceDriver = defaultBlockDriver
|
||||||
|
} else if conf.BlockDeviceDriver == config.VirtioBlock && conf.HypervisorMachineType == "s390-ccw-virtio" {
|
||||||
|
conf.BlockDeviceDriver = config.VirtioBlockCCW
|
||||||
}
|
}
|
||||||
|
|
||||||
if conf.DefaultMaxVCPUs == 0 {
|
if conf.DefaultMaxVCPUs == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user