Re: 2.6.25-rc1 xen pvops regression

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Thursday, February 21, 2008 - 3:04 pm

"H. Peter Anvin" <hpa@zytor.com> writes:


The immediate symptom was that we have a page table at the address we
are doing the DMI probe.  Xen does not allow pages tables to be mapped
read-write so early_ioremap get into trouble.

We have a mystery:
- Why did the Xen domain builder or the linux kernel use 0xf0000 - 0x10000
  for a page table.

  It should be possible to instrument the early linux page allocation
  and see what page pages linux is using to see who is doing weird
  things.

We have possible solutions.
- Add a read-only flag to early_ioremap for use by our table scans.
- Don't do a DMI scan in the case of Xen.
- Fix the Xen domain builder.

My inclination is that we disable the fruitless DMI scan in the case
Xen, or we get the Xen domain builder fixed.

If Xen is going to increasingly look like a normal X86 BIOS we should
let the DMI scan run and be put the burden on Xen to keep things
looking like a normal x86 machine.  If Xen is not going to look more
like a normal x86 machine we can say oh, that is nice, it's Xen so
don't bother doing things that will cause problems.

In this case can we confirm that the domain builder is using those
early 64k as pages for a page table, and then educate it that not
allowing OS access to those pages is a little silly.

All of that said.  For DMI tables other early tables we should not
be writing to them anyway so learning to use read-only maps may be
the right solution.  If the reason Xen was complaining was that
we were accessing an area that was not page tables but instead
should only be mapped read-only I would have a lot of sympathy
with that.  As mapping areas that are architecturally ROMs read-write
is silly.

So guys can you please finish the root cause and really see why there
is a page table page at in 64K ROM BIOS area?

Eric
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25-rc1 xen pvops regression, Jody Belka, (Tue Feb 12, 4:54 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Wed Feb 13, 4:59 am)
Re: 2.6.25-rc1 xen pvops regression, Jody Belka, (Wed Feb 13, 5:13 am)
Re: 2.6.25-rc1 xen pvops regression, Ingo Molnar, (Wed Feb 13, 5:23 am)
Re: 2.6.25-rc1 xen pvops regression, Joel Becker, (Wed Feb 13, 7:27 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Thu Feb 14, 12:50 am)
Re: 2.6.25-rc1 xen pvops regression, Joel Becker, (Fri Feb 15, 1:23 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Fri Feb 15, 7:44 pm)
Re: 2.6.25-rc1 xen pvops regression, Joel Becker, (Sat Feb 16, 1:54 am)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Sat Feb 16, 4:46 am)
Re: 2.6.25-rc1 xen pvops regression, Joel Becker, (Sat Feb 16, 11:29 pm)
Re: 2.6.25-rc1 xen pvops regression, Joel Becker, (Sat Feb 16, 11:39 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Sun Feb 17, 5:09 am)
Re: 2.6.25-rc1 xen pvops regression, Ian Campbell, (Sun Feb 17, 11:49 am)
Re: 2.6.25-rc1 xen pvops regression, Joel Becker, (Mon Feb 18, 3:40 am)
Re: 2.6.25-rc1 xen pvops regression, Ian Campbell, (Tue Feb 19, 2:50 pm)
Re: 2.6.25-rc1 xen pvops regression, Ian Campbell, (Tue Feb 19, 2:59 pm)
Re: 2.6.25-rc1 xen pvops regression, H. Peter Anvin, (Wed Feb 20, 12:43 am)
Re: 2.6.25-rc1 xen pvops regression, Ian Campbell, (Wed Feb 20, 1:51 am)
Re: 2.6.25-rc1 xen pvops regression, Joel Becker, (Wed Feb 20, 2:42 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Wed Feb 20, 2:58 pm)
Re: 2.6.25-rc1 xen pvops regression, Ian Campbell, (Wed Feb 20, 3:29 pm)
Re: 2.6.25-rc1 xen pvops regression, Ian Campbell, (Wed Feb 20, 3:30 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Thu Feb 21, 2:16 pm)
Re: 2.6.25-rc1 xen pvops regression, H. Peter Anvin, (Thu Feb 21, 2:21 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Thu Feb 21, 2:37 pm)
Re: 2.6.25-rc1 xen pvops regression, H. Peter Anvin, (Thu Feb 21, 2:44 pm)
Re: 2.6.25-rc1 xen pvops regression, Eric W. Biederman, (Thu Feb 21, 3:04 pm)
Re: 2.6.25-rc1 xen pvops regression, Ian Campbell, (Thu Feb 21, 3:12 pm)
Re: 2.6.25-rc1 xen pvops regression, H. Peter Anvin, (Thu Feb 21, 3:23 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Thu Feb 21, 3:49 pm)
Re: 2.6.25-rc1 xen pvops regression, Joel Becker, (Thu Feb 21, 3:58 pm)
Re: 2.6.25-rc1 xen pvops regression, H. Peter Anvin, (Thu Feb 21, 3:58 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Thu Feb 21, 4:14 pm)
Re: 2.6.25-rc1 xen pvops regression, H. Peter Anvin, (Thu Feb 21, 4:26 pm)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Thu Feb 21, 4:46 pm)
Re: 2.6.25-rc1 xen pvops regression, H. Peter Anvin, (Thu Feb 21, 4:57 pm)
Re: 2.6.25-rc1 xen pvops regression, Ian Campbell, (Fri Feb 22, 12:25 am)
Re: 2.6.25-rc1 xen pvops regression, Alan Cox, (Fri Feb 22, 2:28 am)
Re: 2.6.25-rc1 xen pvops regression, Andi Kleen, (Fri Feb 22, 2:55 am)
Re: 2.6.25-rc1 xen pvops regression, Alan Cox, (Fri Feb 22, 3:00 am)
Re: 2.6.25-rc1 xen pvops regression, Andi Kleen, (Fri Feb 22, 3:15 am)
Re: 2.6.25-rc1 xen pvops regression, H. Peter Anvin, (Fri Feb 22, 9:27 am)
Re: 2.6.25-rc1 xen pvops regression, Pavel Machek, (Fri Feb 22, 12:25 pm)
Re: 2.6.25-rc1 xen pvops regression, Mark McLoughlin, (Tue Feb 26, 10:06 am)
Re: 2.6.25-rc1 xen pvops regression, Jeremy Fitzhardinge, (Tue Feb 26, 1:05 pm)