From: Li Qiang <liq3ea@gmail.com>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: "Li Qiang" <liq3ea@163.com>,
lvivier@redhat.com, "Qemu Developers" <qemu-devel@nongnu.org>,
qemu-trivial@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [Qemu-trivial] [PATCH 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription
Date: Mon, 20 May 2019 09:29:21 +0800 [thread overview]
Message-ID: <CAKXe6SLsoyCh=O1yyOFOukYdFoeySpSS1H8QG7fhp1ZQ35vD+g@mail.gmail.com> (raw)
In-Reply-To: <20190518082020.6b223ab0@x1.home>
[-- Attachment #1: Type: text/plain, Size: 2882 bytes --]
Alex Williamson <alex.williamson@redhat.com> 于2019年5月18日周六 下午10:20写道:
> On Fri, 17 May 2019 20:28:09 -0700
> Li Qiang <liq3ea@163.com> wrote:
>
> > As the vmstate structure names aren't related with
> > the QOM type names.
>
> Seems contrary to the first patch in the series.
>
>
No, once there is a discussion of this:
-->https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg02175.html
Thanks,
Li Qiang
> > CC: qemu-trivial@nongnu.org
> > Signed-off-by: Li Qiang <liq3ea@163.com>
> > ---
> > hw/vfio/amd-xgbe.c | 2 +-
> > hw/vfio/ap.c | 2 +-
> > hw/vfio/calxeda-xgmac.c | 2 +-
> > hw/vfio/ccw.c | 2 +-
> > hw/vfio/platform.c | 2 +-
> > 5 files changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/hw/vfio/amd-xgbe.c b/hw/vfio/amd-xgbe.c
> > index ee64a3b4a2..1b06c0f3ea 100644
> > --- a/hw/vfio/amd-xgbe.c
> > +++ b/hw/vfio/amd-xgbe.c
> > @@ -26,7 +26,7 @@ static void amd_xgbe_realize(DeviceState *dev, Error
> **errp)
> > }
> >
> > static const VMStateDescription vfio_platform_amd_xgbe_vmstate = {
> > - .name = TYPE_VFIO_AMD_XGBE,
> > + .name = "vfio-amd-xgbe",
> > .unmigratable = 1,
> > };
> >
> > diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c
> > index d8b79ebe53..564751650f 100644
> > --- a/hw/vfio/ap.c
> > +++ b/hw/vfio/ap.c
> > @@ -155,7 +155,7 @@ static void vfio_ap_reset(DeviceState *dev)
> > }
> >
> > static const VMStateDescription vfio_ap_vmstate = {
> > - .name = VFIO_AP_DEVICE_TYPE,
> > + .name = "vfio-ap",
> > .unmigratable = 1,
> > };
> >
> > diff --git a/hw/vfio/calxeda-xgmac.c b/hw/vfio/calxeda-xgmac.c
> > index e7767c4b02..6cc608b6ca 100644
> > --- a/hw/vfio/calxeda-xgmac.c
> > +++ b/hw/vfio/calxeda-xgmac.c
> > @@ -26,7 +26,7 @@ static void calxeda_xgmac_realize(DeviceState *dev,
> Error **errp)
> > }
> >
> > static const VMStateDescription vfio_platform_calxeda_xgmac_vmstate = {
> > - .name = TYPE_VFIO_CALXEDA_XGMAC,
> > + .name = "vfio-calxeda-xgmac",
> > .unmigratable = 1,
> > };
> >
> > diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
> > index 31dd3a2a87..d9e39552e2 100644
> > --- a/hw/vfio/ccw.c
> > +++ b/hw/vfio/ccw.c
> > @@ -468,7 +468,7 @@ static Property vfio_ccw_properties[] = {
> > };
> >
> > static const VMStateDescription vfio_ccw_vmstate = {
> > - .name = TYPE_VFIO_CCW,
> > + .name = "vfio-ccw",
> > .unmigratable = 1,
> > };
> >
> > diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
> > index 398db38f14..e59a0234dd 100644
> > --- a/hw/vfio/platform.c
> > +++ b/hw/vfio/platform.c
> > @@ -697,7 +697,7 @@ out:
> > }
> >
> > static const VMStateDescription vfio_platform_vmstate = {
> > - .name = TYPE_VFIO_PLATFORM,
> > + .name = "vfio-platform",
> > .unmigratable = 1,
> > };
> >
>
>
[-- Attachment #2: Type: text/html, Size: 4225 bytes --]
next prev parent reply other threads:[~2019-05-20 1:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-18 3:28 [Qemu-trivial] [PATCH 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO Li Qiang
2019-05-18 3:28 ` [Qemu-trivial] [PATCH 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription Li Qiang
2019-05-18 14:20 ` Alex Williamson
2019-05-20 1:29 ` Li Qiang [this message]
2019-05-20 20:12 ` Alex Williamson
2019-05-18 3:28 ` [Qemu-trivial] [PATCH 3/4] vfio: platform: fix a typo Li Qiang
2019-05-18 14:20 ` Alex Williamson
2019-05-18 3:28 ` [Qemu-trivial] [PATCH 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file Li Qiang
2019-05-18 14:21 ` Alex Williamson
2019-05-18 14:18 ` [Qemu-trivial] [PATCH 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO Alex Williamson
2019-05-20 1:27 ` Li Qiang
2019-05-20 20:02 ` Alex Williamson
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='CAKXe6SLsoyCh=O1yyOFOukYdFoeySpSS1H8QG7fhp1ZQ35vD+g@mail.gmail.com' \
--to=liq3ea@gmail.com \
--cc=alex.williamson@redhat.com \
--cc=liq3ea@163.com \
--cc=lvivier@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).