diff mbox

[1/1] virtio-scsi: Make type virtio-scsi-common abstract

Message ID 1376927595-16685-1-git-send-email-armbru@redhat.com
State New
Headers show

Commit Message

Markus Armbruster Aug. 19, 2013, 3:53 p.m. UTC
From: Markus Armbruster <armbru@redhat.com>

It's the abstract base of virtio-scsi-device and vhost-scsi.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 hw/scsi/virtio-scsi.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Andreas Färber Aug. 19, 2013, 4:01 p.m. UTC | #1
Am 19.08.2013 17:53, schrieb armbru@redhat.com:
> From: Markus Armbruster <armbru@redhat.com>
> 
> It's the abstract base of virtio-scsi-device and vhost-scsi.
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>

Reviewed-by: Andreas Färber <afaerber@suse.de>

Andreas
Paolo Bonzini Aug. 19, 2013, 5:51 p.m. UTC | #2
Il 19/08/2013 17:53, armbru@redhat.com ha scritto:
> From: Markus Armbruster <armbru@redhat.com>
> 
> It's the abstract base of virtio-scsi-device and vhost-scsi.
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  hw/scsi/virtio-scsi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
> index 05da56b..a9ee17b 100644
> --- a/hw/scsi/virtio-scsi.c
> +++ b/hw/scsi/virtio-scsi.c
> @@ -692,6 +692,7 @@ static const TypeInfo virtio_scsi_common_info = {
>      .name = TYPE_VIRTIO_SCSI_COMMON,
>      .parent = TYPE_VIRTIO_DEVICE,
>      .instance_size = sizeof(VirtIOSCSICommon),
> +    .abstract = true,
>      .class_init = virtio_scsi_common_class_init,
>  };
>  
> 

Applied to scsi-next, thanks.

Paolo
diff mbox

Patch

diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
index 05da56b..a9ee17b 100644
--- a/hw/scsi/virtio-scsi.c
+++ b/hw/scsi/virtio-scsi.c
@@ -692,6 +692,7 @@  static const TypeInfo virtio_scsi_common_info = {
     .name = TYPE_VIRTIO_SCSI_COMMON,
     .parent = TYPE_VIRTIO_DEVICE,
     .instance_size = sizeof(VirtIOSCSICommon),
+    .abstract = true,
     .class_init = virtio_scsi_common_class_init,
 };