mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
savevm: Port to qdev.vmsd all devices that have qdev
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
70cca6d872
commit
be73cfe2be
26 changed files with 60 additions and 37 deletions
|
@ -82,7 +82,6 @@ static int pci_vga_initfn(PCIDevice *dev)
|
|||
// vga + console init
|
||||
vga_common_init(s, VGA_RAM_SIZE);
|
||||
vga_init(s);
|
||||
vmstate_register(0, &vmstate_vga_pci, d);
|
||||
|
||||
s->ds = graphic_console_init(s->update, s->invalidate,
|
||||
s->screen_dump, s->text_update, s);
|
||||
|
@ -134,6 +133,7 @@ int pci_vga_init(PCIBus *bus,
|
|||
static PCIDeviceInfo vga_info = {
|
||||
.qdev.name = "VGA",
|
||||
.qdev.size = sizeof(PCIVGAState),
|
||||
.qdev.vmsd = &vmstate_vga_pci,
|
||||
.init = pci_vga_initfn,
|
||||
.config_write = pci_vga_write_config,
|
||||
.qdev.props = (Property[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue