WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] [Fwd: Re: [Xen-devel] Run X in other domains?]

To: Sean Atkinson <sean@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] [Fwd: Re: [Xen-devel] Run X in other domains?]
From: Gerd Knorr <kraxel@xxxxxxxxxxx>
Date: 19 Apr 2005 11:07:12 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 19 Apr 2005 09:09:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1113839227.8487.31.camel@xxxxxxxxxxxxxxxxxxxxx>
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>
Organization: SUSE Labs, Berlin
References: <1113839227.8487.31.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
Sean Atkinson <sean@xxxxxxxxxxxxxx> writes:

> The output from lspci lists everything but the VGA card in domain 0,
> unless "lspci -H 1" is used.  In other domains, lspci reports only the
> VGA card and "lspci -H 1" reports "You need to be root to have access to
> I/O ports".  However X still starts OK in domain 0, which surprised my.

X wants bang directly on the Hardware.  Try "X -scanpci" in domain 0,
most likely you'll see the hidden gfx card listed there.

> Does anybody have any experience with X in other domains, or thoughts on
> how I might proceed please?

I tried the same some time ago in user mode linux (tried to make X11
run on top of a virtual framebuffer device) and ran into simliar
issues.  It simply didn't work without hacking the X-Server.  X11 was
very unhappy about not being able to access hardware directly, even
though there was absolutely no need to do that.  I wanted it simply
open and use the /dev/fb0 device ...

X.org has several ways of accessing the PCI bus, you can play with
that using the "scanpci" utility.  "OS config" (-O switch for scanpci)
should in theory use /proc/bus/pci, work fine without direct hardware
access enabled and list the gfx card in the domain you've assigned it
to.  In practice it doesn't, scanpci refuses to work without iopl
access and also doesn't use /proc/bus/pci due to a bug.  It should
have improved in x.org tree, cvs HEAD, because I bugged the suse x.org
guy to look into this because of the uml issues mentioned above.
Havn't tested that recently though.

HTH,

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users