From: Juan Quintela <quintela@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Mao Zhongyi" <maozhongyi@cmss.chinamobile.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
"Jan Kiszka" <jan.kiszka@web.de>,
"Gerd Hoffmann" <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 4/4] audio: use existing macros istead of hardcoded strings
Date: Wed, 17 Oct 2018 13:55:40 +0200 [thread overview]
Message-ID: <877eigaitf.fsf@trasno.org> (raw)
In-Reply-To: <CAFEAcA9+zzccFDQpGYTp8iwBR8u5wMuh8_R_d2m6BZXui2wOKQ@mail.gmail.com> (Peter Maydell's message of "Thu, 11 Oct 2018 12:05:41 +0100")
Peter Maydell <peter.maydell@linaro.org> wrote:
> On 11 October 2018 at 11:45, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>> On 11/10/2018 11:00, Mao Zhongyi wrote:
>>> Cc: Jan Kiszka <jan.kiszka@web.de>
>>> Cc: Peter Maydell <peter.maydell@linaro.org>
>>> Cc: Gerd Hoffmann <kraxel@redhat.com>
>>> To: qemu-arm@nongnu.org
>>>
>>> Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
>>> ---
>>> hw/arm/musicpal.c | 16 ++++++++--------
>>> hw/audio/marvell_88w8618.c | 3 +--
>>> include/hw/audio/wm8750.h | 1 +
>>> 3 files changed, 10 insertions(+), 10 deletions(-)
>>>
>>> diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c
>>> index ac266f9253..6425f1d50f 100644
>>> --- a/hw/arm/musicpal.c
>>> +++ b/hw/arm/musicpal.c
>>> @@ -406,7 +406,7 @@ static void mv88w8618_eth_realize(DeviceState
>>> *dev, Error **errp)
>>> }
>>>
>>> static const VMStateDescription mv88w8618_eth_vmsd = {
>>> - .name = "mv88w8618_eth",
>>> + .name = TYPE_MV88W8618_ETH,
>>
>> I understand TYPE_device name might changed, but once used,
>> VMStateDescription shouldn't, else this would break migration.
>> Thus I wouldn't recommend using TYPE_name in VMStateDescription.name.
>>
>> Since I'm not sure I cc'ed the migration maintainers.
>
> Yes, that's the usual approach -- the vmstate struct names
> aren't inherently the same as the QOM type names, and so
> we keep them decoupled to avoid accidentally breaking migration.
Yeap, I agree.
Later, Juan.
prev parent reply other threads:[~2018-10-17 11:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-11 9:00 [Qemu-devel] [PATCH 0/4] use object link instead of qdev property Mao Zhongyi
2018-10-11 9:00 ` [Qemu-devel] [PATCH 1/4] wm8750: remove duplicate macro Mao Zhongyi
2018-10-11 10:39 ` Philippe Mathieu-Daudé
2018-10-12 1:09 ` maozy
2018-10-11 9:00 ` [Qemu-devel] [PATCH 2/4] audio: use TYPE_WM8750 instead of a hardcoded string Mao Zhongyi
2018-10-11 10:40 ` Philippe Mathieu-Daudé
2018-10-11 9:00 ` [Qemu-devel] [PATCH 3/4] audio: use object link instead of qdev property to pass wm8750 reference Mao Zhongyi
2018-10-11 9:00 ` [Qemu-devel] [PATCH 4/4] audio: use existing macros istead of hardcoded strings Mao Zhongyi
2018-10-11 10:45 ` Philippe Mathieu-Daudé
2018-10-11 11:05 ` Peter Maydell
2018-10-12 1:16 ` [Qemu-devel] [PATCH 4/4] audio: use existing macros istead ofhardcoded strings maozy
2018-10-17 11:55 ` Juan Quintela [this message]
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=877eigaitf.fsf@trasno.org \
--to=quintela@redhat.com \
--cc=dgilbert@redhat.com \
--cc=jan.kiszka@web.de \
--cc=kraxel@redhat.com \
--cc=maozhongyi@cmss.chinamobile.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.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 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.