From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: fred.konrad@greensocs.com
Cc: peter.maydell@linaro.org, aliguori@us.ibm.com,
mark.burton@greensocs.com, qemu-devel@nongnu.org,
Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] virtio-rng-s390: add properties.
Date: Mon, 15 Apr 2013 15:13:46 +0200 [thread overview]
Message-ID: <20130415151346.0597c19e@gondolin> (raw)
In-Reply-To: <1365945289-14122-1-git-send-email-fred.konrad@greensocs.com>
On Sun, 14 Apr 2013 15:14:49 +0200
fred.konrad@greensocs.com wrote:
> From: KONRAD Frederic <fred.konrad@greensocs.com>
>
> I don't see any reason why these properties are missing.
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
>
> Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
> Cc: Alexander Graf <agraf@suse.de>
> Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
>
> Note: Need to apply virtio-rng-refactoring first!
Looks sane here.
> ---
> 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 = {
next prev parent reply other threads:[~2013-04-15 13:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-14 13:14 [Qemu-devel] [PATCH] virtio-rng-s390: add properties fred.konrad
2013-04-15 13:13 ` Cornelia Huck [this message]
2013-04-26 17:17 ` Alexander Graf
2013-04-26 17:18 ` Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130415151346.0597c19e@gondolin \
--to=cornelia.huck@de.ibm.com \
--cc=agraf@suse.de \
--cc=aliguori@us.ibm.com \
--cc=fred.konrad@greensocs.com \
--cc=mark.burton@greensocs.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.