* [Qemu-devel] Question in savevm.c
@ 2014-03-13 11:05 Veronia Bahaa
2014-03-13 12:19 ` Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Veronia Bahaa @ 2014-03-13 11:05 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
Hello, i need help in understanding the qemu_loadvm_state function
1- I don't get what QEMU_SECTION_START, FULL, END, PART are. I know they
are hexadecimal numbers but i don't get the meaning.
2- what's the difference between LoadStateEntry and SaveStateEntry?
Thanks!
[-- Attachment #2: Type: text/html, Size: 957 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Question in savevm.c
2014-03-13 11:05 [Qemu-devel] Question in savevm.c Veronia Bahaa
@ 2014-03-13 12:19 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2014-03-13 12:19 UTC (permalink / raw)
To: Veronia Bahaa; +Cc: QEMU Developers
On 13 March 2014 11:05, Veronia Bahaa <veroniabahaa@gmail.com> wrote:
> Hello, i need help in understanding the qemu_loadvm_state function
> 1- I don't get what QEMU_SECTION_START, FULL, END, PART are. I know they are
> hexadecimal numbers but i don't get the meaning.
They're part of the file/stream format for migration data.
The stream is split into sections of various types; each
section starts with one of these type codes to tell the
incoming side what to expect next. I don't think we document
the migration stream format, so you'll have to work it out
from the source code.
> 2- what's the difference between LoadStateEntry and SaveStateEntry?
A SaveStateEntry contains the information about how to
save or load a section of migration data (roughly speaking).
When we are loading migration data we look for the
SaveStateEntry corresponding to the section ID for the
section we've just started reading, and ask it to load
the data for us.
A LoadStateEntry is just a SaveStateEntry plus a place
to store section_id and version_id; we use this data
structure on loading so that when a later section in
the stream refers to a section ID we can get at the
SaveStateEntry for it (or give an error if we haven't
seen that ID before). See the code in qemu_loadvm_state.
(Very rough summary; read the code for more detail.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-13 12:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13 11:05 [Qemu-devel] Question in savevm.c Veronia Bahaa
2014-03-13 12:19 ` Peter Maydell
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).