diff options
author | Juan Quintela <quintela@redhat.com> | 2009-12-02 12:36:46 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 10:05:58 -0600 |
commit | be73cfe2be9a41de4f97e4847b3f12a7d6d61159 (patch) | |
tree | 83419da906307e90aea6146c88f405aeeb32cf7d /hw/e1000.c | |
parent | 70cca6d87261f3ab330e2be34fbe9596b13342ae (diff) | |
download | qemu-be73cfe2be9a41de4f97e4847b3f12a7d6d61159.zip qemu-be73cfe2be9a41de4f97e4847b3f12a7d6d61159.tar.gz qemu-be73cfe2be9a41de4f97e4847b3f12a7d6d61159.tar.bz2 |
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>
Diffstat (limited to 'hw/e1000.c')
-rw-r--r-- | hw/e1000.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1051,7 +1051,6 @@ pci_e1000_uninit(PCIDevice *dev) cpu_unregister_io_memory(d->mmio_index); qemu_del_vlan_client(&d->nic->nc); - vmstate_unregister(&vmstate_e1000, d); return 0; } @@ -1121,8 +1120,6 @@ static int pci_e1000_init(PCIDevice *pci_dev) qemu_format_nic_info_str(&d->nic->nc, macaddr); - vmstate_register(-1, &vmstate_e1000, d); - if (!pci_dev->qdev.hotplugged) { static int loaded = 0; if (!loaded) { @@ -1144,6 +1141,7 @@ static PCIDeviceInfo e1000_info = { .qdev.desc = "Intel Gigabit Ethernet", .qdev.size = sizeof(E1000State), .qdev.reset = qdev_e1000_reset, + .qdev.vmsd = &vmstate_e1000, .init = pci_e1000_init, .exit = pci_e1000_uninit, .qdev.props = (Property[]) { |