From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URMmH-0002kO-K5 for qemu-devel@nongnu.org; Sun, 14 Apr 2013 09:15:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URMmG-0006JX-HP for qemu-devel@nongnu.org; Sun, 14 Apr 2013 09:15:29 -0400 Received: from greensocs.com ([87.106.252.221]:45505 helo=s15328186.onlinehome-server.info) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URMmG-0006JT-BA for qemu-devel@nongnu.org; Sun, 14 Apr 2013 09:15:28 -0400 From: fred.konrad@greensocs.com Date: Sun, 14 Apr 2013 15:14:49 +0200 Message-Id: <1365945289-14122-1-git-send-email-fred.konrad@greensocs.com> Subject: [Qemu-devel] [PATCH] virtio-rng-s390: add properties. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, aliguori@us.ibm.com Cc: cornelia.huck@de.ibm.com, peter.maydell@linaro.org, mark.burton@greensocs.com, Alexander Graf , fred.konrad@greensocs.com From: KONRAD Frederic I don't see any reason why these properties are missing. Cc: Cornelia Huck Cc: Alexander Graf Signed-off-by: KONRAD Frederic Note: Need to apply virtio-rng-refactoring first! --- hw/s390x/s390-virtio-bus.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/s390x/s390-virtio-bus.c b/hw/s390x/s390-virtio-bus.c index 4d9f2ec..0d915af 100644 --- a/hw/s390x/s390-virtio-bus.c +++ b/hw/s390x/s390-virtio-bus.c @@ -514,11 +514,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 = { -- 1.7.11.7