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: Avi Kivity
Subject: Re: [Qemu-devel] Re: [PATCH 0/4] Machine config files
Date: Tue, 07 Jul 2009 08:23:46 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2

On 07/07/2009 02:13 AM, Anthony Liguori wrote:

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.


One nasty bit here is large page support. We need to know memory layout in advance so we can migrate to appropriately allocated and aligned sections.

realloc()s could work, but they'd be slow (seconds) on large guests, and you're not guaranteed to have enough memory.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.





reply via email to

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