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 07:56:04 +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/06/2009 08:28 PM, Anthony Liguori wrote:
Avi Kivity wrote:

That alone will *not* provide the position in the device tree though. And I suspect making the transition without breaking backward compatibility could be quite tricky too. So I'm not sure how useful that actually is, although it surely would be much cleaner from a design point of view.

I think we need to break the format. It's semi-broken anyway wrt hotplug and the use of ram addresses. It may be possible to add transition code but I don't think it's worth it.

The format is fine. ram v3 uses ram_addr_t because it's was the only sane thing to do at the time. v4 could easily use target_phys_t.

IMO the flat format currently used is fragile wrt. hotplug, as is the requirement to start qemu with exactly the same parameters. If we serialize the state from the current qdev configuration we don't depend on any implementation ordering.

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.

Memory layout depends on the machine configuration. RAM, hotplug RAM, and framebuffers. It would get worse if more components migrate live (disks?).

--
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]