All these devices can be used together with supported SCSI controllers in a virtualization use case, so must be treated as secure.
Reviewed-by: Thomas Huth <[email protected]> Acked-by: Marc-André Lureau <[email protected]> Signed-off-by: Daniel P. Berrangé <[email protected]> --- hw/scsi/scsi-disk.c | 3 +++ hw/scsi/scsi-generic.c | 1 + 2 files changed, 4 insertions(+) diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index de2b6d85da8..a2df3a4ec46 100644 --- a/hw/scsi/scsi-disk.c +++ b/hw/scsi/scsi-disk.c @@ -3378,6 +3378,7 @@ static const TypeInfo scsi_hd_info = { .name = "scsi-hd", .parent = TYPE_SCSI_DISK_BASE, .class_init = scsi_hd_class_initfn, + .secure = true, }; static const Property scsi_cd_properties[] = { @@ -3421,6 +3422,7 @@ static const TypeInfo scsi_cd_info = { .name = "scsi-cd", .parent = TYPE_SCSI_DISK_BASE, .class_init = scsi_cd_class_initfn, + .secure = true, }; #ifdef __linux__ @@ -3463,6 +3465,7 @@ static const TypeInfo scsi_block_info = { .name = "scsi-block", .parent = TYPE_SCSI_DISK_BASE, .class_init = scsi_block_class_initfn, + .secure = true, }; #endif diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c index e48fcb926f1..747a0aa61be 100644 --- a/hw/scsi/scsi-generic.c +++ b/hw/scsi/scsi-generic.c @@ -1259,6 +1259,7 @@ static const TypeInfo scsi_generic_info = { .parent = TYPE_SCSI_DEVICE, .instance_size = sizeof(SCSIDevice), .class_init = scsi_generic_class_initfn, + .secure = true, }; static void scsi_generic_register_types(void) -- 2.56.1
