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: 152067 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp322653ljp; Mon, 26 Nov 2018 12:19:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/VuS3U5kPXyWN0HwVFCByQYBjZCXAS1Yl/JdWAzAvL3TYBWSDn4A0Fx7dNQRbKyyhfSSTdz X-Received: by 2002:a25:428b:: with SMTP id p133-v6mr30541411yba.178.1543263577946; Mon, 26 Nov 2018 12:19:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543263577; cv=none; d=google.com; s=arc-20160816; b=PmK/ouNtbsAgMOkaryAq25WbwNavRTYaJJSJIaqrXY1H+HXmvjM0ayri41/krio0BJ ih1WdsMK8ZxMxpi/OUowyPCLYg5qvyEZkZeRJIhN/4yW3EKSbDnBR2j+q+++VKyHxiPt 6BhrwwKwUwFEeVGy9iz7y48M6A/2rstUVmjY8181VHhDidIuCZxL9/VHxnsdGjuPNRtj f/uNE/8JmbEIu+R9V31wA4FX8JgH1xqS3t37jEHV/w0xG1h4tiNPiTnc3vUITQXdTQ6V Yxfw1bj1SNhh/H1YnZFa4Qr41tgL2BKLQNnLaGrRhnzdGNVdxYfAJxWy7PYOmagAPmJw XynA== 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=dQuSbmLfBQGY+ItOJpmcGalA/NfQQoEAsQvcFAq06qI=; b=fwpNVNhofZq2Az8pbkxxLKgLE4FVVj/oTo5tbxTEK+Xj27Fq9mutxFxyEauAjKocNj WkFwPRa/xx0w5WTaKPFDh8Ix1jQvsfS4ucU2J9kJ+K8tacTCXhR3yucZhFUe//Aghf3z 3oxQ0luEsV9hJe65vFh9HTBN2wMLmXB/abYWxIZkdIsddfCjhy73CM/vuVev9t/oQMwB 4zOhs7Wt2WXemejO457vYm23+Al7T8rGTMA6lt8/C4Jmcuo6YjvHQMAu6wy/03mgAYeb oaDV5oAD1k3N/TU3hdJztuOrDG21Mne5IhNLq/i9s/ugtklIO3+w+u/35u7zyxmZ1+eH H5fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NpVBVKNa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n204-v6si1054159ybg.13.2018.11.26.12.19.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 26 Nov 2018 12:19:37 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NpVBVKNa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:38626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRNM0-00061T-U1 for patch@linaro.org; Mon, 26 Nov 2018 15:19:36 -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-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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Corey Minyard This will be needed by coming I2C changes. Signed-off-by: Corey Minyard --- include/migration/vmstate.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 Reviewed-by: Dr. David Alan Gilbert 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)