vga: port vmware std vga to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-10-14 15:33:46 +02:00 committed by Anthony Liguori
parent b857ca4553
commit f74599c499

View File

@ -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);