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: 10822425 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 663F7922 for ; Wed, 20 Feb 2019 15:52:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F5DA2EDC5 for ; Wed, 20 Feb 2019 15:52:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D5AA2EDDE; Wed, 20 Feb 2019 15:52:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E298B2EE0D for ; Wed, 20 Feb 2019 15:52:35 +0000 (UTC) Received: from localhost ([127.0.0.1]:41320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwUAl-0006b4-2a for patchwork-qemu-devel@patchwork.kernel.org; Wed, 20 Feb 2019 10:52:35 -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-Google-Smtp-Source: AHgI3IaCS0WUewsdQAVRrJm6xYAtbnl/LZVWBQ3wNhyet+XXw2NxCr3PTlq7V+dl1kc26K8rJzEHRg== 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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)