[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] vmstate_save_state
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [Qemu-devel] vmstate_save_state |
Date: |
Mon, 8 May 2017 09:51:30 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
* ali saeedi (address@hidden) 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 / address@hidden / Manchester, UK