aboutsummaryrefslogtreecommitdiff
path: root/hw/s390x/virtio-ccw.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-03-17 10:56:21 +0100
committerGerd Hoffmann <kraxel@redhat.com>2021-03-26 09:33:50 +0100
commit2dd9d8cfb4f3bd30d9cdfc2edba5cb7ee5917f4b (patch)
treeaecc22a0c025b8abb0b5f32f799c303be892aded /hw/s390x/virtio-ccw.c
parentd4c603d7be2e4173252c5b55e62d30ddd26edaca (diff)
s390x: add have_virtio_ccw
Introduce a symbol which can be used to prevent ccw modules being loaded into system emulators without ccw support. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Halil Pasic <pasic@linux.ibm.com> Tested-by: Halil Pasic <pasic@linux.ibm.com> Message-Id: <20210317095622.2839895-3-kraxel@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/s390x/virtio-ccw.c')
-rw-r--r--hw/s390x/virtio-ccw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c
index 06c0605681..314ed7b245 100644
--- a/hw/s390x/virtio-ccw.c
+++ b/hw/s390x/virtio-ccw.c
@@ -35,6 +35,8 @@
#define NR_CLASSIC_INDICATOR_BITS 64
+bool have_virtio_ccw = true;
+
static int virtio_ccw_dev_post_load(void *opaque, int version_id)
{
VirtioCcwDevice *dev = VIRTIO_CCW_DEVICE(opaque);