From: Greg Kurz <groug@kaod.org>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: mdroth@linux.vnet.ibm.com, dgilbert@redhat.com,
lvivier@redhat.com, thuth@redhat.com, qemu-devel@nongnu.org,
qemu-ppc@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCHv2 2/5] migration: Add VMSTATE_UINTTL_TEST()
Date: Mon, 21 Nov 2016 15:16:45 +0100 [thread overview]
Message-ID: <20161121151645.4dc412d0@bahia> (raw)
In-Reply-To: <1479706302-2251-3-git-send-email-david@gibson.dropbear.id.au>
On Mon, 21 Nov 2016 16:31:39 +1100
David Gibson <david@gibson.dropbear.id.au> wrote:
> include/migration/cpu.h defines VMSTATE_UINTTL() and several variants
> for migrating target_ulong fields. It's defined in terms of
> VMSTATE_UINT32() or VMSTATE_UINT64() as appropriate.
>
> It doesn't, however, include a VMSTATE_UINTTL_TEST() variant, which
> I'm going to need shortly. So, add it.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> ---
Reviewed-by: Greg Kurz <groug@kaod.org>
> include/migration/cpu.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/migration/cpu.h b/include/migration/cpu.h
> index f3abbab..f3d5dfc 100644
> --- a/include/migration/cpu.h
> +++ b/include/migration/cpu.h
> @@ -18,6 +18,8 @@
> VMSTATE_UINT64_EQUAL_V(_f, _s, _v)
> #define VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, _v) \
> VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v)
> +#define VMSTATE_UINTTL_TEST(_f, _s, _t) \
> + VMSTATE_UINT64_TEST(_f, _s, _t)
> #define vmstate_info_uinttl vmstate_info_uint64
> #else
> #define qemu_put_betl qemu_put_be32
> @@ -35,6 +37,8 @@
> VMSTATE_UINT32_EQUAL_V(_f, _s, _v)
> #define VMSTATE_UINTTL_ARRAY_V(_f, _s, _n, _v) \
> VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v)
> +#define VMSTATE_UINTTL_TEST(_f, _s, _t) \
> + VMSTATE_UINT32_TEST(_f, _s, _t)
> #define vmstate_info_uinttl vmstate_info_uint32
> #endif
>
next prev parent reply other threads:[~2016-11-21 14:17 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-21 5:31 [Qemu-devel] [PATCHv2 0/5] Last minute ppc migration fixes David Gibson
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 1/5] target-ppc: Fix CPU migration from qemu-2.6 <-> later versions David Gibson
2016-11-21 10:12 ` Dr. David Alan Gilbert
2016-11-21 10:41 ` Thomas Huth
2016-11-21 14:14 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-22 8:19 ` [Qemu-devel] " Alexey Kardashevskiy
2016-11-22 23:28 ` David Gibson
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 2/5] migration: Add VMSTATE_UINTTL_TEST() David Gibson
2016-11-21 10:02 ` Dr. David Alan Gilbert
2016-11-21 10:43 ` Thomas Huth
2016-11-21 14:16 ` Greg Kurz [this message]
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 3/5] target-ppc: Allow eventual removal of old migration mistakes David Gibson
2016-11-21 10:24 ` Dr. David Alan Gilbert
2016-11-21 10:47 ` Thomas Huth
2016-11-21 15:26 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-21 23:11 ` David Gibson
2016-11-22 8:32 ` [Qemu-devel] " Alexey Kardashevskiy
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 4/5] Revert "spapr: Fix migration of PCI host bridges from qemu-2.7" David Gibson
2016-11-21 10:51 ` Thomas Huth
2016-11-21 15:27 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-22 8:33 ` [Qemu-devel] " Alexey Kardashevskiy
2016-11-21 5:31 ` [Qemu-devel] [PATCHv2 5/5] spapr: Fix 2.7<->2.8 migration of PCI host bridge David Gibson
2016-11-21 10:43 ` Dr. David Alan Gilbert
2016-11-21 12:02 ` Thomas Huth
2016-11-21 16:02 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-11-21 23:15 ` David Gibson
2016-11-22 9:42 ` Greg Kurz
2016-11-22 8:17 ` [Qemu-devel] " Alexey Kardashevskiy
2016-11-23 0:17 ` David Gibson
2016-11-23 2:28 ` Alexey Kardashevskiy
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=20161121151645.4dc412d0@bahia \
--to=groug@kaod.org \
--cc=david@gibson.dropbear.id.au \
--cc=dgilbert@redhat.com \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@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.