From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8lQy-0001Pv-P1 for qemu-devel@nongnu.org; Mon, 21 Nov 2016 05:02:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8lQu-0004vC-QI for qemu-devel@nongnu.org; Mon, 21 Nov 2016 05:02:44 -0500 Date: Mon, 21 Nov 2016 10:02:32 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20161121100232.GB2035@work-vm> References: <1479706302-2251-1-git-send-email-david@gibson.dropbear.id.au> <1479706302-2251-3-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1479706302-2251-3-git-send-email-david@gibson.dropbear.id.au> Subject: Re: [Qemu-devel] [PATCHv2 2/5] migration: Add VMSTATE_UINTTL_TEST() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: mdroth@linux.vnet.ibm.com, agraf@suse.de, aik@ozlabs.ru, thuth@redhat.com, lvivier@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org * 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 Reviewed-by: Dr. David Alan Gilbert > --- > 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 > > -- > 2.7.4 > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK