All of lore.kernel.org
 help / color / mirror / Atom feed
From: ZhouPeng <zpengxen@gmail.com>
To: fantonifabio@tiscali.it
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	"Keir (Xen.org)" <keir@xen.org>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: Unable to get QXL vga working
Date: Wed, 13 Jun 2012 17:02:06 +0800	[thread overview]
Message-ID: <CAAh7U5P-cdS0C+oVnCkY_QgS1n1Qxb56u9dgQCbpE4oS0ZnBsg@mail.gmail.com> (raw)
In-Reply-To: <4FD5DCF7.2070103@tiscali.it>

On Mon, Jun 11, 2012 at 7:56 PM, Fabio Fantoni <fantonifabio@tiscali.it> wrote:
> Il 24/05/2012 13:28, ZhouPeng ha scritto:
>
>> On Thu, May 24, 2012 at 6:13 PM, Stefano Stabellini
>> <stefano.stabellini@eu.citrix.com>  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
@@ -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.
>
>


-- 
Zhou Peng

  reply	other threads:[~2012-06-13  9:02 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26 15:23 Unable to get QXL vga working Fantu
2012-04-26 15:39 ` Ian Campbell
2012-04-27  5:15   ` ZhouPeng
2012-04-27  9:23     ` Fantu
2012-05-02  8:21     ` Fantu
2012-05-03 11:31       ` ZhouPeng
2012-05-03 12:28         ` Fantu
2012-05-03 14:00           ` Unable to get QXL vga working / videomem over 4MB issue Pasi Kärkkäinen
2012-05-03 14:27             ` Fantu
2012-05-03 16:02               ` Pasi Kärkkäinen
2012-05-04  8:23                 ` Fantu
2012-05-04  8:28                   ` Ian Campbell
2012-05-04  8:56                     ` Fantu
2012-05-04 11:21                     ` Anthony PERARD
2012-05-04 11:32                       ` Ian Campbell
2012-05-08 16:24                         ` Pasi Kärkkäinen
2012-05-08 19:15                           ` Ian Campbell
2012-05-09 14:07                             ` Fantu
2012-05-09 16:01                               ` Anthony PERARD
2012-05-04 12:02                       ` Fantu
2012-05-07 15:01                         ` Fantu
2012-05-11 12:19                       ` Geraldes
2012-05-11 13:00                         ` Anthony PERARD
2012-05-03 12:46         ` Unable to get QXL vga working Stefano Stabellini
2012-05-03 12:56           ` ZhouPeng
2012-05-03 13:05             ` Stefano Stabellini
2012-05-03 13:05               ` ZhouPeng
2012-05-03 13:13                 ` Ian Campbell
2012-05-03 13:27                   ` ZhouPeng
2012-05-03 13:56                 ` Stefano Stabellini
2012-05-04  1:15                   ` ZhouPeng
2012-05-04  8:30                     ` Ian Campbell
2012-05-24  3:13                       ` ZhouPeng
2012-05-24 10:13                         ` Stefano Stabellini
2012-05-24 11:28                           ` ZhouPeng
2012-06-11 11:56                             ` Fabio Fantoni
2012-06-13  9:02                               ` ZhouPeng [this message]
2012-06-13  9:38                                 ` Fabio Fantoni
2012-06-13 11:40                                   ` ZhouPeng
2012-06-14 13:51                                     ` Fabio Fantoni
2012-06-15  7:36                                       ` ZhouPeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAh7U5P-cdS0C+oVnCkY_QgS1n1Qxb56u9dgQCbpE4oS0ZnBsg@mail.gmail.com \
    --to=zpengxen@gmail.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=fantonifabio@tiscali.it \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.