[Spice-devel] Does spice in xen-4.2.0 support QXL?

Qian Hu qianhu2011 at gmail.com
Fri Nov 23 00:28:24 PST 2012


2012/11/22 Fabio Fantoni <fabio.fantoni at heliman.it>

>  Il 22/11/2012 08:46, Qian Hu ha scritto:
>
> Hi, Fabio
>
>  Thank you for your advice! I have successfully added the patch to
> xen-4.2.0 and set the parameters as you said.
>
>  It works and the client seems to be better than before.
>
>  Still, there is a little problem that the screen is upside down when the
> win7 started, exactly the moment the four colorful blocks appeared.
>
>  After that, the client is stable and everything is OK. Have you run into
> the same problem?
>
>  huqian
>
>
> 2012/11/20 Fabio Fantoni <fabio.fantoni at heliman.it>
>
>>  Il 20/11/2012 09:29, Qian Hu ha scritto:
>>
>> Hi,
>>
>>  I have tried your patch with xen-4.2.0, but it shows "patch unexpected
>> ends in middle of line" at the end.
>>
>>  Is there any problem with that?
>>
>>  I can still compile xen and try to add
>> "device_model_args=["-device","qxl-vga"]" in the config file, but it didn't
>> work
>>
>>  with command "xl". The error message is as below, and the log says
>> "RAMBlock "vga.vram" already registered, abort!"
>>
>>  Did I miss something?
>>
>>  Thank you!
>>
>>  ----------------------error message-------------------------
>>  Parsing config from win7.cfg
>> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>>   Loader:        0000000000100000->000000000019bbc4
>>   TOTAL:         0000000000000000->0000000038000000
>>   ENTRY ADDRESS: 0000000000100000
>> xc: info: PHYSICAL MEMORY ALLOCATION:
>>   4KB PAGES: 0x0000000000000200
>>   2MB PAGES: 0x00000000000001bf
>>   1GB PAGES: 0x0000000000000000
>> libxl: error: libxl_dm.c:1217:device_model_spawn_outcome: domain 2 device
>> model: spawn failed (rc=-3)
>> libxl: error: libxl_qmp.c:641:libxl__qmp_initialize: Connection error:
>> Connection refused
>> Daemon running with PID 4468
>>
>>
>>
>> 2012/11/13 Fabio Fantoni <fabio.fantoni at heliman.it>
>>
>>>  Hi, everyone!
>>>>
>>>> I am doing research on remote connect with Xen. My host is Fedora 14
>>>> and my
>>>> guest is win7.
>>>>
>>>> I have installed spice package and now I can connect to my guest by
>>>> spice
>>>> client.
>>>>
>>>> Now I want to use QXL, but I don't know if it is supported by the spice
>>>> in
>>>> xen-4.2.0.
>>>>
>>>> Could anyone help me?
>>>>
>>>> Thank you!
>>>>
>>>> huqian
>>>>
>>> QXL support in xen is planned for 4.3, you can add manually the actual
>>> patch for add it, see attachment.
>>> I tried it many times, months ago was working but xorg on linux domU not
>>> started and on windows domU had blu screen refered to qxl driver, recently
>>> starting domU with spice and qxl caused qemu crash with this error on log:
>>> (/usr/sbin/xl:3463): Spice-CRITICAL **: red_memslots.c:123:get_virt:
>>> slot_id 194 too big, addr=c2c2c2c2c2c2c2c2
>>>
>>> Some details on one of my latest test:
>>> http://lists.xen.org/archives/html/xen-devel/2012-10/msg01820.html
>>> Already reported 2 times (on xen) but no reply, I not know if is xen,
>>> qemu and/or spice problem.
>>> Is now a year I try to have spice with qxlrunning on xen, I have done
>>> numerous tests and reports, some bugs/changes on xen and qemu have been
>>> made, but are not yet sufficient to have qxl functioning as of kvm:(
>>> If someone solve this problem can tell me how please?
>>> Thanks for any reply and sorry for bad english
>>>
>>>
>>   "patch unexpected ends in middle of line" at the end is not a problem,
>> you can continue to build xen, about xl configuration file remove
>> device_model_args, videoram, set vnc=0, qxl=1 and other spice parameters
>> you need
>>
>
>  I have different problem, critical with qxl and no problem except
> graphic performance without qxl.
> Can you tell me if you have installer GPLPV driver and/or
> spice-guest-tools-0.2.exe and what write your actual domU configuration
> file please?
>

Hi,

Instead of GPLPV driver or spice-guest-tools-0.2.exe,  I use es1370 driver
to help to finish the installation automatically.

My config file is as below:


# =====================================================================
# Example HVM guest configuration
# =====================================================================
#
# This is a fairly minimal example of what is required for an
# HVM guest. For a more complete guide see xl.cfg(5)

# This configures an HVM rather than PV guest
builder = "hvm"

# Guest name
name = "win7"

device_model_version ="qemu-xen"
device_model_override="/usr/lib/xen/bin/qemu-system-i386"

# 128-bit UUID for the domain as a hexadecimal number.
# Use "uuidgen" to generate one if required.
# The default behavior is to generate a new UUID each time the guest is
started.
#uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

# Enable Microsoft Hyper-V compatibile paravirtualisation /
# enlightenment interfaces. Turning this on can improve Windows guest
# performance and is therefore recommended
#viridian = 1

# Initial memory allocation (MB)
memory = 1024

# Maximum memory (MB)
# If this is greater than `memory' then the slack will start ballooned
# (this assumes guest kernel support for ballooning)
#maxmem = 512

# Number of VCPUS
vcpus = 2

# Network devices
# A list of 'vifspec' entries as described in
# docs/misc/xl-network-configuration.markdown
vif = [ 'type=ioemu, mac=00:16:3E:*:*:*,bridge=br0']

# Disk Devices
# A list of `diskspec' entries as described in
# docs/misc/xl-disk-configuration.txt
disk = [ '/root/win7.img,raw,hda,rw' ]

# Guest VGA console configuration, either SDL or VNC
sdl = 0
#vnc = 1
#vnclisten="0.0.0.0"
stdvga=0
spice=1
spicehost='10.10.*.*'
spiceport=6000
spicedisable_ticketing=1
stdvga=0
#videoram=128
#device_model_args=["-device","qxl-vga"]

#hap=1
pae=1
acpi=1
apic=1
nx=1
xen_platform_pci=1
usbdevice='tablet'
qxl=1
audio=1
soundhw='es1370'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20121123/2215e7f8/attachment.html>


More information about the Spice-devel mailing list