From patchwork Mon Nov 26 20:04:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 10699119 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 C8D9513AD for ; Mon, 26 Nov 2018 20:20:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBBAD2A0C2 for ; Mon, 26 Nov 2018 20:20:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA24D2A273; Mon, 26 Nov 2018 20:20:31 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 65C572A0C2 for ; Mon, 26 Nov 2018 20:20:31 +0000 (UTC) Received: from localhost ([::1]:38640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRNMs-0006zp-8d for patchwork-qemu-devel@patchwork.kernel.org; Mon, 26 Nov 2018 15:20:30 -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) 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) 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) From: minyard@acm.org To: qemu-devel@nongnu.org, "Dr . David Alan Gilbert" , =?utf-8?q?Philippe_Mathieu-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+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 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) +#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)