From 713d0d94066fe296cde0436f5d55ab8ee3e14f83 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 17 May 2019 11:42:08 +0200 Subject: [PATCH] s390x: add virtio-blk-ccw type In order to hotplug virtio-blk, on s390x the CCW device drivers is used instad of PCI. Signed-off-by: Alice Frosi --- qemu/qemu.go | 3 +++ qemu/qemus390x.go | 1 + 2 files changed, 4 insertions(+) diff --git a/qemu/qemu.go b/qemu/qemu.go index 31943e0a1c..0d46e84798 100644 --- a/qemu/qemu.go +++ b/qemu/qemu.go @@ -103,6 +103,9 @@ const ( // PCIePCIBridgeDriver represents a PCIe to PCI bridge device type. PCIePCIBridgeDriver DeviceDriver = "pcie-pci-bridge" + + // VirtioBlockCCW is the CCW block device driver + VirtioBlockCCW DeviceDriver = "virtio-blk-ccw" ) // disableModern returns the parameters with the disable-modern option. diff --git a/qemu/qemus390x.go b/qemu/qemus390x.go index c94d53a28b..c52edd67ce 100644 --- a/qemu/qemus390x.go +++ b/qemu/qemus390x.go @@ -70,6 +70,7 @@ var isVirtioCCW = map[DeviceDriver]bool{ VirtioNetCCW: true, VirtioSerial: true, VirtioBlock: true, + VirtioBlockCCW: true, Console: false, VirtioSerialPort: false, VHostVSock: true,