From patchwork Mon Jun 26 21:59:21 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: 696517 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3450680wrm; Mon, 26 Jun 2023 15:10:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xS4YBfOjQVKLbKlgDPUvXOuRTO/zEwB8mAJYRBKBPt3GusTLDH0eakVuybs176zPMTeNn X-Received: by 2002:a05:622a:34b:b0:3f6:b823:f2af with SMTP id r11-20020a05622a034b00b003f6b823f2afmr27688518qtw.1.1687817407064; Mon, 26 Jun 2023 15:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687817407; cv=none; d=google.com; s=arc-20160816; b=TZeL+Z+R70NA3zOjgYnkvA8g5GtTgMYE0AIN0Pe5GSLBQb04uy2Nx9criiBN3VfAn5 6tc+bE6i5m3qspRj378biW6dkgIw77sPiSeRTIWFvWCnYekpcKyl8MV71oiJ9QsWYqj8 +Z1X95HPPu+13bR8qqQGiMTZSr89juHYrb8CxF334XtJcBw7Htja2580pO4Ky/1yqxjb MjW3d+1b9pc7SaEjWB7p6RbMv3CRt6dKON053pNMIA1LR3R2JVbUL5uaVAW/uH+2CbvY F0wKy6YE/CzQvJSiphvRA6P5fPgDMLkurFK0VKqHe8nkXCVyA4SyGtxyn7B+3UX9iQ4V Qgeg== 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=/lZ58MHVs7VVcDhLDA+codKww1SNsRkU8Vn2ofdw4A8=; fh=sQEya64SXtq2IEsk3H77u01QQAMvGjGQGvqUW/mcVd0=; b=J2cJ4WZlw4mx+LTJRsrCl2SFjDJ9en2auhk7pavKnsF5DoWsqFH+0FGERhhKAqPN6Y 54ilTg6EdGiBXE26/8ei7LaMBPqBZd1tHaWFFWoJsXsIz86yHvfZ93qTLuRFh87eEZBS g5tywOCmQ35OAKf/5FA4PVubMpTat/lo72fEyCHCPaGBhersALScuPoq2qOwJofE6fE1 8bxo1Wzyg/iMdrLzATMaAqDb/xshnH1Ew/T40FirntB9CUaDx7fTgw25BP9L7nUJhxqo suBAKXABYv72FoxOo624jczA2BGIkzq/rUpTQWwH8PsPaoMMiv+U0Ij/RP/L5uPOxBMB i0pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GaoLL0Av; 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 y6-20020a05622a164600b003f869c6be6esi2326129qtj.402.2023.06.26.15.10.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2023 15:10:07 -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=GaoLL0Av; 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 1qDuMK-0003z2-87; Mon, 26 Jun 2023 18:06:56 -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 1qDuLN-0003BN-8I for qemu-devel@nongnu.org; Mon, 26 Jun 2023 18:06:04 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDuLJ-00071r-Cu for qemu-devel@nongnu.org; Mon, 26 Jun 2023 18:05:56 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-313e68e99c7so3466430f8f.1 for ; Mon, 26 Jun 2023 15:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687817151; x=1690409151; 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=/lZ58MHVs7VVcDhLDA+codKww1SNsRkU8Vn2ofdw4A8=; b=GaoLL0Av24FtXSfp1pDXtwYtHpzcPpIef97X4uobrcSHzsML1boLPKxWYeqUdHXEVw iUSXlF7V8UpZjO51vxa3nPuc8qywonSsTOYa/6wgnWBj5t0lpmk9nstj6MvXj5eZU92e TcTcpS7mOMrBSbyUucmQAneK/m75ZBntPrji8qqoAUbaFe7Dpx9qph0S2yeYqdzwDjBa C/cvGHK/m77xnyRaEwvAzYg/Lu6d2AFk+W8uzFHcmYH9FN/hI79vnouXxwv/RuvwmzLU +T2okMMxTRKEWS1BHsfRh1kuxWywJhf96Augt3H4ql6J48faqbOphnjFUeKrZpfQPMFt A33A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687817151; x=1690409151; 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=/lZ58MHVs7VVcDhLDA+codKww1SNsRkU8Vn2ofdw4A8=; b=VHanD11HFSTHcV5m2eia2y2/UdIMIuiRXUT3olSnh7aygj8XijJWnrr0EE2+RAt0U2 yspv4lh+5POGkgYh1e9x00B9hn9abj36dQV7FaIGuD92CBkWxXziAXu9dbGGdSZTeuj2 Dz+bCY1pDoVi34QT/8GG05RxBmlbQD7kEPybhA5JgdCjDRb2JFXxRJNH11nmEmWTaLvx eCCWEV155UFlbvmzk277JSNW53ul2hci15RGQeS1+mBvClbPawxMYhv3cBBaT17JsMXW l4HQCtr9TY7bR2Pj2YvAIpA9KweMl1uLFzKLKOtjZo46HmelzkQOMPkA1i/Tdk88jypf 2qRQ== X-Gm-Message-State: AC+VfDyz+6arzjgzgNphkApQ4t2NvRXlel3hYbCXjCnjtAj+8PqZDFgL 3AUCrnk/50/SNcXK1oBwNyT8gg== X-Received: by 2002:a05:6000:1949:b0:313:e161:d013 with SMTP id e9-20020a056000194900b00313e161d013mr6253303wry.15.1687817151622; Mon, 26 Jun 2023 15:05:51 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id n1-20020a5d4c41000000b0030ae499da59sm8423516wrt.111.2023.06.26.15.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 15:05:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 73D7E1FFCC; Mon, 26 Jun 2023 22:59:29 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Alexander Bulekov , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Juan Quintela , Alexandre Iooss , Thomas Huth , Marcel Apfelbaum , Leif Lindholm , Riku Voipio , Peter Maydell , Paolo Bonzini , Bandan Das , Leonardo Bras , Cleber Rosa , Richard Henderson , Beraldo Leal , =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Xu , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mahmoud Mandour , Stefan Hajnoczi , Yanan Wang , Eduardo Habkost , Bin Meng , qemu-arm@nongnu.org, Wainer dos Santos Moschetta , Darren Kenny , Radoslaw Biernacki , Marcin Juszkiewicz , Qiuhao Li , Laurent Vivier Subject: [PATCH v2 21/26] include/migration: mark vmstate_register() as a legacy function Date: Mon, 26 Jun 2023 22:59:21 +0100 Message-Id: <20230626215926.2522656-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230626215926.2522656-1-alex.bennee@linaro.org> References: <20230626215926.2522656-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.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=ham 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> --- include/migration/vmstate.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 084f5e784a..35579b2c1f 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -1209,7 +1209,14 @@ 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)