hw/ipmi: Don't call vmstate_register() from instance_init() functions
commit6436db5a609c16c57e50e525e45e2b88cf925fff
authorThomas Huth <thuth@redhat.com>
Fri, 20 Oct 2023 14:55:54 +0000 (20 16:55 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 1 Nov 2023 15:13:58 +0000 (1 16:13 +0100)
tree5f9d31bec9b4b2495151a17dc1611ffe261f1e6c
parent6c9ae1ce82b65faa3f266fd103729878cf11e07e
hw/ipmi: Don't call vmstate_register() from instance_init() functions

instance_init() can be called multiple times, e.g. during introspection
of the device. We should not install the vmstate handlers here. Do it
in the realize() function instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231020145554.662751-1-thuth@redhat.com>
hw/ipmi/ipmi_bmc_extern.c
hw/ipmi/isa_ipmi_bt.c
hw/ipmi/isa_ipmi_kcs.c