Skip to contentSkip to conversation

Unable to get QXL vga working

DISCUSSION Fantu 8 participants 41 messages Apr 26, 2012 – Jun 15, 2012

lore
Share & tools
lore

Fantu

author
#0 lore raw

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.

#1 lore raw

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

Quoted 130 lines · 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?

--
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
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

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,

Quoted 141 lines · Ian Campbell

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

Quoted 122 lines · 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?

Quoted 8 lines

--
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
[email protected]
http://lists.xen.org/xen-devel

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

Signature · 1 line
Zhou Peng
author
#3 lore raw

Zhou Peng wrote

Quoted 160 lines

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,

Quoted 147 lines · On Thu, Apr 26, 2012 at 11:39 PM, Ian Campbell <Ian.Campbell@> wrote:

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

Quoted 140 lines · 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?

--
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
[email protected]
http://lists.xen.org/xen-devel

Quoted 15 lines
Quoted 4 lines

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

Signature · 6 lines
Zhou Peng

_______________________________________________
Xen-devel mailing list
[email protected]
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.

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5669805.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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

author
#4 lore raw
In reply to ZhouPeng

Zhou Peng wrote

Quoted 9 lines

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

--
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.

#5 lore raw
Quoted 5 lines · Fantu

Zhou Peng wrote

Quoted 3 lines

Hi Fantu,

Quoted 8 lines
Quoted 6 lines

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.

Quoted 9 lines

--
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
[email protected]
http://lists.xen.org/xen-devel

Signature · 1 line
Zhou Peng
author
#6 lore raw

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.

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5683034.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#23 lore raw
In reply to ZhouPeng
Quoted 19 lines · ZhouPeng
Quoted 5 lines · Fantu

Zhou Peng wrote

Quoted 3 lines

Hi Fantu,

Quoted 8 lines
Quoted 6 lines

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)

Quoted 7 lines

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

Quoted 6 lines

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.

Quoted 3 lines

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?

Quoted 6 lines

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.

#24 lore raw
Quoted 43 lines · Stefano Stabellini
Quoted 19 lines · ZhouPeng
Quoted 5 lines · Fantu

Zhou Peng wrote

Quoted 3 lines

Hi Fantu,

Quoted 8 lines
Quoted 6 lines

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)

Quoted 7 lines

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

Quoted 6 lines

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.

Quoted 6 lines
Quoted 3 lines

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.

Quoted 10 lines
Quoted 7 lines

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.

Signature · 1 line
Zhou Peng
#25 lore raw
Quoted 45 lines · ZhouPeng
Quoted 43 lines · Stefano Stabellini
Quoted 19 lines · ZhouPeng
Quoted 5 lines · Fantu

Zhou Peng wrote

Quoted 3 lines

Hi Fantu,

Quoted 8 lines
Quoted 6 lines

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)

Quoted 7 lines

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

Quoted 6 lines

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.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

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
[email protected]
http://lists.xen.org/xen-devel

#26 lore raw
Quoted 50 lines · Stefano Stabellini
Quoted 49 lines · ZhouPeng
Quoted 47 lines · Stefano Stabellini
Quoted 19 lines · ZhouPeng
Quoted 5 lines · Fantu

Zhou Peng wrote

Quoted 3 lines

Hi Fantu,

Quoted 8 lines
Quoted 6 lines

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)

Quoted 7 lines

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

Quoted 6 lines

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.

Quoted 3 lines

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.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

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.

Signature · 1 line
Zhou Peng
#27 lore raw
Quoted 4 lines · ZhouPeng
Quoted 1 line

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.

#28 lore raw
Quoted 10 lines · Ian Campbell
Quoted 4 lines · ZhouPeng
Quoted 1 line

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.

Signature · 1 line
Zhou Peng
#29 lore raw
In reply to ZhouPeng
Quoted 9 lines · ZhouPeng
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

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?

#7 lore raw

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

In reply to Fantu
Quoted 6 lines · Fantu

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

author
#8 lore raw

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

Pasi Kärkkäinen wrote

Quoted 15 lines · Fantu
Quoted 7 lines

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.

Quoted 8 lines

-- Pasi

_______________________________________________
Xen-devel mailing list
[email protected]
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.

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5683345.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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

#9 lore raw

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

Quoted 25 lines · Fantu

Pasi Kärkkäinen wrote

Quoted 15 lines · Fantu
Quoted 7 lines

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.

Quoted 8 lines

-- Pasi

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

Quoted 5 lines

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

#30 lore raw
In reply to Stefano Stabellini
Quoted 6 lines · Stefano Stabellini
Quoted 5 lines · ZhouPeng
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

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.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

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.

Signature · 1 line
Zhou Peng
author
#10 lore raw

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

In reply to Pasi Kärkkäinen

Pasi Kärkkäinen wrote

Quoted 38 lines · Fantu
Quoted 25 lines

Pasi Kärkkäinen wrote

Quoted 15 lines · Fantu
Quoted 7 lines

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.

Quoted 8 lines

-- Pasi

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

Quoted 7 lines

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 ?

Quoted 8 lines

-- Pasi

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

No, always 4 mb, also with cirrus or stdvga videoram setting not work.

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5685158.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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

#11 lore raw

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

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

Quoted 5 lines · Fantu

Pasi Kärkkäinen wrote

Quoted 3 lines

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?

#31 lore raw
In reply to ZhouPeng
Quoted 8 lines · ZhouPeng
Quoted 6 lines · Stefano Stabellini
Quoted 5 lines · ZhouPeng
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

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.

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

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.

So to return to my question at the start of this thread -- is qxl something you would be interested in supporting? (I think you said yes, but we've been somewhat sidetracked on the distinction between SPICE support and QXL support).

In any case this is definitely 4.3 material IMHO since we are now feature frozen for 4.2.

Ian.

author
#12 lore raw

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

In reply to Ian Campbell

Ian Campbell-10 wrote

Quoted 17 lines

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

Quoted 5 lines · Fantu

Pasi Kärkkäinen wrote

Quoted 3 lines

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?

Quoted 5 lines

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

With qemu-xen-traditional videoram setting with stdvga work. About Spice on qemu-upstream for now we did only basic tests and it seems to be working but without qxl limited to 4 mb many of spices features are not full working.
Qxl vga can be used also without spice and with videoram to 32 or 64 mb I think can give better graphic performance with hvm domU.
For now is not good even without multimedia use.

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5685216.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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

#13 lore raw

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

In reply to Ian Campbell
Quoted 2 lines · Ian Campbell

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

Well, the parameter could be pass to qemu qxl, but it's not yet. But then, it seams you have to have this value of at least 32MB, otherwise the value is increase in qemu.

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

Signature · 1 line
Anthony PERARD
#14 lore raw

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

Quoted 10 lines · Anthony PERARD
Quoted 2 lines · Ian Campbell

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

Well, the parameter could be pass to qemu qxl, but it's not yet. But then, it seams you have to have this value of at least 32MB, otherwise the value is increase in qemu.

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

OK, so this is simply a feature which upstream qemu doesn't have. That's fine.

I guess xl.cfg(5) needs updating to make it clear that this option only applies to qemu-xen-traditional.

The docs also currently say that for stdvga the default is 8MB and for not stdvga (by which I guess it means Cirrus) the default if 4MB. So I guess even this is inaccurate for qemu-xen-upstream?

Can someone send a patch please?

Ian.

author
#19 lore raw

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

In reply to Anthony PERARD

Anthony PERARD-2 wrote

Quoted 20 lines · On Fri, May 4, 2012 at 9:28 AM, Ian Campbell <Ian.Campbell@> wrote:
Quoted 2 lines

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

Well, the parameter could be pass to qemu qxl, but it's not yet. But then, it seams you have to have this value of at least 32MB, otherwise the value is increase in qemu.

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

Signature · 6 lines
Anthony PERARD

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

I have already tried -global qxl-vga.vram_size for setting more videoram on qxl but not work,have always 4 mb, also with qemu-upstream unstable, the default code in qemu should have 64 mb and minimum 16 mb, why and where it sets 4 mb?
Now I will try also with 1.1-rc0 and seabios 1.7.0.

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5685659.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

author
#20 lore raw

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

Fantu wrote

Quoted 23 lines

Anthony PERARD-2 wrote

Quoted 20 lines · On Fri, May 4, 2012 at 9:28 AM, Ian Campbell <Ian.Campbell@> wrote:
Quoted 2 lines

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

Well, the parameter could be pass to qemu qxl, but it's not yet. But then, it seams you have to have this value of at least 32MB, otherwise the value is increase in qemu.

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 6 lines

I have already tried -global qxl-vga.vram_size for setting more videoram on qxl but not work,have always 4 mb, also with qemu-upstream unstable, the default code in qemu should have 64 mb and minimum 16 mb, why and where it sets 4 mb?
Now I will try also with 1.1-rc0 and seabios 1.7.0.

I did other tests with new build (see
http://xen.1045712.n5.nabble.com/Test-result-of-xen-unstable-changeset-25259-td5691153.html
here for detail)

Precise domU start but X crash, same error also with Wheezy with more update package include qxl driver
Here some details:
-------------------------------
PRECISEHVM.cfg
--------
name='PRECISEHVM'
builder="hvm"
memory=1024
#maxmem=1536
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/PRECISEHVM.disk1.xm,raw,hda,rw', '/dev/sr0,raw,hdb,ro,cdrom'] disk=['/mnt/vm/disks/PRECISEHVM.disk1.xm,raw,hda,rw']
boot='c'
xen_platform_pci=1
device_model_version='qemu-xen'
#vnc=1
#vncunused=1
#vnclisten="0.0.0.0"
#keymap="it"
stdvga=0
spice=1
spicehost='0.0.0.0'
spiceport=6000
spicedisable_ticketing=1 #device_model_args=["-device","qxl-vga","-global","qxl-vga.vram_size=33554432"] device_model_args=["-vga","qxl"]
videoram=128
-------------------------------
Full X log: http://xen.1045712.n5.nabble.com/file/n5691285/Xorg.0.log
Xorg.0.log

I also tried to remove videoram parameter but not start
-------------------------------
xl create /etc/xen/PRECISEHVM.cfg
Parsing config file /etc/xen/PRECISEHVM.cfg
xc: info: VIRTUAL MEMORY ARRANGEMENT:
Loader: 0000000000100000->000000000019dc88
TOTAL: 0000000000000000->000000003f800000
ENTRY ADDRESS: 0000000000100000
xc: info: PHYSICAL MEMORY ALLOCATION:
4KB PAGES: 0x0000000000000200
2MB PAGES: 0x00000000000001fb
1GB PAGES: 0x0000000000000000
libxl: error: libxl_qmp.c:687:libxl__qmp_initialize: Connection error:
Connection refused
libxl: error: libxl_exec.c:200:libxl__wait_for_offspring: Device Model died during startup
libxl: error: libxl_create.c:709:do_domain_create: device model did not
start: -1
-------------------------------
/var/log/xen/qemu-dm-PRECISEHVM.log
-------------------------
do_spice_init: starting 0.10.1
spice_server_add_interface: SPICE_INTERFACE_MIGRATION spice_server_add_interface: SPICE_INTERFACE_KEYBOARD spice_server_add_interface: SPICE_INTERFACE_MOUSE
qemu: hardware error: xen: failed to populate ram at 3f800000 CPU #0:
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633 ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 00000000 0000ffff 00009300
CS =f000 ffff0000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT= 00000000 0000ffff
IDT= 00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
CPU #1:
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633 ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1 ES =0000 00000000 0000ffff 00009300
CS =f000 ffff0000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT= 00000000 0000ffff
IDT= 00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
-------------------------------

videoram seems reserve the ram and from X log QXL videoram seems to be at correct size but probably qemu can't use it.

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5691285.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#15 lore raw

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

In reply to Ian Campbell
Quoted 9 lines · Ian Campbell
Quoted 8 lines · Anthony PERARD
Quoted 2 lines · Ian Campbell

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

Well, the parameter could be pass to qemu qxl, but it's not yet. But then, it seams you have to have this value of at least 32MB, otherwise the value is increase in qemu.

Quoted 6 lines
Quoted 2 lines

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

OK, so this is simply a feature which upstream qemu doesn't have. That's fine.

Is this something that should be forward-ported from qemu-xen-traditional to upstream qemu ?

Quoted 9 lines

I guess xl.cfg(5) needs updating to make it clear that this option only applies to qemu-xen-traditional.

The docs also currently say that for stdvga the default is 8MB and for not stdvga (by which I guess it means Cirrus) the default if 4MB. So I guess even this is inaccurate for qemu-xen-upstream?

Can someone send a patch please?

For the documentation patch maybe add this to the 4.2 status todo list as a reminder :)

-- Pasi

#16 lore raw

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

Quoted 13 lines · Pasi Kärkkäinen
Quoted 12 lines · Ian Campbell
Quoted 10 lines · Anthony PERARD
Quoted 2 lines · Ian Campbell

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

Well, the parameter could be pass to qemu qxl, but it's not yet. But then, it seams you have to have this value of at least 32MB, otherwise the value is increase in qemu.

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

Quoted 6 lines
Quoted 3 lines

OK, so this is simply a feature which upstream qemu doesn't have. That's fine.

Is this something that should be forward-ported from qemu-xen-traditional to upstream qemu ?

If there are reasons why this should be configurable, then I guess so. Are you going to look into that?

This doesn't seem like 4.2 material to me though.

Quoted 7 lines
Quoted 7 lines

I guess xl.cfg(5) needs updating to make it clear that this option only applies to qemu-xen-traditional.

The docs also currently say that for stdvga the default is 8MB and for not stdvga (by which I guess it means Cirrus) the default if 4MB. So I guess even this is inaccurate for qemu-xen-upstream?

Quoted 5 lines
Quoted 2 lines

Can someone send a patch please?

For the documentation patch maybe add this to the 4.2 status todo list as a reminder :)

Please make requests for additions to the TODO list in the most recent TODO list thread, with a link to the relevant thread. Otherwise the chances are I won't remember when I update the list, since I only look at replies in the TODO threads.

Ian.

author
#17 lore raw

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

Ian Campbell-10 wrote

Quoted 49 lines · Pasi Kärkkäinen
Quoted 16 lines · Ian Campbell
Quoted 2 lines · Anthony PERARD
Quoted 1 line

On Fri, May 4, 2012 at 9:28 AM, Ian Campbell <Ian.Campbell@>

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

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

upstream

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

qemu?

Well, the parameter could be pass to qemu qxl, but it's not yet. But then, it seams you have to have this value of at least 32MB,

otherwise

Quoted 5 lines
Quoted 4 lines

the value is increase in qemu.

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

Quoted 7 lines
Quoted 1 line

OK, so this is simply a feature which upstream qemu doesn't have.

That's

Quoted 2 lines

fine.

Is this something that should be forward-ported from qemu-xen-traditional to upstream qemu ?

If there are reasons why this should be configurable, then I guess so. Are you going to look into that?

This doesn't seem like 4.2 material to me though.

Quoted 7 lines
Quoted 7 lines

I guess xl.cfg(5) needs updating to make it clear that this option only applies to qemu-xen-traditional.

The docs also currently say that for stdvga the default is 8MB and for not stdvga (by which I guess it means Cirrus) the default if 4MB. So I guess even this is inaccurate for qemu-xen-upstream?

Quoted 5 lines
Quoted 2 lines

Can someone send a patch please?

For the documentation patch maybe add this to the 4.2 status todo list as a reminder :)

Please make requests for additions to the TODO list in the most recent TODO list thread, with a link to the relevant thread. Otherwise the chances are I won't remember when I update the list, since I only look at replies in the TODO threads.

Quoted 8 lines

Ian.

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

I may have found something that makes the problem clearer.
With Precise hvm domU with spice and cirrus (default vga) on qemu-xen lspci show 32 mb but Xorg only sees 4 mb.

----------------------------------------------------
lspci -vvv
...
00:02.0 VGA compatible controller: Cirrus Logic GD 5446 (prog-if 00 [VGA controller])
Subsystem: Red Hat, Inc Device 1100
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR- INTx-

	Latency: 0
	Region 0: Memory at f0000000 (32-bit, prefetchable) [size=&lt;b>32M*]
	Region 1: Memory at f3020000 (32-bit, non-prefetchable) [size=4K]
	Expansion ROM at f3000000 [disabled] [size=64K]
	Kernel modules: cirrusfb

...
-----------------
Xorg.0.log
---------------
...

[     6.443] (--) CIRRUS(0): VideoRAM: 4096 kByte

...
----------------------------------------------------

If you need more information I'll post it.

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5697470.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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

#18 lore raw

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

Quoted 28 lines

I may have found something that makes the problem clearer.
With Precise hvm domU with spice and cirrus (default vga) on qemu-xen lspci show 32 mb but Xorg only sees 4 mb.

----------------------------------------------------
lspci -vvv
...
00:02.0 VGA compatible controller: Cirrus Logic GD 5446 (prog-if 00 [VGA controller])
       Subsystem: Red Hat, Inc Device 1100
       Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
       Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
       Latency: 0
       Region 0: Memory at f0000000 (32-bit, prefetchable) [size=&lt;b>32M*] Region 1: Memory at f3020000 (32-bit, non-prefetchable) [size=4K] Expansion ROM at f3000000 [disabled] [size=64K]
       Kernel modules: cirrusfb
...
-----------------
Xorg.0.log
---------------
...
[     6.443] (--) CIRRUS(0): VideoRAM: 4096 kByte
...
----------------------------------------------------

Quoted 1 line

If you need more information I'll post it.

This is probably not related.

I try to run qxl, and found the same issue as you, Xorg-server segfault. But I see that Xen give an error message:
(XEN) emulate.c:97:d24 bad mmio size 16
(XEN) io.c:199:d24 MMIO emulation failed @ 0033:7ff5dd8d7938: f3 0f 6f 19 f3 0f 6f 51 10 f3

That probably why qxl does not work with Xen.

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#21 lore raw

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

In reply to Anthony PERARD

Anthony PERARD-2 wrote

Quoted 4 lines

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

How can you see these 8MB ?
In my tests with cirrus/stdvga, in a Linux guest lspci always report 32M and Xorg.0.log report "VideoRAM: 4096 kByte". In a Windows XP/7 guest the Device Manager show 32M as well. This is confusing.
Is there a better way to check videoram and videoram usage in a Linux or Windows guest?

--
View this message in context: http://xen.1045712.n5.nabble.com/Unable-to-get-QXL-vga-working-tp5667919p5702906.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#22 lore raw

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

Quoted 8 lines · Geraldes

Anthony PERARD-2 wrote

Quoted 4 lines

For cirrus/stdvga, there is no way to pass the parameter to qemu, the size in qemu is fixed to 8MB.

How can you see these 8MB ?

This is just the size of the vram allocated by qemu, I saw this in the code.

Quoted 3 lines

In my tests with cirrus/stdvga, in a Linux guest lspci always report 32M and Xorg.0.log report "VideoRAM: 4096 kByte". In a Windows XP/7 guest the Device Manager show 32M as well. This is confusing.

It seams that part of the 32MB are used to do other kind of operation that just accessing to the vram. For the 4MB instead of 8 reported by Xorg, I don't know. There is probably a reason why Cirrus will report 4 instead of 8.

Quoted 2 lines

Is there a better way to check videoram and videoram usage in a Linux or Windows guest?

I don't think so.

Signature · 1 line
Anthony PERARD
#32 lore raw
In reply to Ian Campbell

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

The exact reason is xc_domain_populate_physmap_exact fails, because xen-hypervisor
fail,
it's because of alloc_domheap_pages(d, a->extent_order, a->memflags)
fails in hypervisor.

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

xl dmesg:

(XEN) page_alloc.c:1284:d0 Over-allocation for domain 22: 98561 > 98560 (XEN) memory.c:131:d0 Could not allocate order=0 extent: id=22 memflags=0 (2328 of 16384)
(XEN) HVM22: HVM Loader
(XEN) HVM22: Detected Xen v4.2-unstable
(XEN) HVM22: Xenbus rings @0xfeffc000, event channel 3
(XEN) HVM22: System requested SeaBIOS
(XEN) HVM22: CPU speed is 2660 MHz

Qemu log appended:

char device redirected to /dev/pts/9
do_spice_init: starting 0.7.1
spice_server_add_interface: SPICE_INTERFACE_KEYBOARD spice_server_add_interface: SPICE_INTERFACE_MOUSE
ram_size: 67108864 // 64M for qxl
qemu: hardware error: xen: failed to populate ram at 17800000 // by xen_ram_alloc
CPU #0:
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 00000000 0000ffff 00009300
CS =f000 ffff0000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT= 00000000 0000ffff
IDT= 00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000

Quoted 27 lines · Ian Campbell
Quoted 8 lines · ZhouPeng
Quoted 6 lines · Stefano Stabellini
Quoted 5 lines · ZhouPeng
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

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.

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

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.

So to return to my question at the start of this thread -- is qxl something you would be interested in supporting? (I think you said yes, but we've been somewhat sidetracked on the distinction between SPICE support and QXL support).

In any case this is definitely 4.3 material IMHO since we are now feature frozen for 4.2.

Ian.

Signature · 1 line
Zhou Peng
#33 lore raw
Quoted 7 lines · ZhouPeng

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

Quoted 8 lines

The exact reason is xc_domain_populate_physmap_exact fails, because xen-hypervisor
fail,
it's because of alloc_domheap_pages(d, a->extent_order, a->memflags)
fails in hypervisor.

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

XL sets an upper bound of memory that can be allocated to the VM in libxl__build_pre, calling xc_domain_setmaxmem.
My guess is that a 64MB allocation would go over that limit. You could try increasing the limit manually changing the xc_domain_setmaxmem call in libxl__build_pre, or you could try setting videoram=64 in the VM config file.

#34 lore raw
Quoted 17 lines · Stefano Stabellini
Quoted 7 lines · ZhouPeng

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

Quoted 8 lines

The exact reason is xc_domain_populate_physmap_exact fails, because xen-hypervisor
fail,
it's because of   alloc_domheap_pages(d, a->extent_order, a->memflags) fails in hypervisor.

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

Quoted 6 lines

XL sets an upper bound of memory that can be allocated to the VM in libxl__build_pre, calling xc_domain_setmaxmem.
My guess is that a 64MB allocation would go over that limit. You could try increasing the limit manually changing the xc_domain_setmaxmem call in libxl__build_pre, or you could try setting videoram=64 in the VM config file.

Your guess is absolutely right!

But set videoram=128 or xc_domain_setmaxmem(ctx->xch, domid, info->target_memkb + LIBXL_MAXMEM_CONSTANT + 2 * 64 * 1024);

Then I successfuly install qxl driver in win-hvm and QXL can work properly.

I will send some patch to add qxl support to libxl.

Signature · 1 line
Zhou Peng
#35 lore raw

Il 24/05/2012 13:28, ZhouPeng ha scritto:

Quoted 26 lines
Quoted 14 lines · Stefano Stabellini
Quoted 13 lines · ZhouPeng

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

The exact reason is xc_domain_populate_physmap_exact fails, because xen-hypervisor
fail,
it's because of alloc_domheap_pages(d, a->extent_order, a->memflags)
fails in hypervisor.

Quoted 8 lines
Quoted 2 lines

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

XL sets an upper bound of memory that can be allocated to the VM in libxl__build_pre, calling xc_domain_setmaxmem.
My guess is that a 64MB allocation would go over that limit. You could try increasing the limit manually changing the xc_domain_setmaxmem call in libxl__build_pre, or you could try setting videoram=64 in the VM config file.

Your guess is absolutely right!

Quoted 7 lines

But set videoram=128 or xc_domain_setmaxmem(ctx->xch, domid, info->target_memkb + LIBXL_MAXMEM_CONSTANT + 2 * 64 * 1024);

Then I successfuly install qxl driver in win-hvm and QXL can work properly.

I will send some patch to add qxl support to libxl.

I tried your 3 patches taken from the mailing list, it works but doesn't solve qxl problems for me, on linux domU (Precise and Wheezy) xorg doesn't start and on windows 7 I have heavy performance problem (unusable). I tried also with qemu 1.1.0 but nothing change.
Does it work correctly for you? If so can I have some detail of your configurations please?
For audio support this is needed too: (tested and working)
-device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0 on qemu invocation and env QEMU_AUDIO_DRV=spice
Can you add audio support on libxl please?

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

#36 lore raw
Quoted 38 lines · Fabio Fantoni

Il 24/05/2012 13:28, ZhouPeng ha scritto:

Quoted 36 lines
Quoted 21 lines · Stefano Stabellini
Quoted 10 lines · ZhouPeng

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

Quoted 8 lines

The exact reason is xc_domain_populate_physmap_exact fails, because xen-hypervisor
fail,
it's because of   alloc_domheap_pages(d, a->extent_order, a->memflags) fails in hypervisor.

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

Quoted 6 lines

XL sets an upper bound of memory that can be allocated to the VM in libxl__build_pre, calling xc_domain_setmaxmem.
My guess is that a 64MB allocation would go over that limit. You could try increasing the limit manually changing the xc_domain_setmaxmem call in libxl__build_pre, or you could try setting videoram=64 in the VM config file.

Your guess is absolutely right!

But set videoram=128 or xc_domain_setmaxmem(ctx->xch, domid, info->target_memkb + LIBXL_MAXMEM_CONSTANT + 2 * 64 * 1024);

Quoted 8 lines
Quoted 4 lines

Then I successfuly install qxl driver in win-hvm and QXL can work properly.

I will send some patch to add qxl support to libxl.

I tried your 3 patches taken from the mailing list, it works but doesn't solve qxl problems for me, on linux domU (Precise and Wheezy) xorg doesn't start and on windows 7 I have heavy performance problem (unusable).

Could you find qxl vga card (named "Red Hat QXL GPU") in your windows hvm's device manager to make sure your qxl is working?

My testing hvm-guest is Win XP.

I played "Harry Potter" in my LAN smoothly, qxl gives great enhancement .

Although I don't test win7 and linux, I think it should work for them.

Quoted 1 line

I tried also with qemu 1.1.0 but nothing change.

I am not sure qemu 1.1.0 accept all the patches for xen.

Could you have a try of git://xenbits.xen.org/qemu-upstream-unstable.git

It is build and installed by default, you should enable spice support. spice can be enabled like below:

+++ b/tools/Makefile Sat May 26 12:31:01 2012 +0800
@@ -157,6 +157,7 @@ subdir-all-qemu-xen-dir subdir-install-q

        --bindir=$(LIBEXEC) \
        --datadir=$(SHAREDIR)/qemu-xen \
        --disable-kvm \

+ --enable-spice \

Quoted 2 lines

Does it work correctly for you? If so can I have some detail of your configurations please?

My vm.cfg:

name = 'xpPro_spice'
firmware_override = '/usr/lib/xen/boot/hvmloader'
builder = 'hvm'
memory = '1024'
device_model_version = 'qemu-xen'
device_model_override = '/usr/lib/xen/bin/qemu-system-i386' disk = [ 'file:/path-to-img/xpPro.img,ioemu:hda,w' ]
vif = ['ip=192.168.1.112, type=ioemu, bridge=eth0, mac=00:21:97:CB:0E:7D'] sdl=0
vnc=0
vncviewer=0
serial = 'pty'
vcpus=1
usbdevice='tablet'
#spice
spice=1
qxl=1
#qxlram=64
#qxlvram=64
spiceport=6000
spicehost='192.168.1.187'
spicedisable_ticketing = 1
spiceagent_mouse = 0 # (1|0)

Quoted 4 lines

For audio support this is needed too: (tested and working) -device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0 on qemu invocation and env QEMU_AUDIO_DRV=spice
Can you add audio support on libxl please?

I think audio support can be considered after qxl accpted.

Quoted 2 lines
Signature · 1 line
Zhou Peng
#37 lore raw

Il 13/06/2012 11:02, ZhouPeng ha scritto:

Quoted 94 lines · Fabio Fantoni
Quoted 34 lines

Il 24/05/2012 13:28, ZhouPeng ha scritto:

Quoted 32 lines
Quoted 16 lines · Stefano Stabellini
Quoted 15 lines · ZhouPeng

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

The exact reason is xc_domain_populate_physmap_exact fails, because xen-hypervisor
fail,
it's because of alloc_domheap_pages(d, a->extent_order, a->memflags)
fails in hypervisor.

Quoted 8 lines
Quoted 2 lines

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

XL sets an upper bound of memory that can be allocated to the VM in libxl__build_pre, calling xc_domain_setmaxmem.
My guess is that a 64MB allocation would go over that limit. You could try increasing the limit manually changing the xc_domain_setmaxmem call in libxl__build_pre, or you could try setting videoram=64 in the VM config file.

Your guess is absolutely right!

But set videoram=128 or xc_domain_setmaxmem(ctx->xch, domid, info->target_memkb + LIBXL_MAXMEM_CONSTANT + 2 * 64 * 1024);

Quoted 7 lines
Quoted 4 lines

Then I successfuly install qxl driver in win-hvm and QXL can work properly.

I will send some patch to add qxl support to libxl.

I tried your 3 patches taken from the mailing list, it works but doesn't solve qxl problems for me, on linux domU (Precise and Wheezy) xorg doesn't start and on windows 7 I have heavy performance problem (unusable).

Could you find qxl vga card (named "Red Hat QXL GPU") in your windows hvm's device manager to make sure your qxl is working?

My testing hvm-guest is Win XP.

I played "Harry Potter" in my LAN smoothly, qxl gives great enhancement .

Although I don't test win7 and linux, I think it should work for them.

Quoted 1 line

I tried also with qemu 1.1.0 but nothing change.

I am not sure qemu 1.1.0 accept all the patches for xen.

Could you have a try of git://xenbits.xen.org/qemu-upstream-unstable.git

It is build and installed by default, you should enable spice support. spice can be enabled like below:

+++ b/tools/Makefile Sat May 26 12:31:01 2012 +0800

(quoted diff) +1 -0
@@ -157,6 +157,7 @@ subdir-all-qemu-xen-dir subdir-install-q
         --bindir=$(LIBEXEC) \
         --datadir=$(SHAREDIR)/qemu-xen \
         --disable-kvm \
+       --enable-spice \
 
Quoted 2 lines

Does it work correctly for you? If so can I have some detail of your configurations please?

My vm.cfg:

name = 'xpPro_spice'
firmware_override = '/usr/lib/xen/boot/hvmloader'
builder = 'hvm'
memory = '1024'
device_model_version = 'qemu-xen'
device_model_override = '/usr/lib/xen/bin/qemu-system-i386' disk = [ 'file:/path-to-img/xpPro.img,ioemu:hda,w' ]
vif = ['ip=192.168.1.112, type=ioemu, bridge=eth0, mac=00:21:97:CB:0E:7D'] sdl=0
vnc=0
vncviewer=0
serial = 'pty'
vcpus=1
usbdevice='tablet'
#spice
spice=1
qxl=1
#qxlram=64
#qxlvram=64
spiceport=6000
spicehost='192.168.1.187'
spicedisable_ticketing = 1
spiceagent_mouse = 0 # (1|0)

Quoted 7 lines
Quoted 4 lines

For audio support this is needed too: (tested and working) -device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0 on qemu invocation and env QEMU_AUDIO_DRV=spice
Can you add audio support on libxl please?

I think audio support can be considered after qxl accpted.

Quoted 1 line

Thanks for reply, qxl driver is installed, windows see qxl video card, already compiled qemu with spice with patch I send months ago, already tried git://xenbits.xen.org/qemu-upstream-unstable.git before 1.1. Unfortunately the results are always the same.
Here a quick recording:
Windows 7 test: http://fantu.it/vari/spiceqxldebug1.mkv
Debian wheezy test: http://fantu.it/vari/spiceqxldebug2.mkv
Are not new but the result of the last test is the same.
I hope I can help you understand the problem.
If you need more information ask.

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

#38 lore raw
Quoted 117 lines · Fabio Fantoni

Il 13/06/2012 11:02, ZhouPeng ha scritto:

Quoted 106 lines
Quoted 42 lines · Fabio Fantoni

Il 24/05/2012 13:28, ZhouPeng ha scritto:

Quoted 39 lines
Quoted 21 lines · Stefano Stabellini
Quoted 10 lines · ZhouPeng

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

Quoted 8 lines

The exact reason is xc_domain_populate_physmap_exact fails, because xen-hypervisor
fail,
it's because of   alloc_domheap_pages(d, a->extent_order, a->memflags) fails in hypervisor.

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

Quoted 6 lines

XL sets an upper bound of memory that can be allocated to the VM in libxl__build_pre, calling xc_domain_setmaxmem.
My guess is that a 64MB allocation would go over that limit. You could try increasing the limit manually changing the xc_domain_setmaxmem call in libxl__build_pre, or you could try setting videoram=64 in the VM config file.

Your guess is absolutely right!

But set videoram=128 or xc_domain_setmaxmem(ctx->xch, domid, info->target_memkb + LIBXL_MAXMEM_CONSTANT + 2 * 64 * 1024);

Then I successfuly install qxl driver in win-hvm and QXL can work properly.

Quoted 6 lines
Quoted 1 line

I will send some patch to add qxl support to libxl.

I tried your 3 patches taken from the mailing list, it works but doesn't solve qxl problems for me, on linux domU (Precise and Wheezy) xorg doesn't
start and on windows 7 I have heavy performance problem (unusable).

Could you find qxl vga card  (named "Red Hat QXL GPU") in your windows hvm's device manager to make sure your qxl is working?

My testing hvm-guest is Win XP.

I played "Harry Potter" in my LAN smoothly, qxl gives great enhancement .

Although I don't test win7 and linux, I think it should work for them.

Quoted 2 lines

I tried also with qemu 1.1.0 but nothing change.

I am not sure qemu 1.1.0 accept all the patches for xen.

Could you have a try of git://xenbits.xen.org/qemu-upstream-unstable.git

It is build and installed by default, you should enable spice support. spice can be enabled like below:

+++ b/tools/Makefile    Sat May 26 12:31:01 2012 +0800

(quoted diff) +1 -0
@@ -157,6 +157,7 @@ subdir-all-qemu-xen-dir subdir-install-q
         --bindir=$(LIBEXEC) \
         --datadir=$(SHAREDIR)/qemu-xen \
         --disable-kvm \
+       --enable-spice \
 
Quoted 2 lines

Does it work correctly for you? If so can I have some detail of your configurations please?

My vm.cfg:

name = 'xpPro_spice'
firmware_override = '/usr/lib/xen/boot/hvmloader'
builder = 'hvm'
memory = '1024'
device_model_version = 'qemu-xen'
device_model_override = '/usr/lib/xen/bin/qemu-system-i386' disk = [ 'file:/path-to-img/xpPro.img,ioemu:hda,w' ]
vif = ['ip=192.168.1.112, type=ioemu, bridge=eth0, mac=00:21:97:CB:0E:7D'] sdl=0
vnc=0
vncviewer=0
serial = 'pty'
vcpus=1
usbdevice='tablet'
#spice
spice=1
qxl=1
#qxlram=64
#qxlvram=64
spiceport=6000
spicehost='192.168.1.187'
spicedisable_ticketing = 1
spiceagent_mouse = 0 # (1|0)

Quoted 9 lines
Quoted 4 lines

For audio support this is needed too: (tested and working) -device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0 on qemu invocation and env QEMU_AUDIO_DRV=spice
Can you add audio support on libxl please?

I think audio support can be considered after qxl accpted.

Quoted 2 lines
Quoted 6 lines

Thanks for reply, qxl driver is installed, windows see qxl video card, already compiled qemu with spice with patch I send months ago, already tried
git://xenbits.xen.org/qemu-upstream-unstable.git before 1.1. Unfortunately the results are always the same.
Here a quick recording:
Windows 7 test: http://fantu.it/vari/spiceqxldebug1.mkv

oh... it shows spice+qxl running on Xen get significant performance reduction compared with KVM ...

Quoted 4 lines

Debian wheezy test: http://fantu.it/vari/spiceqxldebug2.mkv
Are not new but the result of the last test is the same. I hope I can help you understand the problem.
If you need more information ask.

Signature · 1 line
Zhou Peng
#39 lore raw

Il 13/06/2012 13:40, ZhouPeng ha scritto:

Quoted 105 lines · Fabio Fantoni
Quoted 104 lines

Il 13/06/2012 11:02, ZhouPeng ha scritto:

Quoted 102 lines
Quoted 34 lines · Fabio Fantoni

Il 24/05/2012 13:28, ZhouPeng ha scritto:

Quoted 32 lines
Quoted 16 lines · Stefano Stabellini
Quoted 15 lines · ZhouPeng

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

The exact reason is xc_domain_populate_physmap_exact fails, because xen-hypervisor
fail,
it's because of alloc_domheap_pages(d, a->extent_order, a->memflags)
fails in hypervisor.

Quoted 8 lines
Quoted 2 lines

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

XL sets an upper bound of memory that can be allocated to the VM in libxl__build_pre, calling xc_domain_setmaxmem.
My guess is that a 64MB allocation would go over that limit. You could try increasing the limit manually changing the xc_domain_setmaxmem call in libxl__build_pre, or you could try setting videoram=64 in the VM config file.

Your guess is absolutely right!

But set videoram=128 or xc_domain_setmaxmem(ctx->xch, domid, info->target_memkb + LIBXL_MAXMEM_CONSTANT + 2 * 64 * 1024);

Quoted 8 lines
Quoted 4 lines

Then I successfuly install qxl driver in win-hvm and QXL can work properly.

I will send some patch to add qxl support to libxl.

I tried your 3 patches taken from the mailing list, it works but doesn't solve qxl problems for me, on linux domU (Precise and Wheezy) xorg doesn't
start and on windows 7 I have heavy performance problem (unusable).

Could you find qxl vga card (named "Red Hat QXL GPU") in your windows hvm's device manager to make sure your qxl is working?

My testing hvm-guest is Win XP.

I played "Harry Potter" in my LAN smoothly, qxl gives great enhancement .

Although I don't test win7 and linux, I think it should work for them.

Quoted 1 line

I tried also with qemu 1.1.0 but nothing change.

I am not sure qemu 1.1.0 accept all the patches for xen.

Could you have a try of git://xenbits.xen.org/qemu-upstream-unstable.git

It is build and installed by default, you should enable spice support. spice can be enabled like below:

+++ b/tools/Makefile Sat May 26 12:31:01 2012 +0800

(quoted diff) +1 -0
@@ -157,6 +157,7 @@ subdir-all-qemu-xen-dir subdir-install-q
         --bindir=$(LIBEXEC) \
         --datadir=$(SHAREDIR)/qemu-xen \
         --disable-kvm \
+       --enable-spice \
 
Quoted 2 lines

Does it work correctly for you? If so can I have some detail of your configurations please?

My vm.cfg:

name = 'xpPro_spice'
firmware_override = '/usr/lib/xen/boot/hvmloader'
builder = 'hvm'
memory = '1024'
device_model_version = 'qemu-xen'
device_model_override = '/usr/lib/xen/bin/qemu-system-i386' disk = [ 'file:/path-to-img/xpPro.img,ioemu:hda,w' ]
vif = ['ip=192.168.1.112, type=ioemu, bridge=eth0, mac=00:21:97:CB:0E:7D'] sdl=0
vnc=0
vncviewer=0
serial = 'pty'
vcpus=1
usbdevice='tablet'
#spice
spice=1
qxl=1
#qxlram=64
#qxlvram=64
spiceport=6000
spicehost='192.168.1.187'
spicedisable_ticketing = 1
spiceagent_mouse = 0 # (1|0)

Quoted 4 lines

For audio support this is needed too: (tested and working) -device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0 on qemu invocation and env QEMU_AUDIO_DRV=spice
Can you add audio support on libxl please?

I think audio support can be considered after qxl accpted.

Quoted 1 line
Quoted 13 lines
Quoted 6 lines

Thanks for reply, qxl driver is installed, windows see qxl video card, already compiled qemu with spice with patch I send months ago, already tried
git://xenbits.xen.org/qemu-upstream-unstable.git before 1.1. Unfortunately the results are always the same.
Here a quick recording:
Windows 7 test: http://fantu.it/vari/spiceqxldebug1.mkv

oh... it shows spice+qxl running on Xen get significant performance reduction compared with KVM ...

Quoted 4 lines

Debian wheezy test: http://fantu.it/vari/spiceqxldebug2.mkv
Are not new but the result of the last test is the same. I hope I can help you understand the problem.
If you need more information ask.

We are trying to reproduce your results but failed so far.
Can you give me details about the dom0 used for your tests please?
For example here are details about my testing dom0:
Wheezy 64 bit with kernel from package linux-image-3.2.0-2-amd64 version 3.2.18-1, package blktap-dkms and all dependency packages for xen 4.2, spice and usb redirection.
-------------------------
/etc/modules
------------
loop max_loop=64
xenfs
xen-evtchn
blktap
-------------------------
hg clone http://xenbits.xen.org/xen-unstable.hg
vi config/StdGNU.mk # Workaround for Wheezy with multiarch support, there are parts that use LIBDIR set here instead of the one in configure (libdir) LIBLEAFDIR_x86_64 ?= lib
vi Config.mk
PYTHON_PREFIX_ARG =
-------------------------
Added some patches:
- autoconf: add variable for pass arbitrary options to qemu upstream v3
- tools: Improve make deb
- libxc: do not "panic" if a kernel is not a bzImage.
- tools/hotplug/Linux/init.d/: added other xen kernel modules on xencommons start
- 3 patches for add qxl support
-------------------------
./configure --enable-qemuu-spice --enable-qemuu-usbredir --enable-qemuu-debug
-------------------------
make deb

Is qxl someway affected by physical video card of dom0?
Have you installed spice-guest-tools-0.1.exe <http://spice-space.org/download/binaries/spice-guest-tools-0.1.exe> from spice site, if no what do you use for qxl driver? Have you also installed gplpv driver or not?
Thanks for any reply.

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

#40 lore raw
Quoted 133 lines · Fabio Fantoni

Il 13/06/2012 13:40, ZhouPeng ha scritto:

On Wed, Jun 13, 2012 at 5:38 PM, Fabio Fantoni <[email protected]> wrote:

Il 13/06/2012 11:02, ZhouPeng ha scritto:

On Mon, Jun 11, 2012 at 7:56 PM, Fabio Fantoni<[email protected]>

 wrote:

Il 24/05/2012 13:28, ZhouPeng ha scritto:

On Thu, May 24, 2012 at 6:13 PM, Stefano Stabellini <[email protected]>    wrote:

On Thu, 24 May 2012, ZhouPeng wrote:

Sorry for late reply, I am not on this mail these days because of my work.

I further test qxl-vga and I think I figure out the problem in some

extend.

If using qxl device, the default memory size of vga is 64M. Which will cause xen_ram_alloc(qemu/xen-all.c) fails.

The exact reason is xc_domain_populate_physmap_exact fails, because

xen-hypervisor
fail,
it's because of   alloc_domheap_pages(d, a->extent_order, a->memflags) fails in hypervisor.

I am not very familiar with xen's memory management, Does 64M exceed xen's heap space in this context?

XL sets an upper bound of memory that can be allocated to the VM in libxl__build_pre, calling xc_domain_setmaxmem.
My guess is that a 64MB allocation would go over that limit. You could try increasing the limit manually changing the xc_domain_setmaxmem call in libxl__build_pre, or you could try setting videoram=64 in the VM config file.

Your guess is absolutely right!

But set videoram=128 or xc_domain_setmaxmem(ctx->xch, domid, info->target_memkb + LIBXL_MAXMEM_CONSTANT + 2 * 64 * 1024);

Then I successfuly install qxl driver in win-hvm and QXL can work properly.

I will send some patch to add qxl support to libxl.

I tried your 3 patches taken from the mailing list, it works but doesn't solve qxl problems for me, on linux domU (Precise and Wheezy) xorg doesn't
start and on windows 7 I have heavy performance problem (unusable).

Could you find qxl vga card  (named "Red Hat QXL GPU") in your windows hvm's device manager to make sure your qxl is working?

My testing hvm-guest is Win XP.

I played "Harry Potter" in my LAN smoothly, qxl gives great enhancement .

Although I don't test win7 and linux, I think it should work for them.

I tried also with qemu 1.1.0 but nothing change.

I am not sure qemu 1.1.0 accept all the patches for xen.

Could you have a try of git://xenbits.xen.org/qemu-upstream-unstable.git

It is build and installed by default, you should enable spice support. spice can be enabled like below:

+++ b/tools/Makefile    Sat May 26 12:31:01 2012 +0800

(quoted diff) +1 -0
@@ -157,6 +157,7 @@ subdir-all-qemu-xen-dir subdir-install-q
         --bindir=$(LIBEXEC) \
         --datadir=$(SHAREDIR)/qemu-xen \
         --disable-kvm \
+       --enable-spice \
 

Does it work correctly for you? If so can I have some detail of your configurations please?

My vm.cfg:

name = 'xpPro_spice'
firmware_override = '/usr/lib/xen/boot/hvmloader'
builder = 'hvm'
memory = '1024'
device_model_version = 'qemu-xen'
device_model_override = '/usr/lib/xen/bin/qemu-system-i386' disk = [ 'file:/path-to-img/xpPro.img,ioemu:hda,w' ]
vif = ['ip=192.168.1.112, type=ioemu, bridge=eth0, mac=00:21:97:CB:0E:7D'] sdl=0
vnc=0
vncviewer=0
serial = 'pty'
vcpus=1
usbdevice='tablet'
#spice
spice=1
qxl=1
#qxlram=64
#qxlvram=64
spiceport=6000
spicehost='192.168.1.187'
spicedisable_ticketing = 1
spiceagent_mouse = 0 # (1|0)

For audio support this is needed too: (tested and working) -device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0 on qemu invocation and env QEMU_AUDIO_DRV=spice
Can you add audio support on libxl please?

I think audio support can be considered after qxl accpted.

Thanks for reply, qxl driver is installed, windows see qxl video card, already compiled qemu with spice with patch I send months ago, already tried
git://xenbits.xen.org/qemu-upstream-unstable.git before 1.1. Unfortunately the results are always the same.
Here a quick recording:
Windows 7 test: http://fantu.it/vari/spiceqxldebug1.mkv

oh... it shows spice+qxl running on Xen get significant performance reduction compared with KVM ...

Quoted 8 lines

Debian wheezy test: http://fantu.it/vari/spiceqxldebug2.mkv
Are not new but the result of the last test is the same. I hope I can help you understand the problem.
If you need more information ask.

We are trying to reproduce your results but failed so far.

From your video spiceqxldebug1.mkv, I think you have reproduced it with win7?

And your mouse interaction in win7 shows performance is significantly reduced compared
with qxl on kvm greatly. How about view a video from remote spice client?

On my WinXP testing, the mouse interaction is better than
your win7 test (but not as good as in kvm too), and I view a movie(Harry Potter) from remote spice client (spice client on winxp), it's smooth.

Any way, qxl improve the performance, but it is not as good as running on kvm from my
experence (no quantitative test). I don't know the reason yet. I just guess it should
exist in qemu-xen or hypervisor.

I think you have reproduced.

My environment is simple, use the default.
---------------------
hg clone http://xenbits.xen.org/xen-unstable.hg

Dom0 kernel: (You can get it by KERNELS ?= linux-2.6-pvops in Linux.mk automatically)
git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git
select a branch, I select xen/master (version 2.6.32.36):

$ git branch
  master
* xen/master

qemu (build by default)

git://xenbits.xen.org/qemu-upstream-unstable.git

$ git branch
* dummy
  master

+++ b/tools/Makefile Sat May 26 12:31:01 2012 +0800
@@ -157,6 +157,7 @@ subdir-all-qemu-xen-dir subdir-install-q

        --bindir=$(LIBEXEC) \
        --datadir=$(SHAREDIR)/qemu-xen \
        --disable-kvm \

+ --enable-spice \

SPICE 0.7.1 is build from source code before.

Host is fc8-64bit, but dom0 kernel is replaced as described before.

Quoted 28 lines

Can you give me details about the dom0 used for your tests please? For example here are details about my testing dom0:
Wheezy 64 bit with kernel from package linux-image-3.2.0-2-amd64 version 3.2.18-1, package blktap-dkms and all dependency packages for xen 4.2, spice and usb redirection.
-------------------------
/etc/modules
------------
loop max_loop=64
xenfs
xen-evtchn
blktap
-------------------------
hg clone http://xenbits.xen.org/xen-unstable.hg
vi config/StdGNU.mk # Workaround for Wheezy with multiarch support, there are parts that use LIBDIR set here instead of the one in configure (libdir) LIBLEAFDIR_x86_64 ?= lib
vi Config.mk
PYTHON_PREFIX_ARG =
-------------------------
Added some patches:
- autoconf: add variable for pass arbitrary options to qemu upstream v3
- tools: Improve make deb
- libxc: do not "panic" if a kernel is not a bzImage.
- tools/hotplug/Linux/init.d/: added other xen kernel modules on xencommons start
- 3 patches for add qxl support

Quoted 7 lines

-------------------------
./configure --enable-qemuu-spice --enable-qemuu-usbredir --enable-qemuu-debug
-------------------------
make deb

Is qxl someway affected by physical video card of dom0?

I don't think so, because mainly rendered by client but not host.

Quoted 2 lines

Have you installed spice-guest-tools-0.1.exe from spice site, if no what do you use for qxl driver?

spice-guest-tools-0.1.exe

Quoted 1 line

Have you also installed gplpv driver or not?

No.

No driver installed except from spice-guest-tools-0.1.exe.

Quoted 1 line

Thanks for any reply.

Signature · 1 line
Zhou Peng