* ali saeedi (ali.saeed...@gmail.com) wrote:
> what does "vmstate_save_state(f, &vmstate_configuration, &savevm_state, 0)"
> function call do in "qemu_savevm_state_header" function in savevm.c at line
> 968 ?
> why has "savevm_state" been passed to this function?
> thanks a lot

vmstate_save_state serialises a data structure to the migration stream
using a description.  In this case it's saving some of the data in
'savevm_state' using 'vmstate_configuration'.  If you follow
the two you can see that 'savevm_state' is of type 'SaveState'.
If you look at 'vmstate_configuration' it defines that two fields
from that strcture are saved 'len' and 'name' and also the
target_page_bits fields.

Dave

--
Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Reply via email to