From: Paolo Bonzini <pbonzini@redhat.com>
To: "KONRAD Frédéric" <fred.konrad@greensocs.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
mdroth <mdroth@linux.vnet.ibm.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [ANNOUNCE] QEMU 1.5.0-rc2 is now available
Date: Thu, 16 May 2013 18:52:59 +0200 [thread overview]
Message-ID: <51950EEB.5010702@redhat.com> (raw)
In-Reply-To: <51950A81.8050703@greensocs.com>
Il 16/05/2013 18:34, KONRAD Frédéric ha scritto:
> True, I avoided it because of CCW and S390, but as they don't have there
> get_dev_path, it seems
> not to change anything for them.
>
> I think that's better and I get 0000:00:04.0/virtio-net for idstr.
Thanks,
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo
> diff --git a/hw/virtio/virtio-bus.c b/hw/virtio/virtio-bus.c
> index aab72ff..ea2e11a 100644
> --- a/hw/virtio/virtio-bus.c
> +++ b/hw/virtio/virtio-bus.c
> @@ -154,12 +154,26 @@ void virtio_bus_set_vdev_config(VirtioBusState
> *bus, uint8_t *config)
> }
> }
>
> +static char *virtio_bus_get_dev_path(DeviceState *dev)
> +{
> + BusState *bus = qdev_get_parent_bus(dev);
> + DeviceState *proxy = DEVICE(bus->parent);
> + return qdev_get_dev_path(proxy);
> +}
> +
> +static void virtio_bus_class_init(ObjectClass *klass, void *data)
> +{
> + BusClass *bus_class = BUS_CLASS(klass);
> + bus_class->get_dev_path = virtio_bus_get_dev_path;
> +}
> +
> static const TypeInfo virtio_bus_info = {
> .name = TYPE_VIRTIO_BUS,
> .parent = TYPE_BUS,
> .instance_size = sizeof(VirtioBusState),
> .abstract = true,
> .class_size = sizeof(VirtioBusClass),
> + .class_init = virtio_bus_class_init
> };
>
> static void virtio_register_types(void)
next prev parent reply other threads:[~2013-05-16 16:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-15 23:53 [Qemu-devel] [ANNOUNCE] QEMU 1.5.0-rc2 is now available Anthony Liguori
2013-05-16 3:56 ` Dongsheng Song
2013-05-16 14:21 ` mdroth
2013-05-16 14:51 ` Paolo Bonzini
2013-05-16 15:54 ` KONRAD Frédéric
2013-05-16 16:07 ` Paolo Bonzini
2013-05-16 16:34 ` KONRAD Frédéric
2013-05-16 16:49 ` mdroth
2013-05-16 16:53 ` KONRAD Frédéric
2013-05-16 16:52 ` Paolo Bonzini [this message]
2013-05-16 16:35 ` mdroth
2013-05-16 16:33 ` Anthony Liguori
2013-05-16 16:34 ` KONRAD Frédéric
2013-05-16 15:17 ` KONRAD Frédéric
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=51950EEB.5010702@redhat.com \
--to=pbonzini@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=fred.konrad@greensocs.com \
--cc=mdroth@linux.vnet.ibm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).