Skip to content

Commit

Permalink
virtio-rng-s390: add properties.
Browse files Browse the repository at this point in the history
I don't see any reason why these properties are missing.

Signed-off-by: KONRAD Frederic <[email protected]>

Note: Need to apply virtio-rng-refactoring first!
Acked-by: Cornelia Huck <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
konrad-fred authored and agraf committed Apr 26, 2013
1 parent 3474b67 commit 75f6e8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hw/s390x/s390-virtio-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,19 @@ static const TypeInfo s390_virtio_serial = {
.class_init = s390_virtio_serial_class_init,
};

static Property s390_virtio_rng_properties[] = {
DEFINE_VIRTIO_COMMON_FEATURES(VirtIOS390Device, host_features),
DEFINE_VIRTIO_RNG_PROPERTIES(VirtIORNGS390, vdev.conf),
DEFINE_PROP_END_OF_LIST(),
};

static void s390_virtio_rng_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(klass);

k->init = s390_virtio_rng_init;
dc->props = s390_virtio_rng_properties;
}

static const TypeInfo s390_virtio_rng = {
Expand Down

0 comments on commit 75f6e8b

Please sign in to comment.