qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH 0/4] Machine config files


From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: [PATCH 0/4] Machine config files
Date: Mon, 06 Jul 2009 18:13:26 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Paul Brook wrote:
Most importantly, machine config should not be sent until non-live
migration kicks in.  At this point, the device tree is stable because
the guest isn't running.  The device tree should be the first section
saved for non-live migration.

RAM is part of the machine config, and can be hotplugged[1], so you need at least that before you start transferring anything.

You really don't. The ram_load_live handler should receive RAM as it comes in and maintain a growable buffer for all the independently transferred regions. A nice property of live migration is that you'll get the whole region at once so something simple based on realloc() will work well.

When it comes time to create the virtual machine, you have memory buffers ready to be used as the guest's memory. If it's not sized appropriately, you throw an error and migration aborts.

Regards,

Anthony Liguori




reply via email to

[Prev in Thread] Current Thread [Next in Thread]