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