mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
migration: remove register_savevm()
We can replace the four remaining calls of register_savevm() by calls to register_savevm_live(). So we can remove the function and as we don't allocate anymore the ops pointer with g_new0() we don't have to free it then. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
199e19ee53
commit
1b6e748246
6 changed files with 25 additions and 32 deletions
|
@ -2262,6 +2262,11 @@ static const MemoryRegionOps b1_ops = {
|
|||
},
|
||||
};
|
||||
|
||||
static SaveVMHandlers savevm_vmxnet3_msix = {
|
||||
.save_state = vmxnet3_msix_save,
|
||||
.load_state = vmxnet3_msix_load,
|
||||
};
|
||||
|
||||
static uint64_t vmxnet3_device_serial_num(VMXNET3State *s)
|
||||
{
|
||||
uint64_t dsn_payload;
|
||||
|
@ -2331,8 +2336,7 @@ static void vmxnet3_pci_realize(PCIDevice *pci_dev, Error **errp)
|
|||
vmxnet3_device_serial_num(s));
|
||||
}
|
||||
|
||||
register_savevm(dev, "vmxnet3-msix", -1, 1,
|
||||
vmxnet3_msix_save, vmxnet3_msix_load, s);
|
||||
register_savevm_live(dev, "vmxnet3-msix", -1, 1, &savevm_vmxnet3_msix, s);
|
||||
}
|
||||
|
||||
static void vmxnet3_instance_init(Object *obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue