[Spice-devel] support for hires modes

David Mansfield spice at dm.cobite.com
Tue Jan 11 11:52:52 PST 2011


Hi!

I've been trying out spice on fedora 14 x86_64.  I have an F14 guest
that I configured to test things out.  Things look really promising.

The first stumbling block is getting "native" full-screen to work.
Because my monitor is 1900x1200 I had to apply this to qemu and rebuild
the RPM, or else the max res is stuck at 1900x1080.

diff --exclude='*~' -ur qemu-kvm-0.13.0.orig/hw/qxl.c qemu-kvm-0.13.0/hw/qxl.c
--- qemu-kvm-0.13.0.orig/hw/qxl.c       2010-12-23 10:53:10.911433714 -0500
+++ qemu-kvm-0.13.0/hw/qxl.c    2010-12-23 10:53:42.424518286 -0500
@@ -83,6 +83,7 @@
     QXL_MODE_EX(1600, 1200),
     QXL_MODE_EX(1680, 1050),
     QXL_MODE_EX(1920, 1080),
+#define QXL_HIRES_MODES
 #ifdef QXL_HIRES_MODES
     QXL_MODE_EX(1920, 1200),
     QXL_MODE_EX(1920, 1440),


After this, the display freezes or crashes randomly and I see a lot of:

handle_dev_input: oom current 0 pipe 0

Is there a way to get hires modes to work properly?  Do I have to change
some other setting as well?

Maybe there's not enough "vram" in the QXL side?  Not sure how I would
go about tweaking any of this.

If I can get this to work, next stop is dual head support, my desktop is
actually 2x1900x1200.

By the way, I'm using this to launch the VM (which is derived from the
command line used by libvirtd for launching):

/usr/bin/qemu-kvm \
    -M pc-0.13 \
    -enable-kvm \
    -m 1024 \
    -smp 1,sockets=1,cores=1,threads=1 \
    -name shire \
    -uuid a5119366-f42b-f7f1-09f7-5423a5d14601 \
    -drive file=/var/lib/libvirt/images/shire.img,if=none,id=drive-virtio-disk0,boot=on,format=raw \
    -device virtio-blk-pci,bus=pci.0,drive=drive-virtio-disk0,id=virtio-disk0 \
    \
    -usbdevice tablet \
    -vga qxl \
    -spice port=5930,disable-ticketing \
    -device virtio-serial \
    -device spicevmc,subtype=vdagent 


I do have the agent running and presumably working in the guest too,
BTW.




More information about the Spice-devel mailing list