diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-04-24 10:07:57 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-24 11:50:19 -0500 |
commit | 0bca1f531312037ab988b883ea3df85ddd2cc5b1 (patch) | |
tree | 7c3e73908483d8d820fa6c861fdfc70da28db502 /hw/s390x/s390-virtio-bus.h | |
parent | 59ccd20a9ac719cff82180429458728f03ec612f (diff) | |
download | qemu-0bca1f531312037ab988b883ea3df85ddd2cc5b1.zip qemu-0bca1f531312037ab988b883ea3df85ddd2cc5b1.tar.gz qemu-0bca1f531312037ab988b883ea3df85ddd2cc5b1.tar.bz2 |
virtio-rng-s390: switch to the new API.
Here the virtio-rng-s390 is modified for the new API. The device
virtio-rng-s390 extends virtio-s390-device as before. It creates and
connects a virtio-rng during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Message-id: 1366790881-3026-5-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/s390x/s390-virtio-bus.h')
-rw-r--r-- | hw/s390x/s390-virtio-bus.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hw/s390x/s390-virtio-bus.h b/hw/s390x/s390-virtio-bus.h index d7c47db..991f9e2 100644 --- a/hw/s390x/s390-virtio-bus.h +++ b/hw/s390x/s390-virtio-bus.h @@ -93,7 +93,6 @@ struct VirtIOS390Device { uint8_t feat_len; VirtIODevice *vdev; uint32_t host_features; - VirtIORNGConf rng; VirtioBusState bus; }; @@ -176,4 +175,15 @@ typedef struct VHostSCSIS390 { } VHostSCSIS390; #endif +/* virtio-rng-s390 */ + +#define TYPE_VIRTIO_RNG_S390 "virtio-rng-s390" +#define VIRTIO_RNG_S390(obj) \ + OBJECT_CHECK(VirtIORNGS390, (obj), TYPE_VIRTIO_RNG_S390) + +typedef struct VirtIORNGS390 { + VirtIOS390Device parent_obj; + VirtIORNG vdev; +} VirtIORNGS390; + #endif |