Unable to get QXL vga working

classic Classic list List threaded Threaded
32 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Unable to get QXL vga working

Fantu
Dom0:
Wheezy 64 bit with kernel from package linux-image-3.2.0-2-amd64 version 3.2.15-1, package blktap-dkms and all dependency packages for xen, spice and usb redirection.
-------------------------
/etc/modules
------------
loop max_loop=64
xenfs
xen-evtchn
blktap
-------------------------
hg clone http://xenbits.xen.org/xen-unstable.hg (in this build changeset is 25249:a4e7fce6ee2b)
vi Makefile # removed dist-kernel to not compile kernel
-------------------------
vi Config.mk # qemu upstream unstable and seabios upstream unstable for various spice and qxl bugfix
------------
QEMU_UPSTREAM_URL ?= git://git.qemu.org/qemu.git
SEABIOS_UPSTREAM_URL ?= git://git.seabios.org/seabios.git
SEABIOS_UPSTREAM_TAG ?= rel-1.7.0
-------------------------
Added some patches:
- autoconf: add variable for pass arbitrary options to qemu upstream v3
- tools: Improve make deb
-------------------------
./configure --enable-qemuu-spice --enable-qemuu-usbredir --enable-qemuu-debug
-------------------------
make deb

Tested it on Windows XP domU with this xl configuration file:
-------------------------------
XP.cfg
---------
name='XP'
builder="hvm"
memory=1024
vcpus=2
hap=1
pae=1
acpi=1
apic=1
nx=1
vif=['bridge=xenbr0']
#vfb=['vnc=1,vncunused=1,vnclisten=0.0.0.0,keymap=it']
#disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw',',raw,hdb,ro,cdrom']
disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw']
boot='cd'
xen_platform_pci=1
viridian=1
device_model_version="qemu-xen"
#device_model_override="/usr/lib/xen/bin/qemu-debug.sh"
#vnc=1
#vncunused=1
#vnclisten="0.0.0.0"
#keymap="it"
spice=1
spicehost="0.0.0.0"
spiceport=6000
spicedisable_ticketing=1
on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"
stdvga=1
#device_model_args=["-vga qxl -global qxl-vga.vram_size_mb=16"]
#videoram=128
#device_model_args=["-vga qxl"]
-------------------------------
With stdvga option domU is working but graphic performance is poor with spice.


With QXL vga option domU
-------------------------------
videoram=128
device_model_args=["-vga qxl"]
stdvga=0
-------------------------------
DomU not start, from qemu log:
qemu-system-i386: -vga qxl: invalid option

But the option is correct and if I add:
device_model_override="/usr/lib/xen/bin/qemu-debug.sh"

qemu-debug.sh launches the same qemu-system-i386 with same options and domU starts.
DomU sees the QXL vga but only with 4 mb allocated and/or usabled instead of 64 mb of qemu default.

We need domUs with good graphic performance, also with high resolution and also multimedia.
We can not use gfx passthrough on our dom0s because of hardware limitation of dell server.
QXL seems to be the only way to go.

We are testing this setup several months without success on xen.
Some initial xl and qemu ram/videoram bugs are now fixed but may be there are other in xen not found for now.

We noticed one particular thing:

without qxl:
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000019dc88
  TOTAL:         0000000000000000->000000003f800000
  ENTRY ADDRESS: 0000000000100000

with qxl:
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000019dc88
  TOTAL:         0000000000000000->0000000038000000
  ENTRY ADDRESS: 0000000000100000

The total memory with qxl should be equal or major than total memory without qxl.
There is something wrong about videoram, i don't know if in xl or other part of xen.

Please someone help me to solve this problem?
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Ian Campbell-10
CCing Zhou Peng who originally added spice support to xl. Zhou, are you
interested in supporting this feature?

On Thu, 2012-04-26 at 16:23 +0100, Fantu wrote:

> Dom0:
> Wheezy 64 bit with kernel from package linux-image-3.2.0-2-amd64 version
> 3.2.15-1, package blktap-dkms and all dependency packages for xen, spice and
> usb redirection.
> -------------------------
> /etc/modules
> ------------
> loop max_loop=64
> xenfs
> xen-evtchn
> blktap
> -------------------------
> hg clone http://xenbits.xen.org/xen-unstable.hg (in this build changeset is
> 25249:a4e7fce6ee2b)
> vi Makefile # removed dist-kernel to not compile kernel
> -------------------------
> vi Config.mk # qemu upstream unstable and seabios upstream unstable for
> various spice and qxl bugfix
> ------------
> QEMU_UPSTREAM_URL ?= git://git.qemu.org/qemu.git
> SEABIOS_UPSTREAM_URL ?= git://git.seabios.org/seabios.git
> SEABIOS_UPSTREAM_TAG ?= rel-1.7.0
> -------------------------
> Added some patches:
> - autoconf: add variable for pass arbitrary options to qemu upstream v3
> - tools: Improve make deb
> -------------------------
> ./configure --enable-qemuu-spice --enable-qemuu-usbredir
> --enable-qemuu-debug
> -------------------------
> make deb
>
> Tested it on Windows XP domU with this xl configuration file:
> -------------------------------
> XP.cfg
> ---------
> name='XP'
> builder="hvm"
> memory=1024
> vcpus=2
> hap=1
> pae=1
> acpi=1
> apic=1
> nx=1
> vif=['bridge=xenbr0']
> #vfb=['vnc=1,vncunused=1,vnclisten=0.0.0.0,keymap=it']
> #disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw',',raw,hdb,ro,cdrom']
> disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw']
> boot='cd'
> xen_platform_pci=1
> viridian=1
> device_model_version="qemu-xen"
> #device_model_override="/usr/lib/xen/bin/qemu-debug.sh"
> #vnc=1
> #vncunused=1
> #vnclisten="0.0.0.0"
> #keymap="it"
> spice=1
> spicehost="0.0.0.0"
> spiceport=6000
> spicedisable_ticketing=1
> on_poweroff="destroy"
> on_reboot="restart"
> on_crash="destroy"
> stdvga=1
> #device_model_args=["-vga qxl -global qxl-vga.vram_size_mb=16"]
> #videoram=128
> #device_model_args=["-vga qxl"]
> -------------------------------
> With stdvga option domU is working but graphic performance is poor with
> spice.
>
>
> With QXL vga option domU
> -------------------------------
> videoram=128
> device_model_args=["-vga qxl"]
> stdvga=0
> -------------------------------
> DomU not start, from qemu log:
> qemu-system-i386: -vga qxl: invalid option
>
> But the option is correct and if I add:
> device_model_override="/usr/lib/xen/bin/qemu-debug.sh"
>
> qemu-debug.sh launches the same qemu-system-i386 with same options and domU
> starts.
> DomU sees the QXL vga but only with 4 mb allocated and/or usabled instead of
> 64 mb of qemu default.
>
> We need domUs with good graphic performance, also with high resolution and
> also multimedia.
> We can not use gfx passthrough on our dom0s because of hardware limitation
> of dell server.
> QXL seems to be the only way to go.
>
> We are testing this setup several months without success on xen.
> Some initial xl and qemu ram/videoram bugs are now fixed but may be there
> are other in xen not found for now.
>
> We noticed one particular thing:
>
> without qxl:
> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>   Loader:        0000000000100000->000000000019dc88
>   TOTAL:         0000000000000000->000000003f800000
>   ENTRY ADDRESS: 0000000000100000
>
> with qxl:
> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>   Loader:        0000000000100000->000000000019dc88
>   TOTAL:         0000000000000000->0000000038000000
>   ENTRY ADDRESS: 0000000000100000
>
> The total memory with qxl should be equal or major than total memory without
> qxl.
> There is something wrong about videoram, i don't know if in xl or other part
> of xen.
>
> Please someone help me to solve this problem?
>
> --
> View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5667919.html
> Sent from the Xen - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> Xen-devel mailing list
> [hidden email]
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Zhou Peng
Hi Fantu,

Thanks for your response.

xl doesn't support qxl-related option at the moment.
I will test upstream-qemu-xen these days, and if it works well
with qxl device, I will be glad to add qxl support to xl.

Best,

On Thu, Apr 26, 2012 at 11:39 PM, Ian Campbell <[hidden email]> wrote:

> CCing Zhou Peng who originally added spice support to xl. Zhou, are you
> interested in supporting this feature?
>
> On Thu, 2012-04-26 at 16:23 +0100, Fantu wrote:
>> Dom0:
>> Wheezy 64 bit with kernel from package linux-image-3.2.0-2-amd64 version
>> 3.2.15-1, package blktap-dkms and all dependency packages for xen, spice and
>> usb redirection.
>> -------------------------
>> /etc/modules
>> ------------
>> loop max_loop=64
>> xenfs
>> xen-evtchn
>> blktap
>> -------------------------
>> hg clone http://xenbits.xen.org/xen-unstable.hg (in this build changeset is
>> 25249:a4e7fce6ee2b)
>> vi Makefile # removed dist-kernel to not compile kernel
>> -------------------------
>> vi Config.mk # qemu upstream unstable and seabios upstream unstable for
>> various spice and qxl bugfix
>> ------------
>> QEMU_UPSTREAM_URL ?= git://git.qemu.org/qemu.git
>> SEABIOS_UPSTREAM_URL ?= git://git.seabios.org/seabios.git
>> SEABIOS_UPSTREAM_TAG ?= rel-1.7.0
>> -------------------------
>> Added some patches:
>> - autoconf: add variable for pass arbitrary options to qemu upstream v3
>> - tools: Improve make deb
>> -------------------------
>> ./configure --enable-qemuu-spice --enable-qemuu-usbredir
>> --enable-qemuu-debug
>> -------------------------
>> make deb
>>
>> Tested it on Windows XP domU with this xl configuration file:
>> -------------------------------
>> XP.cfg
>> ---------
>> name='XP'
>> builder="hvm"
>> memory=1024
>> vcpus=2
>> hap=1
>> pae=1
>> acpi=1
>> apic=1
>> nx=1
>> vif=['bridge=xenbr0']
>> #vfb=['vnc=1,vncunused=1,vnclisten=0.0.0.0,keymap=it']
>> #disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw',',raw,hdb,ro,cdrom']
>> disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw']
>> boot='cd'
>> xen_platform_pci=1
>> viridian=1
>> device_model_version="qemu-xen"
>> #device_model_override="/usr/lib/xen/bin/qemu-debug.sh"
>> #vnc=1
>> #vncunused=1
>> #vnclisten="0.0.0.0"
>> #keymap="it"
>> spice=1
>> spicehost="0.0.0.0"
>> spiceport=6000
>> spicedisable_ticketing=1
>> on_poweroff="destroy"
>> on_reboot="restart"
>> on_crash="destroy"
>> stdvga=1
>> #device_model_args=["-vga qxl -global qxl-vga.vram_size_mb=16"]
>> #videoram=128
>> #device_model_args=["-vga qxl"]
>> -------------------------------
>> With stdvga option domU is working but graphic performance is poor with
>> spice.
>>
>>
>> With QXL vga option domU
>> -------------------------------
>> videoram=128
>> device_model_args=["-vga qxl"]
>> stdvga=0
>> -------------------------------
>> DomU not start, from qemu log:
>> qemu-system-i386: -vga qxl: invalid option
>>
>> But the option is correct and if I add:
>> device_model_override="/usr/lib/xen/bin/qemu-debug.sh"
>>
>> qemu-debug.sh launches the same qemu-system-i386 with same options and domU
>> starts.
>> DomU sees the QXL vga but only with 4 mb allocated and/or usabled instead of
>> 64 mb of qemu default.
>>
>> We need domUs with good graphic performance, also with high resolution and
>> also multimedia.
>> We can not use gfx passthrough on our dom0s because of hardware limitation
>> of dell server.
>> QXL seems to be the only way to go.
>>
>> We are testing this setup several months without success on xen.
>> Some initial xl and qemu ram/videoram bugs are now fixed but may be there
>> are other in xen not found for now.
>>
>> We noticed one particular thing:
>>
>> without qxl:
>> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>>   Loader:        0000000000100000->000000000019dc88
>>   TOTAL:         0000000000000000->000000003f800000
>>   ENTRY ADDRESS: 0000000000100000
>>
>> with qxl:
>> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>>   Loader:        0000000000100000->000000000019dc88
>>   TOTAL:         0000000000000000->0000000038000000
>>   ENTRY ADDRESS: 0000000000100000
>>
>> The total memory with qxl should be equal or major than total memory without
>> qxl.
>> There is something wrong about videoram, i don't know if in xl or other part
>> of xen.
>>
>> Please someone help me to solve this problem?
>>
>> --
>> View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5667919.html
>> Sent from the Xen - Dev mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Xen-devel mailing list
>> [hidden email]
>> http://lists.xen.org/xen-devel
>
>
>
> _______________________________________________
> Xen-devel mailing list
> [hidden email]
> http://lists.xen.org/xen-devel



--
Zhou Peng

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Fantu
Zhou Peng wrote
Hi Fantu,

Thanks for your response.

xl doesn't support qxl-related option at the moment.
I will test upstream-qemu-xen these days, and if it works well
with qxl device, I will be glad to add qxl support to xl.

Best,

On Thu, Apr 26, 2012 at 11:39 PM, Ian Campbell <[hidden email]> wrote:
> CCing Zhou Peng who originally added spice support to xl. Zhou, are you
> interested in supporting this feature?
>
> On Thu, 2012-04-26 at 16:23 +0100, Fantu wrote:
>> Dom0:
>> Wheezy 64 bit with kernel from package linux-image-3.2.0-2-amd64 version
>> 3.2.15-1, package blktap-dkms and all dependency packages for xen, spice and
>> usb redirection.
>> -------------------------
>> /etc/modules
>> ------------
>> loop max_loop=64
>> xenfs
>> xen-evtchn
>> blktap
>> -------------------------
>> hg clone http://xenbits.xen.org/xen-unstable.hg (in this build changeset is
>> 25249:a4e7fce6ee2b)
>> vi Makefile # removed dist-kernel to not compile kernel
>> -------------------------
>> vi Config.mk # qemu upstream unstable and seabios upstream unstable for
>> various spice and qxl bugfix
>> ------------
>> QEMU_UPSTREAM_URL ?= git://git.qemu.org/qemu.git
>> SEABIOS_UPSTREAM_URL ?= git://git.seabios.org/seabios.git
>> SEABIOS_UPSTREAM_TAG ?= rel-1.7.0
>> -------------------------
>> Added some patches:
>> - autoconf: add variable for pass arbitrary options to qemu upstream v3
>> - tools: Improve make deb
>> -------------------------
>> ./configure --enable-qemuu-spice --enable-qemuu-usbredir
>> --enable-qemuu-debug
>> -------------------------
>> make deb
>>
>> Tested it on Windows XP domU with this xl configuration file:
>> -------------------------------
>> XP.cfg
>> ---------
>> name='XP'
>> builder="hvm"
>> memory=1024
>> vcpus=2
>> hap=1
>> pae=1
>> acpi=1
>> apic=1
>> nx=1
>> vif=['bridge=xenbr0']
>> #vfb=['vnc=1,vncunused=1,vnclisten=0.0.0.0,keymap=it']
>> #disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw',',raw,hdb,ro,cdrom']
>> disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw']
>> boot='cd'
>> xen_platform_pci=1
>> viridian=1
>> device_model_version="qemu-xen"
>> #device_model_override="/usr/lib/xen/bin/qemu-debug.sh"
>> #vnc=1
>> #vncunused=1
>> #vnclisten="0.0.0.0"
>> #keymap="it"
>> spice=1
>> spicehost="0.0.0.0"
>> spiceport=6000
>> spicedisable_ticketing=1
>> on_poweroff="destroy"
>> on_reboot="restart"
>> on_crash="destroy"
>> stdvga=1
>> #device_model_args=["-vga qxl -global qxl-vga.vram_size_mb=16"]
>> #videoram=128
>> #device_model_args=["-vga qxl"]
>> -------------------------------
>> With stdvga option domU is working but graphic performance is poor with
>> spice.
>>
>>
>> With QXL vga option domU
>> -------------------------------
>> videoram=128
>> device_model_args=["-vga qxl"]
>> stdvga=0
>> -------------------------------
>> DomU not start, from qemu log:
>> qemu-system-i386: -vga qxl: invalid option
>>
>> But the option is correct and if I add:
>> device_model_override="/usr/lib/xen/bin/qemu-debug.sh"
>>
>> qemu-debug.sh launches the same qemu-system-i386 with same options and domU
>> starts.
>> DomU sees the QXL vga but only with 4 mb allocated and/or usabled instead of
>> 64 mb of qemu default.
>>
>> We need domUs with good graphic performance, also with high resolution and
>> also multimedia.
>> We can not use gfx passthrough on our dom0s because of hardware limitation
>> of dell server.
>> QXL seems to be the only way to go.
>>
>> We are testing this setup several months without success on xen.
>> Some initial xl and qemu ram/videoram bugs are now fixed but may be there
>> are other in xen not found for now.
>>
>> We noticed one particular thing:
>>
>> without qxl:
>> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>>   Loader:        0000000000100000->000000000019dc88
>>   TOTAL:         0000000000000000->000000003f800000
>>   ENTRY ADDRESS: 0000000000100000
>>
>> with qxl:
>> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>>   Loader:        0000000000100000->000000000019dc88
>>   TOTAL:         0000000000000000->0000000038000000
>>   ENTRY ADDRESS: 0000000000100000
>>
>> The total memory with qxl should be equal or major than total memory without
>> qxl.
>> There is something wrong about videoram, i don't know if in xl or other part
>> of xen.
>>
>> Please someone help me to solve this problem?
>>
>> --
>> View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5667919.html
>> Sent from the Xen - Dev mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Xen-devel mailing list
>> [hidden email]
>> http://lists.xen.org/xen-devel
>
>
>
> _______________________________________________
> Xen-devel mailing list
> [hidden email]
> http://lists.xen.org/xen-devel



--
Zhou Peng

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel

Thanks for reply, about QXL some patches need to be backported from qemu upstream unstable to qemu upstream xen, now I don't know exactly which of them solve the domU boot problem with spice and qxl, with qemu and seabios of xen (1.0.1) doesn't work while with qemu and seabios unstable it does.
There are also some videoram bug or problem on xen, probably bugfix/patch are necessary also outside of libxl, I tried to look for the problem and solve it myself but I don't have enough knowledge now.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Fantu
In reply to this post by Zhou Peng
Zhou Peng wrote
Hi Fantu,

Thanks for your response.

xl doesn't support qxl-related option at the moment.
I will test upstream-qemu-xen these days, and if it works well
with qxl device, I will be glad to add qxl support to xl.
Hello, any news about this?
Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Zhou Peng
On Wed, May 2, 2012 at 4:21 PM, Fantu <[hidden email]> wrote:

>
> Zhou Peng wrote
>>
>> Hi Fantu,
>>
>> Thanks for your response.
>>
>> xl doesn't support qxl-related option at the moment.
>> I will test upstream-qemu-xen these days, and if it works well
>> with qxl device, I will be glad to add qxl support to xl.
>>
> Hello, any news about this?
> Thanks in advance

It seems you are using the upstream-qemu.
There are some special patches for upstream-qemu-xen(I don't track if all the
patches have been accepted by qemu)

The git repos for upstream-qemu-xen:
  Stefano Stabellini's tree:
git://xenbits.xen.org/people/sstabellini/qemu-dm.git
  Anthony's tree: git://xenbits.xen.org/people/aperard/qemu-dm.git

I am watching upstream-qemu-xen's progress too, but I have not tracked
it for months.

I was plan to test the latest upstream-qemu-xen and response to you,
but I encounter a problem when preparing the environment using the upstream xen:
  # xl list
  libxl: error: libxl.c:506:libxl_list_domain: geting domain info
list: Operation not permitted
  libxl_domain_infolist failed.

So I suggest you  to have a try of upstream-qemu-xen if not yet.
In my test many months ago, it didn't support graphic, and spice was tested
with linux-hvm disabling graphic.

How to configure upstream-qemu-xen:
./configure --target-list=i386-softmmu --enable-spice
   --enable-xen --extra-cflags=-I${path-to-xen}/dist/install/usr/include
   --extra-ldflags=-L${path-to-xen}/dist/install/usr/lib

CCing to Stefano, who may help you on upstream-qemu-xen.
>
> --
> View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5679908.html
> Sent from the Xen - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> Xen-devel mailing list
> [hidden email]
> http://lists.xen.org/xen-devel



--
Zhou Peng

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Fantu
upstream-qemu-xen extra patches are included in upstream-qemu unstable (now at 1.1-rc0)
I can run hvm domU correctly, on xen-unstable with xl, also with spice.
Some info about my last test system:
Dom0:
Wheezy 64 bit with kernel from package linux-image-3.2.0-2-amd64 version 3.2.15-1, package blktap-dkms and all dependency packages for xen, spice and usb redirection.
-------------------------
/etc/modules
------------
loop max_loop=64
xenfs
xen-evtchn
blktap
-------------------------
hg clone http://xenbits.xen.org/xen-unstable.hg (in this build changeset is 25249:a4e7fce6ee2b)
vi Makefile # removed dist-kernel to not compile kernel
-------------------------
Added some patches:
- autoconf: add variable for pass arbitrary options to qemu upstream v3
- tools: Improve make deb
-------------------------
./configure --enable-qemuu-spice --enable-qemuu-usbredir --enable-qemuu-debug
-------------------------
make deb

One domU xl configuration file:
---------------------------------
XP.cfg
-------------
name='XP'
builder="hvm"
memory=1024
vcpus=2
hap=1
pae=1
acpi=1
apic=1
nx=1
vif=['bridge=xenbr0']
#vfb=['vnc=1,vncunused=1,vnclisten=0.0.0.0,keymap=it']
disk=['/mnt/vm/disks/XP.disk1.xm,raw,hda,rw']
boot='cd'
xen_platform_pci=1
viridian=1
device_model_version="qemu-xen"
#vnc=1
#vncunused=1
#vnclisten="0.0.0.0"
#keymap="it"
spice=1
spicehost="0.0.0.0"
spiceport=6000
spicedisable_ticketing=1
on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"
stdvga=1
---------------------------------

About QXL I tried to add:
stdvga=0
videoram=128
device_model_args=["-device","qxl-vga"]

About qxl there are problems about videoram not allocated or not used over 4 mb (same as default cirrus vga).
At the moment I haven't found solution for this problem, probably some bugfix and/or change are needed on xen.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Stefano Stabellini-3
In reply to this post by Zhou Peng
On Thu, 3 May 2012, ZhouPeng wrote:

> On Wed, May 2, 2012 at 4:21 PM, Fantu <[hidden email]> wrote:
> >
> > Zhou Peng wrote
> >>
> >> Hi Fantu,
> >>
> >> Thanks for your response.
> >>
> >> xl doesn't support qxl-related option at the moment.
> >> I will test upstream-qemu-xen these days, and if it works well
> >> with qxl device, I will be glad to add qxl support to xl.
> >>
> > Hello, any news about this?
> > Thanks in advance
>
> It seems you are using the upstream-qemu.
> There are some special patches for upstream-qemu-xen(I don't track if all the
> patches have been accepted by qemu)
>
> The git repos for upstream-qemu-xen:
>   Stefano Stabellini's tree:
> git://xenbits.xen.org/people/sstabellini/qemu-dm.git
>   Anthony's tree: git://xenbits.xen.org/people/aperard/qemu-dm.git
>
> I am watching upstream-qemu-xen's progress too, but I have not tracked
> it for months.

That is my personal tree. Now upstream QEMU is integrated in
xen-unstable, so the tree that should be used
is: http://xenbits.xen.org/git-http/qemu-upstream-unstable.git


> I was plan to test the latest upstream-qemu-xen and response to you,
> but I encounter a problem when preparing the environment using the upstream xen:
>   # xl list
>   libxl: error: libxl.c:506:libxl_list_domain: geting domain info
> list: Operation not permitted
>   libxl_domain_infolist failed.

This looks like a basic setup issue.


> So I suggest you  to have a try of upstream-qemu-xen if not yet.
> In my test many months ago, it didn't support graphic, and spice was tested
> with linux-hvm disabling graphic.

What do you mean by "disabling graphic"? Do you mean disabling the vga
card?


> How to configure upstream-qemu-xen:
> ./configure --target-list=i386-softmmu --enable-spice
>    --enable-xen --extra-cflags=-I${path-to-xen}/dist/install/usr/include
>    --extra-ldflags=-L${path-to-xen}/dist/install/usr/lib
>
> CCing to Stefano, who may help you on upstream-qemu-xen.

Yes, it is true that you need to add --enable-spice to the configure
command line options.

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Zhou Peng
On Thu, May 3, 2012 at 8:46 PM, Stefano Stabellini
<[hidden email]> wrote:

> On Thu, 3 May 2012, ZhouPeng wrote:
>> On Wed, May 2, 2012 at 4:21 PM, Fantu <[hidden email]> wrote:
>> >
>> > Zhou Peng wrote
>> >>
>> >> Hi Fantu,
>> >>
>> >> Thanks for your response.
>> >>
>> >> xl doesn't support qxl-related option at the moment.
>> >> I will test upstream-qemu-xen these days, and if it works well
>> >> with qxl device, I will be glad to add qxl support to xl.
>> >>
>> > Hello, any news about this?
>> > Thanks in advance
>>
>> It seems you are using the upstream-qemu.
>> There are some special patches for upstream-qemu-xen(I don't track if all the
>> patches have been accepted by qemu)
>>
>> The git repos for upstream-qemu-xen:
>>   Stefano Stabellini's tree:
>> git://xenbits.xen.org/people/sstabellini/qemu-dm.git
>>   Anthony's tree: git://xenbits.xen.org/people/aperard/qemu-dm.git
>>
>> I am watching upstream-qemu-xen's progress too, but I have not tracked
>> it for months.
>
> That is my personal tree. Now upstream QEMU is integrated in
> xen-unstable, so the tree that should be used
> is: http://xenbits.xen.org/git-http/qemu-upstream-unstable.git
>
>
>> I was plan to test the latest upstream-qemu-xen and response to you,
>> but I encounter a problem when preparing the environment using the upstream xen:
>>   # xl list
>>   libxl: error: libxl.c:506:libxl_list_domain: geting domain info
>> list: Operation not permitted
>>   libxl_domain_infolist failed.
>
> This looks like a basic setup issue.
>
>
>> So I suggest you  to have a try of upstream-qemu-xen if not yet.
>> In my test many months ago, it didn't support graphic, and spice was tested
>> with linux-hvm disabling graphic.
>
> What do you mean by "disabling graphic"? Do you mean disabling the vga
> card?
No, not disable the vga card.
But booting in Text mode.

>
>> How to configure upstream-qemu-xen:
>> ./configure --target-list=i386-softmmu --enable-spice
>>    --enable-xen --extra-cflags=-I${path-to-xen}/dist/install/usr/include
>>    --extra-ldflags=-L${path-to-xen}/dist/install/usr/lib
>>
>> CCing to Stefano, who may help you on upstream-qemu-xen.
>
> Yes, it is true that you need to add --enable-spice to the configure
> command line options.



--
Zhou Peng

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Stefano Stabellini-3
On Thu, 3 May 2012, ZhouPeng wrote:

> On Thu, May 3, 2012 at 8:46 PM, Stefano Stabellini
> <[hidden email]> wrote:
> > On Thu, 3 May 2012, ZhouPeng wrote:
> >> On Wed, May 2, 2012 at 4:21 PM, Fantu <[hidden email]> wrote:
> >> >
> >> > Zhou Peng wrote
> >> >>
> >> >> Hi Fantu,
> >> >>
> >> >> Thanks for your response.
> >> >>
> >> >> xl doesn't support qxl-related option at the moment.
> >> >> I will test upstream-qemu-xen these days, and if it works well
> >> >> with qxl device, I will be glad to add qxl support to xl.
> >> >>
> >> > Hello, any news about this?
> >> > Thanks in advance
> >>
> >> It seems you are using the upstream-qemu.
> >> There are some special patches for upstream-qemu-xen(I don't track if all the
> >> patches have been accepted by qemu)
> >>
> >> The git repos for upstream-qemu-xen:
> >>   Stefano Stabellini's tree:
> >> git://xenbits.xen.org/people/sstabellini/qemu-dm.git
> >>   Anthony's tree: git://xenbits.xen.org/people/aperard/qemu-dm.git
> >>
> >> I am watching upstream-qemu-xen's progress too, but I have not tracked
> >> it for months.
> >
> > That is my personal tree. Now upstream QEMU is integrated in
> > xen-unstable, so the tree that should be used
> > is: http://xenbits.xen.org/git-http/qemu-upstream-unstable.git
> >
> >
> >> I was plan to test the latest upstream-qemu-xen and response to you,
> >> but I encounter a problem when preparing the environment using the upstream xen:
> >>   # xl list
> >>   libxl: error: libxl.c:506:libxl_list_domain: geting domain info
> >> list: Operation not permitted
> >>   libxl_domain_infolist failed.
> >
> > This looks like a basic setup issue.
> >
> >
> >> So I suggest you  to have a try of upstream-qemu-xen if not yet.
> >> In my test many months ago, it didn't support graphic, and spice was tested
> >> with linux-hvm disabling graphic.
> >
> > What do you mean by "disabling graphic"? Do you mean disabling the vga
> > card?
> No, not disable the vga card.
> But booting in Text mode.
Then you are manually starting X11 with the spice driver?
_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Zhou Peng
On Thu, May 3, 2012 at 9:05 PM, Stefano Stabellini
<[hidden email]> wrote:

> On Thu, 3 May 2012, ZhouPeng wrote:
>> On Thu, May 3, 2012 at 8:46 PM, Stefano Stabellini
>> <[hidden email]> wrote:
>> > On Thu, 3 May 2012, ZhouPeng wrote:
>> >> On Wed, May 2, 2012 at 4:21 PM, Fantu <[hidden email]> wrote:
>> >> >
>> >> > Zhou Peng wrote
>> >> >>
>> >> >> Hi Fantu,
>> >> >>
>> >> >> Thanks for your response.
>> >> >>
>> >> >> xl doesn't support qxl-related option at the moment.
>> >> >> I will test upstream-qemu-xen these days, and if it works well
>> >> >> with qxl device, I will be glad to add qxl support to xl.
>> >> >>
>> >> > Hello, any news about this?
>> >> > Thanks in advance
>> >>
>> >> It seems you are using the upstream-qemu.
>> >> There are some special patches for upstream-qemu-xen(I don't track if all the
>> >> patches have been accepted by qemu)
>> >>
>> >> The git repos for upstream-qemu-xen:
>> >>   Stefano Stabellini's tree:
>> >> git://xenbits.xen.org/people/sstabellini/qemu-dm.git
>> >>   Anthony's tree: git://xenbits.xen.org/people/aperard/qemu-dm.git
>> >>
>> >> I am watching upstream-qemu-xen's progress too, but I have not tracked
>> >> it for months.
>> >
>> > That is my personal tree. Now upstream QEMU is integrated in
>> > xen-unstable, so the tree that should be used
>> > is: http://xenbits.xen.org/git-http/qemu-upstream-unstable.git
>> >
>> >
>> >> I was plan to test the latest upstream-qemu-xen and response to you,
>> >> but I encounter a problem when preparing the environment using the upstream xen:
>> >>   # xl list
>> >>   libxl: error: libxl.c:506:libxl_list_domain: geting domain info
>> >> list: Operation not permitted
>> >>   libxl_domain_infolist failed.
>> >
>> > This looks like a basic setup issue.
>> >
>> >
>> >> So I suggest you  to have a try of upstream-qemu-xen if not yet.
>> >> In my test many months ago, it didn't support graphic, and spice was tested
>> >> with linux-hvm disabling graphic.
>> >
>> > What do you mean by "disabling graphic"? Do you mean disabling the vga
>> > card?
>> No, not disable the vga card.
>> But booting in Text mode.
>
> Then you are manually starting X11 with the spice driver?
Always in text mode.
Never start X11.
Using stdard vga but not qxl-vga.
--
Zhou Peng

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Ian Campbell-10
On Thu, 2012-05-03 at 14:05 +0100, ZhouPeng wrote:
> > Then you are manually starting X11 with the spice driver?
> Always in text mode.
> Never start X11.
> Using stdard vga but not qxl-vga.

How is spice being used when you do this?

Ian.


_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Zhou Peng
On Thu, May 3, 2012 at 9:13 PM, Ian Campbell <[hidden email]> wrote:

> On Thu, 2012-05-03 at 14:05 +0100, ZhouPeng wrote:
>> > Then you are manually starting X11 with the spice driver?
>> Always in text mode.
>> Never start X11.
>> Using stdard vga but not qxl-vga.
>
> How is spice being used when you do this?
>
> Ian.
>
building upstream-qemu-xen (enable spice and xen)

Add this options in hvm-cfg to enable spice protocal
spice=1
spiceport=6000
spicehost='192.168.1.187'
spicedisable_ticketing = 1

There is some info in
http://code.google.com/p/spice4xen/wiki/Using_Upstream_Qemu

ps:
Two ways to disable graphic boot.
* install a new linux-hvm  without  graphic in install period
* set runlevel in text mode

If boot in graphic, the hvm-windows and hvm-linux will crash down
before booting completely.
--
Zhou Peng

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Stefano Stabellini-3
In reply to this post by Zhou Peng
On Thu, 3 May 2012, ZhouPeng wrote:
> >> > What do you mean by "disabling graphic"? Do you mean disabling the vga
> >> > card?
> >> No, not disable the vga card.
> >> But booting in Text mode.
> >
> > Then you are manually starting X11 with the spice driver?
> Always in text mode.
> Never start X11.
> Using stdard vga but not qxl-vga.

so you didn't actually test qxl at all, did you?

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working / videomem over 4MB issue

Pasi Kärkkäinen
In reply to this post by Fantu
On Thu, May 03, 2012 at 05:28:44AM -0700, Fantu wrote:
>
> About qxl there are problems about videoram not allocated or not used over 4
> mb (same as default cirrus vga).
> At the moment I haven't found solution for this problem, probably some
> bugfix and/or change are needed on xen.
>

Is this a regression in xen-unstable compared to xen 4.1 ?

afaik you can get at least 16 MB of video memory for HVM guest with Xen 4.1.

-- Pasi


_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working / videomem over 4MB issue

Fantu
Pasi Kärkkäinen wrote
On Thu, May 03, 2012 at 05:28:44AM -0700, Fantu wrote:
>
> About qxl there are problems about videoram not allocated or not used over 4
> mb (same as default cirrus vga).
> At the moment I haven't found solution for this problem, probably some
> bugfix and/or change are needed on xen.
>

Is this a regression in xen-unstable compared to xen 4.1 ?

afaik you can get at least 16 MB of video memory for HVM guest with Xen 4.1.

-- Pasi


_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Thanks for reply
Probably xen-unstable with qemu upstream doesn't support videoram setting. qxl default videoram is 64 mb but I also tried to set 16 mb without result, it always see only 4 mb, not enough for correct working qxl.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working / videomem over 4MB issue

Pasi Kärkkäinen
On Thu, May 03, 2012 at 07:27:11AM -0700, Fantu wrote:

>
> Pasi Kärkkäinen wrote
> >
> > On Thu, May 03, 2012 at 05:28:44AM -0700, Fantu wrote:
> >>
> >> About qxl there are problems about videoram not allocated or not used
> >> over 4
> >> mb (same as default cirrus vga).
> >> At the moment I haven't found solution for this problem, probably some
> >> bugfix and/or change are needed on xen.
> >>
> >
> > Is this a regression in xen-unstable compared to xen 4.1 ?
> >
> > afaik you can get at least 16 MB of video memory for HVM guest with Xen
> > 4.1.
> >
> > -- Pasi
> >
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@.xen
> > http://lists.xen.org/xen-devel
> >
> Thanks for reply
> Probably xen-unstable with qemu upstream doesn't support videoram setting.
> qxl default videoram is 64 mb but I also tried to set 16 mb without result,
> it always see only 4 mb, not enough for correct working qxl.
>

Ok. If you use qemu-upstream and cirrus/stdvga (without qxl), does videomem >4MB work then ?

-- Pasi


_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working

Zhou Peng
In reply to this post by Stefano Stabellini-3
On Thu, May 3, 2012 at 9:56 PM, Stefano Stabellini
<[hidden email]> wrote:

> On Thu, 3 May 2012, ZhouPeng wrote:
>> >> > What do you mean by "disabling graphic"? Do you mean disabling the vga
>> >> > card?
>> >> No, not disable the vga card.
>> >> But booting in Text mode.
>> >
>> > Then you are manually starting X11 with the spice driver?
>> Always in text mode.
>> Never start X11.
>> Using stdard vga but not qxl-vga.
>
> so you didn't actually test qxl at all, did you?
Didn't test qxl but only spice.
--
Zhou Peng

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working / videomem over 4MB issue

Fantu
In reply to this post by Pasi Kärkkäinen
Pasi Kärkkäinen wrote
On Thu, May 03, 2012 at 07:27:11AM -0700, Fantu wrote:
>
> Pasi Kärkkäinen wrote
> >
> > On Thu, May 03, 2012 at 05:28:44AM -0700, Fantu wrote:
> >>
> >> About qxl there are problems about videoram not allocated or not used
> >> over 4
> >> mb (same as default cirrus vga).
> >> At the moment I haven't found solution for this problem, probably some
> >> bugfix and/or change are needed on xen.
> >>
> >
> > Is this a regression in xen-unstable compared to xen 4.1 ?
> >
> > afaik you can get at least 16 MB of video memory for HVM guest with Xen
> > 4.1.
> >
> > -- Pasi
> >
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@.xen
> > http://lists.xen.org/xen-devel
> >
> Thanks for reply
> Probably xen-unstable with qemu upstream doesn't support videoram setting.
> qxl default videoram is 64 mb but I also tried to set 16 mb without result,
> it always see only 4 mb, not enough for correct working qxl.
>

Ok. If you use qemu-upstream and cirrus/stdvga (without qxl), does videomem >4MB work then ?

-- Pasi


_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
No, always 4 mb, also with cirrus or stdvga videoram setting not work.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to get QXL vga working / videomem over 4MB issue

Ian Campbell-10
(putting Pasi back in the CC, please retain CCs on xen-devel)

On Fri, 2012-05-04 at 09:23 +0100, Fantu wrote:
> Pasi Kärkkäinen wrote
> > Ok. If you use qemu-upstream and cirrus/stdvga (without qxl), does
> > videomem >4MB work then ?
> >
> No, always 4 mb, also with cirrus or stdvga videoram setting not work.

But with Qemu-xen-traditional it does work?

Anthony -- any idea why the videoram setting doesn't work with upstream
qemu?



_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel
12