From: Bohdan Trach <bohdan.trach@mailbox.tu-dresden.de>
To: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: amit.shah@redhat.com, thomas.knauth@googlemail.com,
qemu-devel@nongnu.org, quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH RFC 2/3] memory: implement checkpoint handling
Date: Tue, 17 Nov 2015 16:38:11 +0100 [thread overview]
Message-ID: <564B49E3.6090805@mailbox.tu-dresden.de> (raw)
In-Reply-To: <20151116165621.GF2417@work-vm>
On 11/16/2015 05:56 PM, Dr. David Alan Gilbert wrote:
> Is anything in qemu/int128.h useful here?
> However, as mentioned in my previous follow up,
> I think you need something stronger than MD5 to stop collisions;
> sha256 seems appropriate and CPUs have acceleration instructions
> for it these days.
Ok, we will switch to the SHA256 hash from GnuTLS.
> You seem to do this trick of declaring and then defining a lot;
> if you need it only within a file then make it static and then you
> don't need the declaration unless you use it before it's definition.
> If you want to use it outside of this file then the declaration should
> be in a header.
Will fix this.
> I guess this stuff should be in migration/ram.c these days?
Yes, this code was written for 2.3 branch, and definitely needs
updating.
> Nice name; but if you're using a cute name make sure that you put
> a big comment to let people know what they're looking at!
Will fix this.
> This also makes it PC specific; what about everything else?
I believe if we switch to existing memory dump formats this restriction
will be removed.
>> + /* Ignore checkpoint file if size is different from VM's current memory size. */
>> + assert(sb.st_size == ram_size);
>
> Why does this matter? Can't you reuse the hash of pages that are at different
> locations in the stored file? e.g. a hash from an old/future boot of the same
> VM or one where the page got moved but unchanged?
Here we check if the size of the main memory block matches the
checkpoint. As we didn't use any format, we wanted to detect at least
some cases where a checkpoint from a different VM is passed to Qemu by
accident.
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
>
--
With best regards,
Bohdan Trach
next prev parent reply other threads:[~2015-11-17 15:38 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-17 12:12 [Qemu-devel] [PATCH RFC 0/3] Checkpoint-assisted migration proposal Bohdan Trach
2015-04-17 12:13 ` [Qemu-devel] [PATCH RFC 1/3] memory: Add dump-pc-mem command for checkpointing Bohdan Trach
2015-04-17 13:53 ` Eric Blake
2015-04-18 7:40 ` Bohdan Trach
2015-11-16 16:46 ` Dr. David Alan Gilbert
2015-11-17 15:38 ` Bohdan Trach
2015-11-17 16:02 ` Dr. David Alan Gilbert
2015-04-17 12:13 ` [Qemu-devel] [PATCH RFC 2/3] memory: implement checkpoint handling Bohdan Trach
2015-11-16 16:56 ` Dr. David Alan Gilbert
2015-11-17 15:38 ` Bohdan Trach [this message]
2015-04-17 12:13 ` [Qemu-devel] [PATCH RFC 3/3] migration: use checkpoint during migration Bohdan Trach
2015-11-17 12:26 ` Dr. David Alan Gilbert
2015-11-17 15:38 ` Bohdan Trach
2015-11-17 16:05 ` Dr. David Alan Gilbert
2015-11-17 16:34 ` Bohdan Trach
2015-11-17 16:39 ` Dr. David Alan Gilbert
2015-04-24 11:38 ` [Qemu-devel] [PATCH RFC, Ping 0/3] Checkpoint-assisted migration proposal Bohdan Trach
2015-05-11 11:13 ` Amit Shah
2015-06-09 10:00 ` Bohdan Trach
2015-08-19 9:19 ` Bohdan Trach
2015-09-15 10:39 ` [Qemu-devel] [PATCH RFC " Amit Shah
2015-10-05 8:33 ` Thomas Knauth
2015-10-05 8:59 ` Amit Shah
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=564B49E3.6090805@mailbox.tu-dresden.de \
--to=bohdan.trach@mailbox.tu-dresden.de \
--cc=amit.shah@redhat.com \
--cc=dgilbert@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=thomas.knauth@googlemail.com \
/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).