diff options
| author | Gerd Hoffmann | 2021-03-17 10:56:21 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2021-03-26 09:33:50 +0100 |
| commit | 2dd9d8cfb4f3bd30d9cdfc2edba5cb7ee5917f4b (patch) | |
| tree | aecc22a0c025b8abb0b5f32f799c303be892aded /hw/s390x/virtio-ccw.h | |
| parent | s390x: move S390_ADAPTER_SUPPRESSIBLE (diff) | |
| download | qemu-2dd9d8cfb4f3bd30d9cdfc2edba5cb7ee5917f4b.tar.gz qemu-2dd9d8cfb4f3bd30d9cdfc2edba5cb7ee5917f4b.tar.xz qemu-2dd9d8cfb4f3bd30d9cdfc2edba5cb7ee5917f4b.zip | |
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.h')
| -rw-r--r-- | hw/s390x/virtio-ccw.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/s390x/virtio-ccw.h b/hw/s390x/virtio-ccw.h index 49a2b8ca42..0168232e3b 100644 --- a/hw/s390x/virtio-ccw.h +++ b/hw/s390x/virtio-ccw.h @@ -63,6 +63,11 @@ typedef struct VirtioBusClass VirtioCcwBusClass; DECLARE_OBJ_CHECKERS(VirtioCcwBusState, VirtioCcwBusClass, VIRTIO_CCW_BUS, TYPE_VIRTIO_CCW_BUS) +/* + * modules can reference this symbol to avoid being loaded + * into system emulators without ccw support + */ +extern bool have_virtio_ccw; struct VirtIOCCWDeviceClass { CCWDeviceClass parent_class; |
