Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuZ43-0004D9-L7 for qemu-devel@nongnu.org; Wed, 24 Mar 2010 18:28:39 -0400 Received: from [140.186.70.92] (port=39287 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuZ42-0004C4-Gs for qemu-devel@nongnu.org; Wed, 24 Mar 2010 18:28:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuZ40-0006Ap-Q6 for qemu-devel@nongnu.org; Wed, 24 Mar 2010 18:28:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47816) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuZ40-0006Al-Ir for qemu-devel@nongnu.org; Wed, 24 Mar 2010 18:28:36 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2OMSZMW028595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 24 Mar 2010 18:28:35 -0400 From: Juan Quintela In-Reply-To: <4BAA6B93.1090405@redhat.com> (Gerd Hoffmann's message of "Wed, 24 Mar 2010 20:44:19 +0100") References: <1269440070-26788-1-git-send-email-kraxel@redhat.com> <4BAA6B93.1090405@redhat.com> Date: Wed, 24 Mar 2010 23:28:34 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH] update bochs vbe interface List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Gerd Hoffmann wrote: > On 03/24/10 18:04, Juan Quintela wrote: >> Gerd Hoffmann wrote: >>> The bochs vbe interface got a new register a while back, which specifies >>> the linear framebuffer size in 64k units. This patch adds support for >>> the new register to qemu. With this patch applied vgabios 0.6c works >>> with qemu. >>> >>> Signed-off-by: Gerd Hoffmann >> >> It breaks migration. >> >> vga.c:2218: VMSTATE_UINT16_ARRAY(vbe_regs, VGACommonState, VBE_DISPI_INDEX_NB), > >> 2218 is the interesting line. Can we freeze this patch until the >> subsections stuff is done? > > Yea, I see. Well, the new register doesn't carry any state, it is > read-only information for the guest. So the easy way out is to simply > not save it as we don't have to. Thinking a bit more about it. Humm, I think it means. Can you migrate from a "new" vga to an old one, and maintain it working? - s->vbe_regs[VBE_DISPI_INDEX_ID] = VBE_DISPI_ID0; + s->vbe_regs[VBE_DISPI_INDEX_ID] = VBE_DISPI_ID5; + s->vbe_regs[VBE_DISPI_INDEX_VIDEO_MEMORY_64K] = s->vram_size / (64 * 1024); After migration, vbe_regs[VBE_DISPI_INDEX_ID] would have the value VBE_DISPI_ID5, but vbe_regs[VBE_DISPI_INDEX_VIDEO_MEMORY_64K] will have any random value, no? > > cheers, > Gerd