[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PULL 01/17] migration: remove register_savevm()
From: |
Juan Quintela |
Subject: |
Re: [Qemu-ppc] [PULL 01/17] migration: remove register_savevm() |
Date: |
Wed, 07 Jun 2017 10:07:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Peter Maydell <address@hidden> wrote:
> On 6 June 2017 at 03:51, David Gibson <address@hidden> wrote:
>> From: Laurent Vivier <address@hidden>
>>
>> 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 <address@hidden>
>> Reviewed-by: Juan Quintela <address@hidden>
>> Signed-off-by: David Gibson <address@hidden>
>> ---
>> hw/net/vmxnet3.c | 8 ++++++--
>> hw/s390x/s390-skeys.c | 9 +++++++--
>> hw/s390x/s390-virtio-ccw.c | 8 ++++++--
>> include/migration/vmstate.h | 8 --------
>> migration/savevm.c | 16 ----------------
>> slirp/slirp.c | 8 ++++++--
>> 6 files changed, 25 insertions(+), 32 deletions(-)
>
> Great to see register_savevm() finally disappearing.
>
> Any chance of an update to docs/migration.txt, which still
> mentions register_savevm(), but on the other hand doesn't
> say anything about register_savevm_live() and unregister_savevm().
> (Doc comments in the .h file for those functions would be
> nice too...)
Ok, will take a look.
> Things that would be interesting to explain/document:
> * what is special about vmxnet3 that makes it the only pci device
> that needs to use this rather than having a vmstate struct?
Will take a look. vmxnet3 used to be a mess (in relation to migration).
> * why does s390-skeys call the register function with a NULL
> pointer but the unregister pointer with a device pointer?
No clue, will left that
> (Could we replace the uses of these which pass a dev pointer
> with vmstate structs and then drop the dev parameter?)
Not sure, have to take a look.
Thanks, Juan.
- [Qemu-ppc] [PULL 00/17] ppc-for-2.10 queue 20170606, David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 01/17] migration: remove register_savevm(), David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 07/17] target-ppc: Fix openpic timer read register offset, David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 12/17] spapr/drc: don't migrate DRC of cold-plugged CPUs and LMBs, David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 02/17] migration: Mark CPU states dirty before incoming migration/loadvm, David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 10/17] ppc/pnv: check the return value of fdt_setprop(), David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 09/17] spapr_nvram: Check return value from blk_getlength(), David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 04/17] spapr: Abolish DRC get_fdt method, David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 17/17] spapr: Remove some non-useful properties on DRC objects, David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 05/17] spapr: Abolish DRC set_configured method, David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 03/17] spapr: Move DRC RTAS calls into spapr_drc.c, David Gibson, 2017/06/05
- [Qemu-ppc] [PULL 08/17] target/ppc: Fixup set_spr error in h_register_process_table, David Gibson, 2017/06/05