OSDN Git Service

virtio: Helper for registering virtio device types
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 5 Dec 2018 19:57:03 +0000 (17:57 -0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 19 Dec 2018 21:48:16 +0000 (16:48 -0500)
commita4ee4c8baa37154f42b4dc6a13fee79268d15238
treedda207c6f2ce1514b448ba6c8595980dcd2c6b99
parent2b4e573c7c7b9a698ba6931ba456bbd8d3d8c84c
virtio: Helper for registering virtio device types

Introduce a helper for registering different flavours of virtio
devices.  Convert code to use the helper, but keep only the
existing generic types.  Transitional and non-transitional device
types will be added by another patch.

Acked-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/display/virtio-gpu-pci.c
hw/display/virtio-vga.c
hw/virtio/virtio-crypto-pci.c
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h