migration: fix dump-vmstate with modules
commit4067691a2fed9a7639b1264b07c131d8e11f2b4f
authorLaurent Vivier <lvivier@redhat.com>
Tue, 16 Nov 2021 07:28:40 +0000 (16 08:28 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 22 Nov 2021 10:14:28 +0000 (22 11:14 +0100)
tree3f092e04afc78390a2e07702968758fb87752999
parent2e572baf659f5a457c876c6b2d02a217afb401c5
migration: fix dump-vmstate with modules

To work correctly -dump-vmstate and vmstate-static-checker.py need to
dump all the supported vmstates.

But as some devices can be modules, they are not loaded at startup and not
dumped. Fix that by loading all available modules before dumping the
machine vmstate.

Fixes: 7ab6e7fcce97 ("qdev: device module support")
Cc: kraxel@redhat.com
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211116072840.132731-1-lvivier@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
softmmu/vl.c