From nobody Mon Feb 9 12:09:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1543263665397585.4299080517789; Mon, 26 Nov 2018 12:21:05 -0800 (PST) Received: from localhost ([::1]:38640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRNNL-0006zp-7n for importer@patchew.org; Mon, 26 Nov 2018 15:20:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRN81-0001lM-EE for qemu-devel@nongnu.org; Mon, 26 Nov 2018 15:05:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRN7y-0001LD-Ny for qemu-devel@nongnu.org; Mon, 26 Nov 2018 15:05:09 -0500 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]:33660) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRN7y-0001If-Cg for qemu-devel@nongnu.org; Mon, 26 Nov 2018 15:05:06 -0500 Received: by mail-ot1-x341.google.com with SMTP id i20so17912772otl.0 for ; Mon, 26 Nov 2018 12:05:01 -0800 (PST) Received: from serve.minyard.net ([47.184.128.64]) by smtp.gmail.com with ESMTPSA id 30sm678114otr.64.2018.11.26.12.04.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 12:04:58 -0800 (PST) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 87A5F8FC; Mon, 26 Nov 2018 14:04:49 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 8C12830146A; Mon, 26 Nov 2018 14:04:46 -0600 (CST) 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=dQuSbmLfBQGY+ItOJpmcGalA/NfQQoEAsQvcFAq06qI=; b=NpVBVKNaPNgPLJLdYSVR408YtsjL4MGBfk86qOcpOe4VeiHNKei0YzMN21ArqrUaT2 7I4/JkUfRYI7/CoKsmFAEGnbOa/iSSSkX9WpKn0OpavyvmAm7ozcsVZa5GzaMNGerUmX maix1cLWKvpZeFkUfnG3ev3ieXjuF3tPc9OkMlkIjGP3Xa6nuHP6pxN2eed74BTl7FMn e83FqfXhuuyNCfSEGH1wCRPXoe4iBW4mc3ynLVEUOaSK5k3MGuJ/I4HHQgYV0xQc51PI RoFR79t2Mys5QPxw8l3k+zZY/Paez68bnwZFOb4a0xCCAlo3Aim0q/ZN4v7FVVlnu3qU QdWA== 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=dQuSbmLfBQGY+ItOJpmcGalA/NfQQoEAsQvcFAq06qI=; b=jfRHGsJ1QPFRP1IsQwO45IuKHUvHXPiWdV1U+vpkhM8BGs1c70y+BjclCjfgamUrQr sbMK3jY+wr75OSI/UdG3WJDk+lWr8RoXL009ykFtVdQlLdq97pVPdUAh7yfCviHeNo32 SooURFfgS4Lu0Ovn/gKt1BqZFF79Wkyg1zVuzyROoshCbhUZw+KtibNLNhkqtzrfPAR+ 1KhfImmUgIUGBlQ6jI7UBACK+8QRp49AYZed57Twcpe4tgnjiwH7JPOPhdq0FlLkMYqy FwlYAoxVqdMeGkvIyVyWeDdn+dIXbebRzt0mSSAW7FcBgXM8jDY3UofzB8+J+ASFShb6 HOjA== X-Gm-Message-State: AA+aEWZr74ZZKpLfcc/JD6A7IqoOmcFo7MGaACwzf+16gGcVGEES6z74 +rEXx/1bwTg0iFACdgBJBA== X-Google-Smtp-Source: AFSGD/WqmxM3AVxz+IOtONjUzJu08ga0k9SLsXI/6EkVC95/rY8XH699mFjyxfwxjdXUbn/37g9HkA== X-Received: by 2002:a9d:4ac:: with SMTP id 41mr11075093otm.344.1543262700484; Mon, 26 Nov 2018 12:05:00 -0800 (PST) From: minyard@acm.org To: qemu-devel@nongnu.org, "Dr . David Alan Gilbert" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell Date: Mon, 26 Nov 2018 14:04:28 -0600 Message-Id: <20181126200435.23408-10-minyard@acm.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181126200435.23408-1-minyard@acm.org> References: <20181126200435.23408-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::341 Subject: [Qemu-devel] [PATCH v3 09/16] 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: Paolo Bonzini , Corey Minyard , Corey Minyard , "Michael S . Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 2b501d0466..0861e18138 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -850,6 +850,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) =20 +#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) =20 --=20 2.17.1