From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUC2e-0005J9-A4 for qemu-devel@nongnu.org; Mon, 22 Apr 2013 04:24:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUC2c-0005GB-Vo for qemu-devel@nongnu.org; Mon, 22 Apr 2013 04:24:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUC2c-0005G6-OU for qemu-devel@nongnu.org; Mon, 22 Apr 2013 04:24:02 -0400 Message-ID: <5174EE00.1080109@redhat.com> Date: Mon, 22 Apr 2013 10:00:00 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1363816855.57243.YahooMailNeo@web125304.mail.ne1.yahoo.com> <1312741258.12539352.1363877601391.JavaMail.root@redhat.com> <20130405070637.GA27940@stefanha-thinkpad.redhat.com> <1365205925.11890.YahooMailNeo@web125301.mail.ne1.yahoo.com> <516BF1F1.70606@redhat.com> <1366304288.64685.YahooMailNeo@web125303.mail.ne1.yahoo.com> In-Reply-To: <1366304288.64685.YahooMailNeo@web125303.mail.ne1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Virtualbox svga card in KVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sriram Murthy Cc: qemu list On 04/18/13 18:58, Sriram Murthy wrote: > Some updates on this - I changed the PCI Device ID and Vendor ID in > hw/vga.c, and was able to get the VirtualBox SVGA card driver > installed in WinXP running on KVM. However, when I try to change the > resolution, KVM crashes with a SIGFPE in vbe_ioport_write_data(), and > this is due to line_offset being zero in this statement - > > h = s->vram_size / line_offset Also, I am seeing that the line_offset > is computed by reading the vbe_regs. So, is it that the driver in > the guest is programming the vbe regs?. Seems so, it crashes in a code path which actually writes to one of the vbe regs. > What should be the line_offset value, if the desired resolution is > 800x600? Regards, Sriram Depends on the desired depth. The guest didn't set the depth register though, thats why qemu is crashing ... Maybe virtualbox uses another register layout. cheers, Gerd