All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: X11 on domU
@ 2006-08-11 23:34 Ian Pratt
  2006-08-29 20:24 ` Julian Davison
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Pratt @ 2006-08-11 23:34 UTC (permalink / raw)
  To: Julian Davison, xen-devel

 
> What we'd like to do is run several independant X11's on a 
> single CPU box. Using on-board (AGP) graphics, and additional
> (PCI) graphics cards, and various USB controllers for the 
> keyboard/mice combos.
> The aim is to have three 'consoles', each with a browser 
> running to provide access to our library catalogue. With Xen 
> we should be able to isolate each console in its own dom, 
> ensuring that one user can't so easily ruin others functionality.
> 
> I'm running Debian 3.1 sarge/stable as dom0.
> I've got Xen 3.0.2 stable sources and built them with to 
> include the pciback module. Using pciback I can happily have 
> various devices show up in domU (ethernet, USB controller and 
> graphics) with things like 'lspci'. The obvious stuff just 
> plain works - I can use the ethernet card instead of the 
> virtual ethernet, find USB devices.
> I 'upgraded' domU to debian unstable, to get a more recent 
> Xorg setup, but I still get stuck.
> 
> Using "X -novtswitch -sharevts vt1" I ended up being told:
> 
> -------------- copy of end of X output starts --------------
> (EE) I810(0): Cannot map SYS BIOS
> 
> Fatal server error:
> xf86MapVidMem: Could not mmap framebuffer 
> (0x000a0000,0x10000) (Bad address)
> --------------  copy of end of X output ends  --------------
> 
> At this point I'm out of ideas :)
> 
> Anyone have any pointers or ideas?

As well as mapping the linear framebuffer, this particular X driver
wants to map the VGA memory area at 0xa0000. 

As an experiment, trying hacking in a call to the following in
setupDevice in pciif.py: 

 xc.domain_iomem_permission(dom = fe_domid,
                    first_pfn = 0xA0000>>PAGE_SHIFT,
                    nr_pfns = 0x10000>>PAGE_SHIFT,
                    allow_access = True) 

You may also need to map the VGA BIOS, in which case use nr_pfns =
0x27FFF>>PAGE_SHIFT 

Please let me know if this works.

Best,
Ian

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: X11 on domU
@ 2006-08-29 21:23 Ian Pratt
  2006-09-12 21:39 ` Julian Davison
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Pratt @ 2006-08-29 21:23 UTC (permalink / raw)
  To: Julian Davison, xen-devel

> It results in a leap forward, but still falls short :)
> I did need the VGA BIOS (0x277FFF) which results in
> X starting up(ish) but displaying a black screen with
> a white square near the middle, then stalling.
> A ctrl-C in the starting terminal causes X to exit,
> with the error:
> -------------- copy of end of X log starts --------------
> Error in I810WaitLpRing(), now is 1534883518, start is 1534881517
> pgetbl_ctl: 0x0 pgetbl_err: 0x10
> ipeir: 0 iphdr: 0
> LP ring tail: 40 head: 0 len: f001 start 342000
> eir: 0 esr: 10 emr: 3d
> instdone: ff7a instpm: 0
> memmode: 4 instps: c10
> hwstam: 9ac7 ier: 0 imr: 9ac7 iir: 0
> space: 65464 wanted 65528
>
> Fatal server error:
> lockup


This is pretty weird. I wander if its relying on an interrupt that isn't
getting plumbed through? Is there any mention of an interrupt in the X
startup logs? Please could you post these.

[In fact, how does the X server get hold an interrupt from user space
(hence enabling it to block)? ]

Does the i810 driver cause any nasty kernel modules to be loaded such as
agpgart or something? The domU would need to be given access rights to
the GART, but I can't immediately think why it wouldn't work. Obviously,
the GART couldn't be shared between domU's.

One other option might be to try and use the fbdev driver in the kernel
(and X's fbdev module) rather than X's i810 driver.
 
Thanks,
Ian

^ permalink raw reply	[flat|nested] 6+ messages in thread
* X11 on domU
@ 2006-07-24 19:59 Julian Davison
  0 siblings, 0 replies; 6+ messages in thread
From: Julian Davison @ 2006-07-24 19:59 UTC (permalink / raw)
  To: xen-devel

Hi,

I'm not certain whether this belongs in 'users' or 'devel',
the topic appears to turn up in both lists. I've tried 'users'
but with no joy...

What we'd like to do is run several independant X11's on a
single CPU box. Using on-board (AGP) graphics, and additional
(PCI) graphics cards, and various USB controllers for the
keyboard/mice combos.
The aim is to have three 'consoles', each with a browser
running to provide access to our library catalogue. With
Xen we should be able to isolate each console in its own
dom, ensuring that one user can't so easily ruin others
functionality.

I'm running Debian 3.1 sarge/stable as dom0.
I've got Xen 3.0.2 stable sources and built them with
to include the pciback module. Using pciback I can happily
have various devices show up in domU (ethernet, USB controller
and graphics) with things like 'lspci'. The obvious stuff
just plain works - I can use the ethernet card instead of
the virtual ethernet, find USB devices.
I 'upgraded' domU to debian unstable, to get a more
recent Xorg setup, but I still get stuck.

Using "X -novtswitch -sharevts vt1" I ended up being told:

-------------- copy of end of X output starts --------------
(EE) I810(0): Cannot map SYS BIOS

Fatal server error:
xf86MapVidMem: Could not mmap framebuffer (0x000a0000,0x10000) (Bad address)
--------------  copy of end of X output ends  --------------

At this point I'm out of ideas :)

Anyone have any pointers or ideas?




J,


-- 
Julian Davison
Note: 1) This may have come from an address @cbhs.school.nz
          but isn't necessarily the (or even an) official view
          of Christchurch Boys' High School
       2) While replying to this address may get into my mailbox
          it will almost certainly be filtered into a mailing list
          folder. To actually reach actual me, strip off the bit
          after the '-' in the name.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-09-12 21:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-11 23:34 X11 on domU Ian Pratt
2006-08-29 20:24 ` Julian Davison
  -- strict thread matches above, loose matches on Subject: below --
2006-08-29 21:23 Ian Pratt
2006-09-12 21:39 ` Julian Davison
2006-09-12 21:54   ` Ian Pratt
2006-07-24 19:59 Julian Davison

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.