From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id h196-v6sm1935931wme.1.2018.05.23.04.01.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 04:01:29 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id 022373E006A; Wed, 23 May 2018 12:01:29 +0100 (BST) References: <20180521140402.23318-1-peter.maydell@linaro.org> <20180521140402.23318-23-peter.maydell@linaro.org> User-agent: mu4e 1.1.0; emacs 26.1 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org, Paolo Bonzini , Richard Henderson Subject: Re: [PATCH 22/27] vmstate.h: Provide VMSTATE_BOOL_SUB_ARRAY In-reply-to: <20180521140402.23318-23-peter.maydell@linaro.org> Date: Wed, 23 May 2018 12:01:28 +0100 Message-ID: <87wovutz3r.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TUID: 9jjuMfkctUqB Peter Maydell writes: > Provide a VMSTATE_BOOL_SUB_ARRAY to go with VMSTATE_UINT8_SUB_ARRAY > and friends. > > Signed-off-by: Peter Maydell Reviewed-by: Alex Benn=C3=A9e > --- > include/migration/vmstate.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h > index df463fd33d..59fc75e418 100644 > --- a/include/migration/vmstate.h > +++ b/include/migration/vmstate.h > @@ -870,6 +870,9 @@ extern const VMStateInfo vmstate_info_qtailq; > #define VMSTATE_BOOL_ARRAY(_f, _s, _n) \ > VMSTATE_BOOL_ARRAY_V(_f, _s, _n, 0) > > +#define VMSTATE_BOOL_SUB_ARRAY(_f, _s, _start, _num) \ > + VMSTATE_SUB_ARRAY(_f, _s, _start, _num, 0, vmstate_info_bool, bool) > + > #define VMSTATE_UINT16_ARRAY_V(_f, _s, _n, _v) \ > VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint16, uint16_t) -- Alex Benn=C3=A9e From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLRWX-0000xW-KN for qemu-devel@nongnu.org; Wed, 23 May 2018 07:01:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLRWO-0000ue-30 for qemu-devel@nongnu.org; Wed, 23 May 2018 07:01:41 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:45094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLRWN-0000uF-SO for qemu-devel@nongnu.org; Wed, 23 May 2018 07:01:32 -0400 Received: by mail-wr0-x242.google.com with SMTP id w3-v6so17959919wrl.12 for ; Wed, 23 May 2018 04:01:31 -0700 (PDT) References: <20180521140402.23318-1-peter.maydell@linaro.org> <20180521140402.23318-23-peter.maydell@linaro.org> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <20180521140402.23318-23-peter.maydell@linaro.org> Date: Wed, 23 May 2018 12:01:28 +0100 Message-ID: <87wovutz3r.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 22/27] vmstate.h: Provide VMSTATE_BOOL_SUB_ARRAY List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org, Paolo Bonzini , Richard Henderson Peter Maydell writes: > Provide a VMSTATE_BOOL_SUB_ARRAY to go with VMSTATE_UINT8_SUB_ARRAY > and friends. > > Signed-off-by: Peter Maydell Reviewed-by: Alex Benn=C3=A9e > --- > include/migration/vmstate.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h > index df463fd33d..59fc75e418 100644 > --- a/include/migration/vmstate.h > +++ b/include/migration/vmstate.h > @@ -870,6 +870,9 @@ extern const VMStateInfo vmstate_info_qtailq; > #define VMSTATE_BOOL_ARRAY(_f, _s, _n) \ > VMSTATE_BOOL_ARRAY_V(_f, _s, _n, 0) > > +#define VMSTATE_BOOL_SUB_ARRAY(_f, _s, _start, _num) \ > + VMSTATE_SUB_ARRAY(_f, _s, _start, _num, 0, vmstate_info_bool, bool) > + > #define VMSTATE_UINT16_ARRAY_V(_f, _s, _n, _v) \ > VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint16, uint16_t) -- Alex Benn=C3=A9e