This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


RE: [Xen-users] pciback.hide graphics card - 3/4's way there

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] pciback.hide graphics card - 3/4's way there
From: "[STD]Ein" <ein@xxxxxxxxxxxxxx>
Date: Thu, 18 Oct 2007 16:06:06 -0500
Cc: 'Mark Williamson' <mark.williamson@xxxxxxxxxxxx>
Delivery-date: Thu, 18 Oct 2007 14:09:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200710180513.02883.mark.williamson@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <000001c81031$f1c105a0$c801a8c0@localnet> <200710180513.02883.mark.williamson@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgRPTFtcA7lQHMbQKaUotJeZzX39AAi9Zmw
The (usb) mouse does in fact work in Xorg (albeit very slowly), I'm actually
lacking a usb keyboard so I cannot login, but paging through the tabs of
gdmgreeter works fine.

Starting Xorg without gdm (I'll assume that's what you were referring to)
produces the same 99%+ cpu usage, even without any application running.

Looks like I'll be learning how to use GDB tonight :)

Thanks for the help, at least I'm working forwards.

-----Original Message-----
From: M.A. Williamson [mailto:maw48@xxxxxxxxxxxxxxxx] On Behalf Of Mark
Sent: October 17, 2007 11:13 PM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Cc: [STD]Ein
Subject: Re: [Xen-users] pciback.hide graphics card - 3/4's way there

> I'm attempting to hand control of one usb controller, videocard, and audio
> to a domU.

Cool project!

> First, some info.  I'm running Debian Etch 4.0r1 with the 2.6.18-5-xen-686
> kernel (xen 3.1.0) for both dom0 and domU.
> I've added pciback.hide=(01:00.0)(00:01.0)(00:1f.2)(00:1f.4)(00:1f.5) to
> kernel boot line.
> (they are in order, nvidia nv11ddr (gf2mx), agp bridge, usb contoller, usb
> controller, intel ac97 audio).
> I apologize in advance if this is a duplicate message, I had some issues
> with my mail client.
> All of these are handed to the domU
>f .5']
> I then added -sharevts vt1 to all of the X command lines in
> /usr/share/gdm/defaults.conf
> X and gdm start perfectly!


> But. Xorg uses 99+% of the cpu, all the time.  It's completely unusable.

Hmm, unfortunate.  Does it respond to mouse / keyboard at all?  Can you get
to do anything, is it just very very slow?

> I've tried installing the nvidia binary driver, but that turned into an
> abortion and I moved back to the generic driver.

Maybe one step at a time is a good idea!  Although good thinking because I 
guess there could be something funny going on in the driver...

ISTR the Nvidia driver can be made to run on Xen if the wrapper code is 
recompiled (possibly patched first).

> Any ideas?

Not specifically.

I guess the thing that occurs to me is either to run some kind of profiler,
attach GDB to X.org in order to try to get some idea of exactly where X is 
burning CPU (e.g. if it's sitting in a loop somewhere wasting CPU, or if
doing work, or something else).

Out of interest, have you tried booting without gdb enabled, firing up X 
manually and then just running an xterm on it?  That takes us down to about 
the simplest configuration we could have.  I don't know why that would make
difference, but it's something to try if you're bored - and maybe it'll 
eliminate some possibilities.


Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>