[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 21/26] include/migration: mark vmstate_register() as a legacy
From: |
Alex Bennée |
Subject: |
[PATCH v2 21/26] include/migration: mark vmstate_register() as a legacy function |
Date: |
Mon, 26 Jun 2023 22:59:21 +0100 |
Mention that QOM-ified devices already have support for registering
the description.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
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)
--
2.39.2
- Re: [PATCH v2 06/26] qemu-keymap: properly check return from xkb_keymap_mod_get_index, (continued)
- [PATCH v2 10/26] Makefile: add lcitool-refresh to UNCHECKED_GOALS, Alex Bennée, 2023/06/26
- [PATCH v2 14/26] tests/lcitool: introduce qemu-minimal, Alex Bennée, 2023/06/26
- [PATCH v2 07/26] scripts/oss-fuzz: add a suppression for keymap, Alex Bennée, 2023/06/26
- [PATCH v2 12/26] tests/lcitool: Bump fedora container versions, Alex Bennée, 2023/06/26
- [PATCH v2 19/26] plugins: update lockstep to use g_memdup2, Alex Bennée, 2023/06/26
- [PATCH v2 16/26] tests/avocado: update firmware to enable sbsa-ref/max, Alex Bennée, 2023/06/26
- [PATCH v2 15/26] tests/docker: convert riscv64-cross to lcitool, Alex Bennée, 2023/06/26
- [PATCH v2 05/26] tests/tcg: add mechanism to handle plugin arguments, Alex Bennée, 2023/06/26
- [PATCH v2 13/26] tests/lcitool: add an explicit gcc-native package, Alex Bennée, 2023/06/26
- [PATCH v2 21/26] include/migration: mark vmstate_register() as a legacy function,
Alex Bennée <=
- [PATCH v2 24/26] docs/devel: split qom-api reference into new file, Alex Bennée, 2023/06/26
- [PATCH v2 25/26] docs/devel: introduce some key concepts for QOM development, Alex Bennée, 2023/06/26
- [PATCH v2 22/26] include/hw/qdev-core: fixup kerneldoc annotations, Alex Bennée, 2023/06/26
- [PATCH v2 23/26] docs/devel/qom.rst: Correct code style, Alex Bennée, 2023/06/26
- [PATCH v2 26/26] tests/plugin: Remove duplicate insn log from libinsn.so, Alex Bennée, 2023/06/26
- [PATCH v2 20/26] docs/devel: add some front matter to the devel index, Alex Bennée, 2023/06/26
- [PATCH v2 18/26] plugins: fix memory leak while parsing options, Alex Bennée, 2023/06/26
- [PATCH v2 17/26] plugins: force slow path when plugins instrument memory ops, Alex Bennée, 2023/06/26