From patchwork Mon Jan 28 17:54:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 156846 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3730583jaa; Mon, 28 Jan 2019 10:15:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN6gykgX7Yd/zo0rSqZBKcdpICv/CcRjKGqfLcwJlBmKxZdRcFKXmCQfL0bY0eiCz80KslMv X-Received: by 2002:adf:cc91:: with SMTP id p17mr23161956wrj.118.1548699331047; Mon, 28 Jan 2019 10:15:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548699331; cv=none; d=google.com; s=arc-20160816; b=vzqc+W6yqqoya3t0hYVxkzZ6Oc1UC/JocRP5PZGsAdCH1MMbbZ8i4/KijcY2AYBTlr pdmhoZX1t4AK3KGV8LpUsUNMILOe5bLlEedm/vnf6kSQ9PaefZvOhEx5TgX7D9Hao+57 aeuGoIikPzmkj2Z1LJgwKxDFbPXMNCWeC+Sns2beTmM4K54uam9MYi3ViJosz+CIFXM0 2Utq1a0p8Zi+nveULHrBjndV+Y9ZShbUwLU1rdkqs1R92qzgMcaZpU+q5819lDJEYhJk kgnj5Crts9GevCddxQU48GW0y1i4aaKUa2ZQEy6ufmq/Q8mWWMd6FDDZU/4Njc0l38Ig 1CmA== 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=ltM4+I3qHaykWyP/d2lbXd6SRE5C/Fu+MXwEkwid/GUgcJlXf/SpcviLOja4W37yUZ ek7cRAgHIQxalfzLLrlLNMB+rmRN9OTjLfJhEry3Mq7lPwWfzlCJPq1QB+Yidq87GSk1 owt2N3CuEhQ21A/DVJGHMEDhyOYRTXm297xHxPLoW9L6eKAUi7Uf3ywm7GIyUuZZOh49 Wmyg4jlAQ8zKz3jrkwLyoULARaHw6FrSED3+l9YEouE0NRUhWvmXZ5QR3igLjAiNXikm GoExh0ml+scny2E5qRqAhrA3G8gOWjk9LtOjPKq3snP383+lbiw/DAYC50FMVTp3wbIm EXyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IFzNiiiy; 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 b145si95247wmd.110.2019.01.28.10.15.30 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 28 Jan 2019 10:15:31 -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=IFzNiiiy; 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]:36381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goBRR-0005Uc-VY for patch@linaro.org; Mon, 28 Jan 2019 13:15:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goBEH-00038N-Vc for qemu-devel@nongnu.org; Mon, 28 Jan 2019 13:01:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goB7r-0005WG-Iw for qemu-devel@nongnu.org; Mon, 28 Jan 2019 12:55:30 -0500 Received: from mail-it1-x142.google.com ([2607:f8b0:4864:20::142]:53885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goB7r-0005V9-EW for qemu-devel@nongnu.org; Mon, 28 Jan 2019 12:55:15 -0500 Received: by mail-it1-x142.google.com with SMTP id g85so21920893ita.3 for ; Mon, 28 Jan 2019 09:55:14 -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=IFzNiiiy+t1QNW7H4egkEEF+YbWJL3eNGLq42QrtXC4QWkNcEslBo/G28n0rSdeor1 5p6saF+J77y0S4n/SGNPy7QGADFIYHWjMwtZe9k9fb1fjZlcyZE6DsExwGYktsOKRUcP eJN76un2y5Ysga34vT4unvypFevdnF26Tk6QEs6lywivFUoZmA+fY3Sdmku7DNsAbpUo o9YZ/Oq3wkuLcoD+m8MbSVXBG+gRlvo5A6NjoivR9WfLUhaTEk8lBIBNnbfC1SPDpKKN B7OEfP0xtVEdci3zXNRVX/KDLcYaqXQCqP6iMS6uRiT3F3CQD1BKnm/IKTSC0LEuepvd VfAw== 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=t8PazKP8O02p5qIxGxCe/Lkzb4+iy8ks+hY1xD8JVfhz7n14o/C1iN14NoxgK8I1V2 sivBjJrgvJ3FEHlPpNA5//VTVg44f/w99yramyGVMyxO0RhY7GFvzfmG7Dy+18DTPRl+ TwHnu5G34rCGoNdcQkUVlr/O1NZ0ySQq7nRWEjeI+5cDAmzN0+/D9jOf5OQrzIpg8oic qqCK+V58XpJHkseOYKoES9dKS/y3TqgxdCmIawKmuUlVb95RIMncg571eqVnUqCTMbeP LXCckhpFlsdI5Vc4Aj5g5piQKcGEP0OLlA2fCLZb5C14ySAZ7NuFxBTax1fua5rrE9zT rb9Q== X-Gm-Message-State: AHQUAuYNpDInjysVOseUCNrbyfwKIbVHwdngU/taPXVzWI/+sXywEQe5 ehK5MNNiu2ze1jd/RJ+nyg== X-Received: by 2002:a24:ac02:: with SMTP id s2mr11037971ite.94.1548698114251; Mon, 28 Jan 2019 09:55:14 -0800 (PST) Received: from serve.minyard.net ([47.184.128.64]) by smtp.gmail.com with ESMTPSA id q197sm44771itb.22.2019.01.28.09.55.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 09:55:13 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 747CDDF1; Mon, 28 Jan 2019 11:55:12 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id EDE0F301158; Mon, 28 Jan 2019 11:55:08 -0600 (CST) From: minyard@acm.org To: qemu-devel@nongnu.org, "Dr . David Alan Gilbert" Date: Mon, 28 Jan 2019 11:54:51 -0600 Message-Id: <20190128175458.27255-13-minyard@acm.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190128175458.27255-1-minyard@acm.org> References: <20190128175458.27255-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::142 Subject: [Qemu-devel] [PATCH v4 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 , Paolo Bonzini , Corey Minyard , Corey Minyard , "Michael S . Tsirkin" 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)