Patchwork [06/16] vga: port vmware std vga to vmstate

login
register
mail settings
Submitter Juan Quintela
Date Oct. 14, 2009, 5:34 p.m.
Message ID <aeeb378593fdb388ce2dd4db63a02abf9aa08b8f.1255541443.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/36005/
State New
Headers show

Comments

Juan Quintela - Oct. 14, 2009, 5:34 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/vmware_vga.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index a273f35..101d8ae 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -1131,7 +1131,7 @@  static void vmsvga_init(struct vmsvga_state_s *s, int vga_ram_size)
 #ifdef EMBED_STDVGA
     vga_common_init(&s->vga, vga_ram_size);
     vga_init(&s->vga);
-    register_savevm("vga", 0, 2, vga_common_save, vga_common_load, &s->vga);
+    vmstate_register(0, &vmstate_vga_common, &s->vga);
 #else
     s->vram_size = vga_ram_size;
     s->vram_offset = qemu_ram_alloc(vga_ram_size);