diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2010-06-25 11:09:07 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 10:36:28 -0500 |
commit | 0be71e324f774a77243f1a1487f468232d69542b (patch) | |
tree | f3ac4560e61b5874fd359da3ada9bd371c25efc4 /hw/eepro100.c | |
parent | 4f43c1ff3b8ce99de80db7c51423e5ba8b143802 (diff) |
savevm: Add DeviceState param
When available, we'd like to be able to access the DeviceState
when registering a savevm. For buses with a get_dev_path()
function, this will allow us to create more unique savevm
id strings.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r-- | hw/eepro100.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c index 97afa2cd9f..0ddca8b2c4 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -1834,7 +1834,7 @@ static int pci_nic_uninit(PCIDevice *pci_dev) EEPRO100State *s = DO_UPCAST(EEPRO100State, dev, pci_dev); cpu_unregister_io_memory(s->mmio_index); - vmstate_unregister(s->vmstate, s); + vmstate_unregister(&pci_dev->qdev, s->vmstate, s); eeprom93xx_free(s->eeprom); qemu_del_vlan_client(&s->nic->nc); return 0; @@ -1893,7 +1893,7 @@ static int e100_nic_init(PCIDevice *pci_dev) s->vmstate = qemu_malloc(sizeof(vmstate_eepro100)); memcpy(s->vmstate, &vmstate_eepro100, sizeof(vmstate_eepro100)); s->vmstate->name = s->nic->nc.model; - vmstate_register(-1, s->vmstate, s); + vmstate_register(&pci_dev->qdev, -1, s->vmstate, s); return 0; } |