hw/s390x/s390-stattrib: Don't call register_savevm_live() during instance_init()
authorThomas Huth <thuth@redhat.com>
Fri, 20 Oct 2023 15:05:54 +0000 (17:05 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 1 Nov 2023 15:13:58 +0000 (16:13 +0100)
commit832685707fbe52b2525974a100a240338998e544
treea2f54324dd043515dd53c193cdf21a0bf10df955
parentbc1bf2ae2f76d451126fb6a15f00d8a2cb9c4e76
hw/s390x/s390-stattrib: Don't call register_savevm_live() during instance_init()

We must not call register_savevm_live() from an instance_init() function
(since this could be called multiple times during device introspection).
Move this to the realize() function instead.

Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231020150554.664422-4-thuth@redhat.com>
hw/s390x/s390-stattrib.c