From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: "Edgar E . Iglesias" <edgar.iglesias@xilinx.com>,
"Alexander Graf" <agraf@suse.de>, "Fam Zheng" <famz@redhat.com>,
"Eduardo Habkost" <ehabkost@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
qemu-devel@nongnu.org, "Jason Wang" <jasowang@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
"Alistair Francis" <alistair.francis@xilinx.com>,
qemu-arm@nongnu.org, "Stefan Hajnoczi" <stefanha@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Igor Mammedov" <imammedo@redhat.com>,
"Andreas Färber" <afaerber@suse.de>,
"Sascha Silbe" <silbe@linux.vnet.ibm.com>
Subject: Re: [Qemu-arm] [Qemu-devel] [RFC PATCH 2/6] hw/net/e1000: real device name is 'e1000-82540em', 'e1000' is an alias
Date: Thu, 4 Jan 2018 16:24:01 +0000 [thread overview]
Message-ID: <20180104162400.GB2618@work-vm> (raw)
In-Reply-To: <20180104144046.30793-3-f4bug@amsat.org>
* Philippe Mathieu-Daudé (f4bug@amsat.org) wrote:
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> hw/net/e1000.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/hw/net/e1000.c b/hw/net/e1000.c
> index 05a00cba31..2280f7fdf9 100644
> --- a/hw/net/e1000.c
> +++ b/hw/net/e1000.c
> @@ -1648,6 +1648,7 @@ typedef struct E1000Info {
> uint16_t device_id;
> uint8_t revision;
> uint16_t phy_id2;
> + const char **aliases;
> } E1000Info;
>
> static void e1000_class_init(ObjectClass *klass, void *data)
> @@ -1695,10 +1696,11 @@ static const TypeInfo e1000_base_info = {
>
> static const E1000Info e1000_devices[] = {
> {
> - .name = "e1000",
> + .name = "e1000-82540em",
> .device_id = E1000_DEV_ID_82540EM,
> .revision = 0x03,
> .phy_id2 = E1000_PHY_ID2_8254xx_DEFAULT,
> + .aliases = (const char * []) {"e1000", NULL},
> },
> {
> .name = "e1000-82544gc",
> @@ -1725,6 +1727,7 @@ static void e1000_register_types(void)
>
> type_info.name = info->name;
> type_info.parent = TYPE_E1000_BASE;
> + type_info.aliases = info->aliases;
> type_info.class_data = (void *)info;
> type_info.class_init = e1000_class_init;
> type_info.instance_init = e1000_instance_init;
Can you just check that this doesn't break migration compatibility
either way please; I think there's some alias code somewhere but I
can't remember the details.
One thing I do remember that broke when it previously changed was
entries in PC_COMPAT_* tables like the one in hw/i386/pc_piix.c's
PC_COMPAT_1_3 - so check with an 'info qtree' that the property is OK.
Dave
> --
> 2.15.1
>
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
WARNING: multiple messages have this Message-ID (diff)
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: "Alistair Francis" <alistair.francis@xilinx.com>,
"Edgar E . Iglesias" <edgar.iglesias@xilinx.com>,
"Andreas Färber" <afaerber@suse.de>,
"Igor Mammedov" <imammedo@redhat.com>,
"Eduardo Habkost" <ehabkost@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
"Sascha Silbe" <silbe@linux.vnet.ibm.com>,
"Alexander Graf" <agraf@suse.de>, "Fam Zheng" <famz@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
qemu-devel@nongnu.org, qemu-arm@nongnu.org,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [RFC PATCH 2/6] hw/net/e1000: real device name is 'e1000-82540em', 'e1000' is an alias
Date: Thu, 4 Jan 2018 16:24:01 +0000 [thread overview]
Message-ID: <20180104162400.GB2618@work-vm> (raw)
In-Reply-To: <20180104144046.30793-3-f4bug@amsat.org>
* Philippe Mathieu-Daudé (f4bug@amsat.org) wrote:
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> hw/net/e1000.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/hw/net/e1000.c b/hw/net/e1000.c
> index 05a00cba31..2280f7fdf9 100644
> --- a/hw/net/e1000.c
> +++ b/hw/net/e1000.c
> @@ -1648,6 +1648,7 @@ typedef struct E1000Info {
> uint16_t device_id;
> uint8_t revision;
> uint16_t phy_id2;
> + const char **aliases;
> } E1000Info;
>
> static void e1000_class_init(ObjectClass *klass, void *data)
> @@ -1695,10 +1696,11 @@ static const TypeInfo e1000_base_info = {
>
> static const E1000Info e1000_devices[] = {
> {
> - .name = "e1000",
> + .name = "e1000-82540em",
> .device_id = E1000_DEV_ID_82540EM,
> .revision = 0x03,
> .phy_id2 = E1000_PHY_ID2_8254xx_DEFAULT,
> + .aliases = (const char * []) {"e1000", NULL},
> },
> {
> .name = "e1000-82544gc",
> @@ -1725,6 +1727,7 @@ static void e1000_register_types(void)
>
> type_info.name = info->name;
> type_info.parent = TYPE_E1000_BASE;
> + type_info.aliases = info->aliases;
> type_info.class_data = (void *)info;
> type_info.class_init = e1000_class_init;
> type_info.instance_init = e1000_instance_init;
Can you just check that this doesn't break migration compatibility
either way please; I think there's some alias code somewhere but I
can't remember the details.
One thing I do remember that broke when it previously changed was
entries in PC_COMPAT_* tables like the one in hw/i386/pc_piix.c's
PC_COMPAT_1_3 - so check with an 'info qtree' that the property is OK.
Dave
> --
> 2.15.1
>
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2018-01-04 16:24 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-04 14:40 [Qemu-devel] [RFC PATCH 0/6] qom: introduce TypeInfo name aliases Philippe Mathieu-Daudé
2018-01-04 14:40 ` Philippe Mathieu-Daudé
2018-01-04 14:40 ` [Qemu-arm] [RFC PATCH 1/6] " Philippe Mathieu-Daudé
2018-01-04 14:40 ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-01-04 14:40 ` [Qemu-arm] [RFC PATCH 2/6] hw/net/e1000: real device name is 'e1000-82540em', 'e1000' is an alias Philippe Mathieu-Daudé
2018-01-04 14:40 ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-01-04 16:24 ` Dr. David Alan Gilbert [this message]
2018-01-04 16:24 ` Dr. David Alan Gilbert
2018-01-04 16:34 ` [Qemu-arm] " Philippe Mathieu-Daudé
2018-01-04 16:34 ` Philippe Mathieu-Daudé
2018-01-04 16:41 ` Dr. David Alan Gilbert
2018-01-04 16:41 ` Dr. David Alan Gilbert
2018-01-04 14:40 ` [Qemu-arm] [RFC PATCH 3/6] hw/char/cadence_uart: add FDT aliases Philippe Mathieu-Daudé
2018-01-04 14:40 ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-01-06 2:19 ` [Qemu-arm] " Alistair Francis
2018-01-06 2:19 ` Alistair Francis
2018-01-04 14:40 ` [Qemu-devel] [RFC PATCH 4/6] arm/xlnx-zynq: use FDT names for the Cadence UART Philippe Mathieu-Daudé
2018-01-04 14:40 ` Philippe Mathieu-Daudé
2018-01-06 2:20 ` Alistair Francis
2018-01-06 2:20 ` Alistair Francis
2018-01-08 12:54 ` [Qemu-arm] " Igor Mammedov
2018-01-08 12:54 ` [Qemu-devel] " Igor Mammedov
2018-01-08 13:17 ` [Qemu-arm] " Thomas Huth
2018-01-08 13:17 ` Thomas Huth
2018-01-08 13:51 ` [Qemu-arm] " Philippe Mathieu-Daudé
2018-01-08 13:51 ` Philippe Mathieu-Daudé
2018-01-08 14:01 ` [Qemu-arm] " Igor Mammedov
2018-01-08 14:01 ` Igor Mammedov
2018-01-04 14:40 ` [Qemu-devel] [RFC PATCH 5/6] hw/net/cadence_gem: add FDT names as alias Philippe Mathieu-Daudé
2018-01-04 14:40 ` Philippe Mathieu-Daudé
2018-01-06 2:20 ` Alistair Francis
2018-01-06 2:20 ` Alistair Francis
2018-01-04 14:40 ` [Qemu-devel] [RFC PATCH 6/6] hw/arm/xlnx-zynq: use FDT names for the Cadence GEM Philippe Mathieu-Daudé
2018-01-04 14:40 ` Philippe Mathieu-Daudé
2018-01-06 2:20 ` [Qemu-arm] " Alistair Francis
2018-01-06 2:20 ` Alistair Francis
2018-01-04 19:22 ` [Qemu-arm] [RFC PATCH 0/6] qom: introduce TypeInfo name aliases Eduardo Habkost
2018-01-04 19:22 ` [Qemu-devel] " Eduardo Habkost
2018-01-08 12:51 ` [Qemu-arm] " Igor Mammedov
2018-01-08 12:51 ` [Qemu-devel] " Igor Mammedov
2018-01-08 14:10 ` [Qemu-arm] " Philippe Mathieu-Daudé
2018-01-08 14:10 ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-01-12 14:11 ` [Qemu-arm] " Eduardo Habkost
2018-01-12 14:11 ` [Qemu-devel] " Eduardo Habkost
2018-01-08 16:12 ` [Qemu-arm] " Eduardo Habkost
2018-01-08 16:12 ` [Qemu-devel] " Eduardo Habkost
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=20180104162400.GB2618@work-vm \
--to=dgilbert@redhat.com \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=alistair.francis@xilinx.com \
--cc=armbru@redhat.com \
--cc=edgar.iglesias@xilinx.com \
--cc=ehabkost@redhat.com \
--cc=f4bug@amsat.org \
--cc=famz@redhat.com \
--cc=imammedo@redhat.com \
--cc=jasowang@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=silbe@linux.vnet.ibm.com \
--cc=stefanha@redhat.com \
/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.