From: Paul Brook Subject: Re: [PATCH] ioemu/qemu vga: save and restore vram buffer (revised) Date: Mon, 17 Dec 2007 16:22:11 +0000 Message-ID: <200712171622.12475.paul@codesourcery.com> References: <18269.33299.414015.995882@mariner.uk.xensource.com> <18278.23285.98750.687170@mariner.uk.xensource.com> Reply-To: qemu-devel@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18278.23285.98750.687170@mariner.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Ian Jackson List-Id: xen-devel@lists.xenproject.org > In any case, vl.c's saving arrangements do save the buffer in > phys_ram_base - but that isn't what the guest sees in the VGA memory It doesn't matter what the guest physical mappings (if any) are. > area. The guest sees the vga memory-mapped IO registers (whose > meaning _is_ generally saved by vga.c), plus it can use the VGA memory > area and those control registers to access the whole of s->vram_ptr in > a bank-switched way. And it is that whole VGA memory buffer which is > `displayed' to (eg) vlc clients. If you look closer, you'll find that s->vram_ptr actually points to an offset from phys_ram_base. So the VGA framebuffer is already saved by ram_save. If the xen patches have changed this then you may need your patch. It has no business in mainstream qemu though. Paul