mirror of https://gitee.com/openkylin/qemu.git
virtio: Fix compilation without CONFIG_VHOST_SCSI
Signed-off-by: Ed Maste <emaste@freebsd.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
48c75f484d
commit
b702d2aebe
|
@ -691,7 +691,9 @@ static void s390_virtio_register_types(void)
|
||||||
type_register_static(&s390_virtio_blk);
|
type_register_static(&s390_virtio_blk);
|
||||||
type_register_static(&s390_virtio_net);
|
type_register_static(&s390_virtio_net);
|
||||||
type_register_static(&s390_virtio_scsi);
|
type_register_static(&s390_virtio_scsi);
|
||||||
|
#ifdef CONFIG_VHOST_SCSI
|
||||||
type_register_static(&s390_vhost_scsi);
|
type_register_static(&s390_vhost_scsi);
|
||||||
|
#endif
|
||||||
type_register_static(&s390_virtio_rng);
|
type_register_static(&s390_virtio_rng);
|
||||||
type_register_static(&s390_virtio_bridge_info);
|
type_register_static(&s390_virtio_bridge_info);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1095,7 +1095,9 @@ static void virtio_ccw_register(void)
|
||||||
type_register_static(&virtio_ccw_net);
|
type_register_static(&virtio_ccw_net);
|
||||||
type_register_static(&virtio_ccw_balloon);
|
type_register_static(&virtio_ccw_balloon);
|
||||||
type_register_static(&virtio_ccw_scsi);
|
type_register_static(&virtio_ccw_scsi);
|
||||||
|
#ifdef CONFIG_VHOST_SCSI
|
||||||
type_register_static(&vhost_ccw_scsi);
|
type_register_static(&vhost_ccw_scsi);
|
||||||
|
#endif
|
||||||
type_register_static(&virtio_ccw_rng);
|
type_register_static(&virtio_ccw_rng);
|
||||||
type_register_static(&virtual_css_bridge_info);
|
type_register_static(&virtual_css_bridge_info);
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,6 +101,7 @@ typedef struct VirtIOSCSICcw {
|
||||||
VirtIOSCSI vdev;
|
VirtIOSCSI vdev;
|
||||||
} VirtIOSCSICcw;
|
} VirtIOSCSICcw;
|
||||||
|
|
||||||
|
#ifdef CONFIG_VHOST_SCSI
|
||||||
/* vhost-scsi-ccw */
|
/* vhost-scsi-ccw */
|
||||||
|
|
||||||
#define TYPE_VHOST_SCSI_CCW "vhost-scsi-ccw"
|
#define TYPE_VHOST_SCSI_CCW "vhost-scsi-ccw"
|
||||||
|
@ -111,6 +112,7 @@ typedef struct VHostSCSICcw {
|
||||||
VirtioCcwDevice parent_obj;
|
VirtioCcwDevice parent_obj;
|
||||||
VHostSCSI vdev;
|
VHostSCSI vdev;
|
||||||
} VHostSCSICcw;
|
} VHostSCSICcw;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* virtio-blk-ccw */
|
/* virtio-blk-ccw */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue