From patchwork Tue Jun 27 16:09:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 696893 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3868489wrm; Tue, 27 Jun 2023 09:18:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7A4PEIiKytvUmxdzo5n+78PYJZepYp1kLmB6hHHYCHnPPOIyMon4jv9zBmT39Kx4wZM6/M X-Received: by 2002:ac8:7d91:0:b0:400:8781:78a5 with SMTP id c17-20020ac87d91000000b00400878178a5mr13975633qtd.3.1687882685620; Tue, 27 Jun 2023 09:18:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687882685; cv=none; d=google.com; s=arc-20160816; b=PL1G/BN/r8KuJJpcr6NRhNUGgBA6dVMHQtCzCEi+hYfJY3gMVu6RUzWjetUSCioLEY EZTyvTgSij5IcFfqV/sFraW7E6P4UyeIxvGrfRweuQ84318OdL4TDmSbUcNF6Kn8ui7k nACA6qLxD9rXywa9U0DrhYptjIaMccwgUoojnEv63kGizvmbBwgvw7elYDsTx2L3jB37 dk52a/hg1SAajr4To5gjj5zuIQ30K2uqJ7dfM5f3FV4lYrabwZ3pOqtDJliGpjMbQgrS 8qG3vnS1wFx9pcBfCSQRJFaeGFTTqKJrHphrKuAE5creuhSdNfKJPybTbZdd1+hXvEWf x9YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SZAOTeGGrKkzwQAvWZdxb45rty8GpJ035mBrUTHulE4=; fh=ArV5Yx1z9lg+jufSSsiXTUg87d1rJ5PmrQDHLSB2i58=; b=X25c9GdnCiwD5CBw5mdktaTKI1gLpjmqn25DkiJQ99ee9ADn3bEv7bEPEOcRI+M2B2 sQnUJwrIi61D5/4QsoFgUK1h8m8ex0RnXRFvRG3VRoYjJNskHzO8B3ckz//BfgvOnnVf zZlKqQSDJVfTXAwPjI/xl/DntgV/LH4cqcVsxk9wr8lxECvky5M0N0ZhaFtkGLwwEc4V qoxV3jaEofLr3NBD4EebjIHlNULbGzl152TEaKftTOuBIiKO8BV6o+cXtA9mbQ3mAlJk 4IDEHxGyIV1Jf2WwZVfZ79yYzRc0mlq6qnrjfoc9XDI2vQzOToZkEoOBvCrWWCnlLZrb DzhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="W/lOWDTR"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x2-20020a05622a000200b003e9f7aec3afsi1011622qtw.291.2023.06.27.09.18.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Jun 2023 09:18:05 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b="W/lOWDTR"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEBMR-0001Ez-2f; Tue, 27 Jun 2023 12:16:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEBMM-0001BB-U3 for qemu-devel@nongnu.org; Tue, 27 Jun 2023 12:16:06 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEBMC-0008AL-Rr for qemu-devel@nongnu.org; Tue, 27 Jun 2023 12:16:06 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fa8cd4a113so26733435e9.2 for ; Tue, 27 Jun 2023 09:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687882555; x=1690474555; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SZAOTeGGrKkzwQAvWZdxb45rty8GpJ035mBrUTHulE4=; b=W/lOWDTR0Dz0qqO6kVc6rJyLGlUlJ4USiuOjkMXtjP8A+I2WoIq7eUgZm34pAkHFIc nza6zBCTf9K6eapcd3ijJ2AGPEIKxJV2E1DHClx5GQ+Gsb7RVM9Z3XIb5J74sWSTIdXO B0W54qk3boxwnFMXy+agcAhAkPLOtkb80jp0XEI5jlyz20tID097S2kzZb3Rwfd8PLK/ 5exjB5+fpZybcLdqHKnKNdISdaSuuIGczypVLks7UaY8ZLSL45kvMKU+HZYdkx4Wfb5g 1Js8D7zRDNvIrEFR5mxHM5Q7H7mHmxjaaqQzHStLPfwy4GSLlGcLZBzwpTXcfixsyaGC CpSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687882555; x=1690474555; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SZAOTeGGrKkzwQAvWZdxb45rty8GpJ035mBrUTHulE4=; b=aevanKcdRyiP9zBCmZAZqmNDu3VtIi4DmMGTjbyXKT0nF61WDPiamBdYxM5T0TrpEL HsbBkhdg9yobSN1nVIFAVtvbCKw2JCRqcc6sQOTJZse8rCigeBS3BG0kKVU4JHLA9OPz mVz070Jm4IuH5lJJLGZS0RFWqT56pd0zi/KaP7YF/VFmM5M6gGzzJrhzJz2KoIUOnBH9 jxNZUjtAvcbWtOuUsy76ydC0tL/1NQyl+uGlOlFoYyJgFk5dYHCyEh0njoJVS4ioz1vT 9y9Fp+RnIwEICilICvJqTjBbVkn/WKMW4TNddAeuT/zKl17bq48CG0lwlkZr3gmAAXkd Fa9g== X-Gm-Message-State: AC+VfDw3CErr//tJB94mLuDOwzuvp7KWgAutizy7wOPBBSUIqehcAv3F 5hDbmO0aVNbZAbTCp3yIUrVr/w== X-Received: by 2002:a05:600c:230b:b0:3fa:8874:fe69 with SMTP id 11-20020a05600c230b00b003fa8874fe69mr5892547wmo.29.1687882555030; Tue, 27 Jun 2023 09:15:55 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id y17-20020a1c4b11000000b003f90a604885sm11275804wma.34.2023.06.27.09.15.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 09:15:53 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 732AB1FFC0; Tue, 27 Jun 2023 17:09:46 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , Juan Quintela , Thomas Huth , Cleber Rosa , Leonardo Bras , Beraldo Leal , Peter Maydell , Bin Meng , Yanan Wang , Darren Kenny , Alexander Bulekov , Marcel Apfelbaum , Peter Xu , Radoslaw Biernacki , Laurent Vivier , Paolo Bonzini , Eduardo Habkost , qemu-arm@nongnu.org, Stefan Hajnoczi , Richard Henderson , Bandan Das , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Dani?= =?utf-8?q?el_P=2E_Berrang=C3=A9?= , Alexandre Iooss , Marcin Juszkiewicz , Leif Lindholm , Laurent Vivier , Qiuhao Li , Mahmoud Mandour , Riku Voipio , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v3 21/36] include/migration: mark vmstate_register() as a legacy function Date: Tue, 27 Jun 2023 17:09:28 +0100 Message-Id: <20230627160943.2956928-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230627160943.2956928-1-alex.bennee@linaro.org> References: <20230627160943.2956928-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Mention that QOM-ified devices already have support for registering the description. Reviewed-by: Juan Quintela Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Acked-by: Peter Xu Signed-off-by: Alex Bennée Message-Id: <20230619171437.357374-3-alex.bennee@linaro.org> --- v3 - checkpatch cleanups --- include/migration/vmstate.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 084f5e784a..d1b8abe08d 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -1209,7 +1209,15 @@ int vmstate_register_with_alias_id(VMStateIf *obj, uint32_t instance_id, int required_for_version, Error **errp); -/* Returns: 0 on success, -1 on failure */ +/** + * vmstate_register() - legacy function to register state + * serialisation description + * + * New code shouldn't be using this function as QOM-ified devices have + * dc->vmsd to store the serialisation description. + * + * Returns: 0 on success, -1 on failure + */ static inline int vmstate_register(VMStateIf *obj, int instance_id, const VMStateDescription *vmsd, void *opaque)