qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] vmstate_save_state
@ 2017-05-06 11:33 ali saeedi
  2017-05-08  8:51 ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 2+ messages in thread
From: ali saeedi @ 2017-05-06 11:33 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] vmstate_save_state
  2017-05-06 11:33 [Qemu-devel] vmstate_save_state ali saeedi
@ 2017-05-08  8:51 ` Dr. David Alan Gilbert
  0 siblings, 0 replies; 2+ messages in thread
From: Dr. David Alan Gilbert @ 2017-05-08  8:51 UTC (permalink / raw)
  To: ali saeedi; +Cc: qemu-devel

* ali saeedi (ali.saeedi56@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 / dgilbert@redhat.com / Manchester, UK

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-08  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-06 11:33 [Qemu-devel] vmstate_save_state ali saeedi
2017-05-08  8:51 ` Dr. David Alan Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).