OSDN Git Service

ramfb: add migration support
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 9 Oct 2023 06:32:45 +0000 (10:32 +0400)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (10:10 +0200)
commit303c33e606f629c7467b457a19c53698b114ee0f
tree169ee41df5388ce4b3f80bc54141af3d579cfe60
parentc0f527f4cc6659f55279f7d774dd804a1504a401
ramfb: add migration support

Implementing RAMFB migration is quite straightforward. One caveat is to
treat the whole RAMFBCfg as a blob, since that's what is exposed to the
guest directly. This avoid having to fiddle with endianness issues if we
were to migrate fields individually as integers.

The devices using RAMFB will have to include ramfb_vmstate in their
migration description.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/display/ramfb.c
include/hw/display/ramfb.h