[Spice-devel] settings for qxl memory size

Alon Levy alevy at redhat.com
Tue Jan 15 01:26:08 PST 2013


On Thu, Jan 03, 2013 at 12:21:11PM +0100, Davide Canova wrote:
> I'm trying qxl with xen, qemu 1.3 and spice 0.12.2, and I get this error:
> Spice-CRITICAL **: red_memslots.c:123:get_virt: slot_id 194 too big,
> addr=c2c2c2c2c2c2c2c2

That's a bug in the driver/device/spice_server (but I guess driver &
device, i.e. qemu of xen), that address is way too big for anything, and
looks like garbage anyway. The slot id is taken from the first few bits
and is not a registered slot. The driver registers slots and all
QXLPHYSICAL addresses, like those in the commands that are pushed via
the command ring, have to match.

> 
> Is there any setting for the qxl memory size? I can't find any
> detailed and updated documentation about it.
> 
> I'm trying different settings to see if something changes, but it doesn't, e.g.
> device_model_args=["-global","qxl-vga.ram_size_mb=8","-global","qxl-vga.vram_size_mb=8","-global","vga.vgamem_size_mb=8"]

All of the above work, and also:
$ qemu-system-x86_64 -device qxl-vga,? 2>&1 | grep size
qxl-vga.ram_size=uint32
qxl-vga.vram_size=uint32
qxl-vga.ram_size_mb=uint32
qxl-vga.vram_size_mb=uint32
qxl-vga.vram64_size_mb=uint32


> 
> How can I find out the total videoram used, so that I can make xen
> reserve the right amount? My xen is patched for qxl. If I understand
> correctly the patch reserves 128 extra mb for the videoram and it sets
> -vga qxl.

I have no clue about the patched version, I don't use it and haven't
seen it, but there are two bars, called ram and vram in the command line
options, so the total memory is approximately (since there is also a
small io bar and a small rom bar, but they are negligble) the sum of
both. They default to 64MiB each. (MB is used to mean MiB everywhere in
the command line, i.e. ram_size_mb).

> 
> Thanks,
> DC
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list