virtio-rng-s390: add properties.
I don't see any reason why these properties are missing. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Note: Need to apply virtio-rng-refactoring first! Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
3474b67948
commit
75f6e8b0f1
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user