aboutsummaryrefslogtreecommitdiff
path: root/backends/tpm
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-20 11:07:20 +0200
committerJuan Quintela <quintela@redhat.com>2023-11-01 16:13:58 +0100
commit99b16e8ee4789432cc543fde45902796385713c0 (patch)
tree1b2344f95efa0ff7cea5727c6e2990044c95bf0a /backends/tpm
parent71daf640d91d49a784ead059c9021070a2107008 (diff)
downloadqemu-99b16e8ee4789432cc543fde45902796385713c0.zip
qemu-99b16e8ee4789432cc543fde45902796385713c0.tar.gz
qemu-99b16e8ee4789432cc543fde45902796385713c0.tar.bz2
migration: Use vmstate_register_any()
This are the easiest cases, where we were already using VMSTATE_INSTANCE_ID_ANY. Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231020090731.28701-3-quintela@redhat.com>
Diffstat (limited to 'backends/tpm')
-rw-r--r--backends/tpm/tpm_emulator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/tpm/tpm_emulator.c b/backends/tpm/tpm_emulator.c
index bf1a90f..f7f1b4a 100644
--- a/backends/tpm/tpm_emulator.c
+++ b/backends/tpm/tpm_emulator.c
@@ -975,8 +975,7 @@ static void tpm_emulator_inst_init(Object *obj)
qemu_add_vm_change_state_handler(tpm_emulator_vm_state_change,
tpm_emu);
- vmstate_register(NULL, VMSTATE_INSTANCE_ID_ANY,
- &vmstate_tpm_emulator, obj);
+ vmstate_register_any(NULL, &vmstate_tpm_emulator, obj);
}
/*