From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J1nun-0006MM-PH for qemu-devel@nongnu.org; Mon, 10 Dec 2007 14:03:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J1num-0006LO-74 for qemu-devel@nongnu.org; Mon, 10 Dec 2007 14:03:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1nul-0006L8-Mv for qemu-devel@nongnu.org; Mon, 10 Dec 2007 14:03:40 -0500 Received: from ug-out-1314.google.com ([66.249.92.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J1nul-0004Ly-Gg for qemu-devel@nongnu.org; Mon, 10 Dec 2007 14:03:39 -0500 Received: by ug-out-1314.google.com with SMTP id m2so12557uge.4 for ; Mon, 10 Dec 2007 11:03:36 -0800 (PST) Message-ID: Date: Mon, 10 Dec 2007 20:03:35 +0100 From: "andrzej zaborowski" Subject: Re: [Qemu-devel] [PATCH] ioemu/qemu vga: save and restore vram buffer In-Reply-To: <18269.33299.414015.995882@mariner.uk.xensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18269.33299.414015.995882@mariner.uk.xensource.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com On 10/12/2007, Ian Jackson wrote: > The existing stdvga driver from xen-unstable tools/ioemu/hw/vga* does > not save the emulated VGA memory contents. The symptoms include video > malfunction after restore, including black screen (which can often be > fixed by asking the guest to redraw) but also missing font setup etc. > The attached patch fixes this by saving the entire VGA memory buffer, > just like the Xen ioemu Cirrus emulator does. Sounds reasonable. > > I have reinterpreted the `is_vbe' byte, which is related to > CONFIG_BOCHS_VBE, as a general flags word. This enables my code to > allow old images to be restored (albeit with loss of VGA memory), by > using another bit in that word to indicate whether the VGA memory dump > is present. You can use the version_id parameter for that. Increase the value passed to register_savevm and load the vram only if version_id >= 2. Regards