From patchwork Wed Feb 20 13:59:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 158832 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5081882jaa; Wed, 20 Feb 2019 07:54:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ2TuV1xGmhGIQjch+wSM5ZA3WvqKj8SVRop3ZrIKkupZw63DUNGI7eTA/ReNvesSvgez6c X-Received: by 2002:a81:a192:: with SMTP id y140mr28407761ywg.380.1550678056848; Wed, 20 Feb 2019 07:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550678056; cv=none; d=google.com; s=arc-20160816; b=rIC0T/4F38a5iB42KdfQSGA/o2YN0ajgh3k88xSD1GcL5jo+kIQXnn/roqN/ZDd4gV sAwmu3u3ewOAVS4ssUrxnbyC5bwhb4z0SI8O6aQ8WkhlAbFRZNAIlssq0iwLvJcrs14w /0RJh5kKu/+Jgl2xbCEAfbMHhkNKFWPyIj/JaNznJfP1eBUz1nQibjLcmkmtW0cjjT0h 5e1Xnt5RMClgdhm6UK7BPgw1wQ0Nk/PUWgX6Bu/lHQdFBWSHTjUy191uUD5PAqJjRRKZ jxwfc7lPyB+cEdX3qVgIB5sr8D91GlXbVTOvxJzRBdMkXq57Hyh9y0Z9jWeILM8eFIiG v+yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=98XV8+tO+xHYRvb4UcZhVimQe7LR4Du0EPxu1yJbd+M=; b=RXhW1J5eTCCu8LqZ3q5nry6DqlsysjKpAATfES27Mn7BH3l8xs50zD5hpfTDCfpw9G mU2E6OkgZcmZ4wX1sGVpCgY1j2+LI09iHrFp+dEIedtqG3yBAhTGv4kEny7anJSnAcWW EL4J4+enHYSnxztfr3BcoICwcLIwaLyqlW1qZ7AFeW8dn+7z1VVs2+Nu9vS+BBDeKzBE aTU4MMIp+ViwcHJkIv7fTVu2KonwE2UfbF6Unp5fGmbKICsNSm1C8HZpZf3QeNxlQFXg xHP+EKDrVShmqz3RHoE+6Fmv2s1XhJGB1R9NCtmVqUSHhOZCSULKBqtgXSCtPPrI7xrN qscA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tEqhuxKC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c64si9461407ywf.295.2019.02.20.07.54.16 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 20 Feb 2019 07:54:16 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tEqhuxKC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([127.0.0.1]:41320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwUCO-0006b4-9G for patch@linaro.org; Wed, 20 Feb 2019 10:54:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwTow-0004eF-Ga for qemu-devel@nongnu.org; Wed, 20 Feb 2019 10:30:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwTou-0001Qy-1H for qemu-devel@nongnu.org; Wed, 20 Feb 2019 10:30:02 -0500 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:42547) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwToq-0001Od-2e for qemu-devel@nongnu.org; Wed, 20 Feb 2019 10:29:57 -0500 Received: by mail-ot1-x344.google.com with SMTP id i5so40735901oto.9 for ; Wed, 20 Feb 2019 07:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=98XV8+tO+xHYRvb4UcZhVimQe7LR4Du0EPxu1yJbd+M=; b=tEqhuxKC0YzwX3x9Bhi4etQDGSVeuWDSuMaRQu/tjlZxyRbnwZzIlE4h/rAdIEN5u6 1wo4aiY5/J8BSR1uvnRyN07x/aM3Gb5Ug6Srt6kfUFEnLQKUEiX5yaBHW0Yltw0eq35b wxMrhodiNBXV2bKaGeGCpe+5wxJzbNS76d1nbqTB9kqqImWrskno+HubgowwZ1J+mNER yHz1m9jSBbjqWDUrIVheKn51Ie9Ds+QUteH5v4b3ZB7ntb6V3YIZIzPUh985H/QskBaS EF0TDX2FzcIrcvphAsQf+X/ZhvaWljbqgQmGKafC4fiqYas4BwwH3tVxggN4Ln1MeBQO vMCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=98XV8+tO+xHYRvb4UcZhVimQe7LR4Du0EPxu1yJbd+M=; b=BxWTNMjxpqFDS9SlBaKX89bNDf3+FW1DFoJCXV+Xsjq+YVK2vaYo0I1y+7w2Ygb2Dd 6WD5/hD3guwQCsnXThN9VIeu/HVo59yUbDTZm53WdcA+N9W+rE9ehcf2pdJ860gl7sKY TosmO8SPDEiQ6uhxCO/gyxpNhyHo7AXaQr2VG3FjmMK+ZsYODkzpn+w/o512xcW6q6Ta /gdP55BUCzb9uhy3PuIr/xYD+4khRYGlGbEDDAtkRZpbpKT2Gyi1L72siJvaVtXp1dTU 9zAbase/qD5+Tpr1cP5Is3a3m3ltp3t52jEl3mDEav1BKik4B46tJJWjX+t+SWmyxCcj oFsg== X-Gm-Message-State: AHQUAuYdO1O57mTyBF13i7h/XKBEch2EAD4WbAINbq4SuMXHURovgLS7 8abIwt6svYl+j46sT/QLMHrJ82r05A== X-Received: by 2002:a9d:5e14:: with SMTP id d20mr21526668oti.172.1550671217533; Wed, 20 Feb 2019 06:00:17 -0800 (PST) Received: from serve.minyard.net (serve.minyard.net. [2001:470:b8f6:1b::1]) by smtp.gmail.com with ESMTPSA id y124sm4111493oie.57.2019.02.20.06.00.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Feb 2019 06:00:12 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 4E30C1808F9; Wed, 20 Feb 2019 14:00:10 +0000 (UTC) Received: by t430.minyard.net (Postfix, from userid 1000) id 23C36302A6A; Wed, 20 Feb 2019 08:00:09 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org Date: Wed, 20 Feb 2019 07:59:49 -0600 Message-Id: <20190220135956.22589-13-minyard@acm.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190220135956.22589-1-minyard@acm.org> References: <20190220135956.22589-1-minyard@acm.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::344 Subject: [Qemu-devel] [PATCH 12/19] migration: Add a VMSTATE_BOOL_TEST() macro X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Corey Minyard , Corey Minyard , "Michael S . Tsirkin" , "Dr . David Alan Gilbert" , Paolo Bonzini Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard This will be needed by coming I2C changes. Signed-off-by: Corey Minyard Reviewed-by: Dr. David Alan Gilbert --- include/migration/vmstate.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 067b126cf1..a668ec75b8 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -851,6 +851,9 @@ extern const VMStateInfo vmstate_info_qtailq; #define VMSTATE_INT32_POSITIVE_LE(_f, _s) \ VMSTATE_SINGLE(_f, _s, 0, vmstate_info_int32_le, int32_t) +#define VMSTATE_BOOL_TEST(_f, _s, _t) \ + VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_bool, bool) + #define VMSTATE_INT8_TEST(_f, _s, _t) \ VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_int8, int8_t)