From: Avi Kivity Subject: Re: early_savevm Date: Sun, 18 Dec 2011 19:43:31 +0200 Message-ID: <4EEE2643.1070504@redhat.com> References: <1323467645-24271-1-git-send-email-anthony.perard@citrix.com> <1323467645-24271-6-git-send-email-anthony.perard@citrix.com> <4EE3382D.80903@web.de> <4EE609BF.1070307@siemens.com> <4EE617BA.4030102@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Stefano Stabellini Cc: Anthony Perard , Jan Kiszka , Xen Devel , QEMU-devel List-Id: xen-devel@lists.xenproject.org On 12/13/2011 01:55 PM, Stefano Stabellini wrote: > A bit more context to my suggestion: > > - we open the save state file and check the magic number and the > version number before machine->init(); > > - we add a new set of entries to the save state file that contains > early_savevm functions: they are called before machine->init(); > > - after reaching the end of the early_savevm functions we stop parsing > the save state file and we call machine->init(); > > - after machine->init() is completed we continue parsing the save state > file as usual. I think this is fragile. In the general case you can't describe the framebuffer BAR with just a single number, it may be partially obscured by another BAR. It's better to fix this behind the scenes. -- error compiling committee.c: too many arguments to function