From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: ali saeedi <ali.saeedi56@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] vmstate_save_state
Date: Mon, 8 May 2017 09:51:30 +0100 [thread overview]
Message-ID: <20170508085130.GD2446@work-vm> (raw)
In-Reply-To: <CAGKXQyfu6_wHmXiJZ2_19BpCkGJ60twdHQ74MV9=up7v-co1Jg@mail.gmail.com>
* 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
prev parent reply other threads:[~2017-05-08 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-06 11:33 [Qemu-devel] vmstate_save_state ali saeedi
2017-05-08 8:51 ` Dr. David Alan Gilbert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170508085130.GD2446@work-vm \
--to=dgilbert@redhat.com \
--cc=ali.saeedi56@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).